From 4247ff48338b61d688f39e18d632bbf684f47d0d Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 25 Jan 2023 20:09:31 +0200 Subject: functions: Add start-polybar --- .emacs.d/snippets/functions.el | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.emacs.d/snippets/functions.el') 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 + -- cgit v1.2.3