summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-22 05:44:19 +0300
committerThanos Apollo <[email protected]>2023-08-22 05:44:19 +0300
commit4b7f3dc1b77940d038d27752711163bb46973a87 (patch)
treeb90e9bc50c9d1770a1f79b60c6914e746e9608c6
parent3978266f1febce79ce3c3a1b92ed1ade92c91d0e (diff)
stumpwm: update startup
-rw-r--r--stumpwm.org24
1 files changed, 18 insertions, 6 deletions
diff --git a/stumpwm.org b/stumpwm.org
index 37a6e68..a35d83e 100644
--- a/stumpwm.org
+++ b/stumpwm.org
@@ -37,13 +37,25 @@
#+end_src
* Autostart
#+begin_src lisp
+
+ (setf is-zeus (equal (asdf:hostname) "zeus"))
+ (setf is-hermes (equal (asdf:hostname) "hermes"))
+ (setf *wallpapers* "~/wallpapers/")
+
+
+ (defun feh-set-wallpaper (wallpaper-name)
+ (let ((wallpaper-dir "~/wallpapers/"))
+ (format t "Setting wallpaper: ~a~%" wallpaper-name)
+ (run-shell-command (format nil "feh --bg-scale ~a~a" wallpaper-dir wallpaper-name))))
+
+ (cond (is-zeus (feh-set-wallpaper "eris-chocolates.jpg"))
+ (is-hermes (feh-set-wallpaper "library-old-house.jpg")))
+
(when *initializing*
- (run-shell-command
- "emacs --daemon &
- feh --bg-scale ~/wallpapers/eris-chocolates.jpg &
- picom &
- xss-lock -n /usr/lib/xsecurelock/dimmer -l -- ~/Developer/scripts/lock.sh &
- setxkbmap -layout us,gr,my-bg -option 'ctrl:swapcaps' -option 'grp:alt_space_toggle'"))
+ (run-shell-command
+ "emacs --daemon &
+ picom &
+ setxkbmap -layout us,gr,my-bg -option 'ctrl:swapcaps' -option 'grp:alt_space_toggle"))
(setf *startup-message* "Welcome back, Thanos")
#+end_src