From b9ed256dca3a19d88bf354e774d2956bed7c864a Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sat, 14 Sep 2019 09:14:58 -0400 Subject: [PATCH] Polybar add unicode symbols in menus, color change --- polybar/.config/polybar/config | 29 +++++++++++++----------- polybar/.config/polybar/start-polybar.sh | 1 - 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 87fab65..48d82f5 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -3,8 +3,8 @@ monitor = ${env:MONITOR} width = 100% height = 34 -background = #00000000 -foreground = #ccffffff +background = #000000 +foreground = #00c24a line-color = ${bar/bottom.background} line-size = 16 @@ -55,31 +55,34 @@ type = custom/menu format-padding = 5 -label-open = ䷡ -label-close = X +label-open = ䷡ +label-close = "Ⓧ " -menu-0-0 = Terminate WM +menu-0-0 = "↸ pkill poly " menu-0-0-foreground = #fba922 -menu-0-0-exec = bspc quit -1 -menu-0-1 = Reboot +menu-0-0-exec = pkill -f polybar +menu-0-1 = "⊒ i3 restart " menu-0-1-foreground = #fba922 -menu-0-1-exec = menu_open-1 -menu-0-2 = Power off +menu-0-1-exec = i3 restart +menu-0-2 = "⬡ Reboot " menu-0-2-foreground = #fba922 -menu-0-2-exec = menu_open-2 +menu-0-2-exec = sudo /sbin/reboot +menu-0-3 = "⏾ Power off " +menu-0-3-foreground = #fba922 +menu-0-3-exec = sudo poweroff menu-1-0 = Cancel menu-1-0-foreground = #fba922 menu-1-0-exec = menu_open-0 menu-1-1 = Reboot -menu-1-1-foreground = #fba922 -menu-1-1-exec = sudo reboot +menu-1-1-foreground = #fff +menu-1-1-exec = xterm menu-2-0 = Power off menu-2-0-foreground = #fba922 menu-2-0-exec = sudo poweroff menu-2-1 = Cancel -menu-2-1-foreground = #fba922 +menu-2-1-foreground = #ffffff menu-2-1-exec = menu_open-0 [module/cpu] diff --git a/polybar/.config/polybar/start-polybar.sh b/polybar/.config/polybar/start-polybar.sh index 811701a..64dd3d7 100755 --- a/polybar/.config/polybar/start-polybar.sh +++ b/polybar/.config/polybar/start-polybar.sh @@ -6,7 +6,6 @@ # start-polybar.sh # Kill any previous polybars -pkill -f polybar # For each monitor in list up to ':' for m in $(polybar --list-monitors | cut -d":" -f1); do