diff options
author | Thanos Apollo <[email protected]> | 2023-08-23 07:53:09 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-23 07:53:09 +0300 |
commit | 6948e4c932c9772ab7f3237e47c3ecd55ea85ad5 (patch) | |
tree | 04c2fe38d5a4426572fc013fd3d7e7aa096049db /stumpwm.org | |
parent | 5a8e73b903a94af0f536299a736841337dfd4af9 (diff) |
stumwpm: update modeline shell-commands
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 |