fix typos and improve code sample in readme

This commit is contained in:
Almarhoon Ibraheem 2024-06-16 07:49:28 +03:00
parent 2ffcd7f8fe
commit daf458ff7a

View file

@ -1,4 +1,3 @@
#+title: Readme
#+STARTUP: inlineimages
#+OPTIONS: toc:3 ^:nil
@ -56,13 +55,14 @@ You can assign keybindings that execute Guile code! Obviously, running shell com
;; window management
`(sway-define-keys
#:prefix "w" #:wk "Window"
("v" (sway-split-container SWAY-SPLIT-VERTICAL))
("h" (sway-split-container SWAY-SPLIT-HORIZONTAL))
("v" (sway-layout SWAY-LAYOUT-SPLITV))
("h" (sway-layout SWAY-LAYOUT-SPLITH))
("f" (sway-fullscreen SWAY-FULLSCREEN-TOGGLE))
("d" (sway-fullscreen SWAY-FULLSCREEN-TOGGLE))))
("d" (sway-layout SWAY-LAYOUT-DEFAULT))
("t" (sway-layout SWAY-LAYOUT-TABBED))))
#+end_src
*** Subscribe for Events
*** Subscribe to Events
Certain scenarios necessitate subscribing to events. One example from my =workflow= described below requires this capability. With =swayipc=, you have the ability to listen for events and execute actions in response.