mirror of
https://github.com/ebeem/guile-swayer.git
synced 2024-11-16 07:47:32 +01:00
include more information about general.scm
This commit is contained in:
parent
860cc99be7
commit
113a663ab4
1 changed files with 7 additions and 2 deletions
|
@ -50,10 +50,15 @@ You can retrieve information about =Sway=, such as list of available =workspaces
|
||||||
You can assign keybindings that execute Guile code! Obviously, running shell commands is straightforward since you're operating within Guile. Additionally, you have full access to Sway/i3 specific commands (refer to =swayipc/dispatcher.scm=).
|
You can assign keybindings that execute Guile code! Obviously, running shell commands is straightforward since you're operating within Guile. Additionally, you have full access to Sway/i3 specific commands (refer to =swayipc/dispatcher.scm=).
|
||||||
|
|
||||||
#+begin_src scheme
|
#+begin_src scheme
|
||||||
;; sway commands
|
;; normal sway keybindings (limited and can't easily execute guile code)
|
||||||
(sway-bindsym "Mod4+t" "exec alacritty")
|
(sway-bindsym "Mod4+t" "exec alacritty")
|
||||||
|
|
||||||
;; general.scm interface (requires some configuration, refere to the FIXME note in keybindings.scm)
|
;; general.scm interface for sway keybindings
|
||||||
|
;; this uses sway-bindsym behind the scenes, but provides a much
|
||||||
|
;; user friendly interface to create complex keybindings structure
|
||||||
|
;; it also allows you to execute guile expressions on trigger.
|
||||||
|
;; requires configuring commander-path, refere 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 leader keymap
|
||||||
(general-define-keys
|
(general-define-keys
|
||||||
#:prefix "s-Space" #:wk "Leader"
|
#:prefix "s-Space" #:wk "Leader"
|
||||||
|
|
Loading…
Reference in a new issue