diff options
Diffstat (limited to 'stumpwm.org')
-rw-r--r-- | stumpwm.org | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/stumpwm.org b/stumpwm.org index ed15a9f..32df483 100644 --- a/stumpwm.org +++ b/stumpwm.org @@ -57,10 +57,10 @@ (is-hermes (feh-set-wallpaper "library-old-house.jpg"))) (when *initializing* - (run-shell-command + (stumpwm:run-shell-command "emacs --daemon & picom & - setxkbmap -layout us,gr,my-bg -option 'ctrl:swapcaps' -option 'grp:alt_space_toggle")) + setxkbmap -layout us,gr,my-bg -option 'ctrl:swapcaps' -option 'grp:alt_space_toggle'")) (setf *startup-message* "Welcome back, Thanos") #+end_src @@ -255,7 +255,7 @@ "% | CPU:" '(:eval (string-trim '(#\Newline) (stumpwm:run-shell-command - "grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {printf \"%.2f%\n\", usage}'"t))) + "grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {printf(\"%.2f\", usage)}'" t))) "% | VOL:" '(:eval (string-trim '(#\Newline) (stumpwm:run-shell-command "pamixer --get-volume" t))) @@ -264,7 +264,9 @@ (when is-hermes "BAT:%B |") "%d")) - (mode-line) + + (when stumpwm:*initializing* + (mode-line)) #+end_src /Note: to trim new line when using shell commands for mode-line use something like this:/ #+begin_src emacs-lisp :tangle nil |