summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/snippets/functions.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/.emacs.d/snippets/functions.el b/.emacs.d/snippets/functions.el
index 64a4af8..c022ef5 100644
--- a/.emacs.d/snippets/functions.el
+++ b/.emacs.d/snippets/functions.el
@@ -96,6 +96,7 @@
;; (apollo/run-in-background "nm-applet")
(apollo/emacs-keys)
(apollo/set-wallpaper)
+ (start-polybar)
)
(defun apollo/exwm-update-class ()
@@ -115,5 +116,15 @@
(interactive)
(split-window-below 60)
(geiser nil))
+
+(defun start-polybar ()
+ "Check which system is running, start polybar accordingly."
+ (interactive)
+ (if (string= (system-name) "fsociety")
+ (start-process-shell-command
+ "polybar" nil "polybar main & polybar second")
+ (start-process-shell-command
+ "polybar" nil "polybar main")))
;;; my-functions.el ends here
+