mirror of
https://github.com/ebeem/guile-swayer.git
synced 2024-12-25 21:59:00 +01:00
add exec function to readme
This commit is contained in:
parent
ae09bf465e
commit
f8c156e734
1 changed files with 9 additions and 3 deletions
|
@ -60,6 +60,12 @@ You can assign keybindings that execute Guile code! Obviously, running shell com
|
|||
;; requires configuring commander-path, refer to the FIXME note in keybindings.scm for more details.
|
||||
;; refer to modules/general.scm for more about how this is done.
|
||||
;; define leader keymap
|
||||
|
||||
(define (exec command)
|
||||
"execute given shell command"
|
||||
(format #t "running: ~a\n" command)
|
||||
(system command))
|
||||
|
||||
(general-define-keys
|
||||
#:prefix "s-Space" #:wk "Leader"
|
||||
`("o" (exec "rofi -show drun"))
|
||||
|
|
Loading…
Reference in a new issue