From 876be58b8482e180017bfcf30d94f1a46734f7f5 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Fri, 31 Dec 2021 11:28:54 +0100 Subject: [PATCH] UPdaootst --- files/.config/polybar/config | 1 - files/init.el | 16 +--------------- scripts/polybar.sh | 13 ++++++++----- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/files/.config/polybar/config b/files/.config/polybar/config index ae5c8f5..3bed675 100644 --- a/files/.config/polybar/config +++ b/files/.config/polybar/config @@ -93,7 +93,6 @@ content-padding = 1 [module/battery] type = internal/battery -full-at = 99 battery = BAT0 adapter = ADP1 time-format = %H:%M diff --git a/files/init.el b/files/init.el index dfaadfe..c493c3f 100644 --- a/files/init.el +++ b/files/init.el @@ -206,19 +206,6 @@ (setq doom-modeline-indent-info t doom-modeline-buffer-file-name-style 'file-name)) -;; Cool dashboard -(use-package dashboard - :straight t - :config - (dashboard-setup-startup-hook) - (setq dashboard-banner-logo-title"「EMACS」へようこそ, マルコさん!" - dashboard-startup-banner 'logo - dashboard-items '((agenda . 20)) - dashboard-item-names '(("Agenda for the coming week:" . "Agenda:")) - dashboard-center-content t) - (when (file-exists-p "~/.emacs.d/dashboard.png") - (setq dashboard-startup-banner "~/.emacs.d/dashboard.png"))) - ;; Show color codes as colors inline (use-package rainbow-mode :straight t @@ -388,8 +375,7 @@ org-agenda-start-on-weekday nil ; my week starts on a monday calendar-week-start-day 1 org-capture-templates - (quote (("j" "Japanese" entry (file "~/org/japanese.org") "* TODO %?\n" :empty-lines-before 1) - ("w" "Work" entry (file "~/org/work.org") "* TODO %?\n" :empty-lines-before 1) + (quote (("w" "Work" entry (file "~/org/work.org") "* TODO %?\n" :empty-lines-before 1) ("u" "University" entry (file "~/org/uni.org") "* TODO %?\n" :empty-lines-before 1) ("p" "Personal" entry (file "~/org/personal.org") "* TODO %?\n" :empty-lines-before 1))) org-latex-listings 'minted ; export with code highlighting diff --git a/scripts/polybar.sh b/scripts/polybar.sh index 769fb86..ca2dc22 100755 --- a/scripts/polybar.sh +++ b/scripts/polybar.sh @@ -1,7 +1,10 @@ killall -q polybar -for mon in $(xrandr | grep 'connected' | awk '{print $1}'): -do - echo ${mon} - MON=${mon} polybar -r bar & -done +if type "xrandr"; then + for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do + echo $m + MON=$m polybar --reload bar & + done +else + polybar --reload bar & +fi