summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-01-25 20:09:31 +0200
committerThanos Apollo <[email protected]>2023-01-25 20:09:31 +0200
commit4247ff48338b61d688f39e18d632bbf684f47d0d (patch)
treed049a8181184d02275317c812159598e8300427f /.emacs.d
parentd6bca08e9b708d7680c53c32f37eb02a5a445217 (diff)
functions: Add start-polybar
Diffstat (limited to '.emacs.d')
-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
+