Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 955 Bytes

README.org

File metadata and controls

37 lines (31 loc) · 955 Bytes

Application menu for StumpWM.

Usage

(load-module "app-menu")

Define *app-menu* in your .stumpwmrc. You can use strings to run shell commands or symbols to run Stumpwm commands (e.g. to popup existing application instead of start new one if applcation is already running).

(defcommand firefox () ()
  "run firefox"
  (run-or-raise "firefox" '(:class "Firefox")))

(setq *app-menu*
      '(("INTERNET"
         ;; submenu
         ("Firefox" firefox)       ; call stumpwm command
         ("Skype" "skypeforlinux") ; run shell script
         )
        ("WORK"
         ("OpenOffice.org"  "openoffice"))
        ("GRAPHICS"
         ("GIMP" "gimp")
         ("Inkscape" "inkscape"))
        ("urxvt" urxvt)
        ("K3B" "k3b")))

Add show-menu command to your keybindings, e.g.:

(define-key *top-map* (kbd "M-`") "show-menu")