From 25f350ac7de7b7cc2069f51eff7eb9671e76cf47 Mon Sep 17 00:00:00 2001 From: 135e2 <135e2@135e2.tk> Date: Fri, 28 Jan 2022 13:23:22 +0800 Subject: config/polybar: update to 20220128 - Switch to black background - Make scripts/powermenu.sh happy with $DESKTOP_SESSION - Adjust Lock & Sleep function --- config/polybar/forest/scripts/powermenu.sh | 6 ++++-- config/polybar/forest/scripts/rofi/colors.rasi | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'config/polybar/forest/scripts') diff --git a/config/polybar/forest/scripts/powermenu.sh b/config/polybar/forest/scripts/powermenu.sh index 84eddf4..b3b0fb7 100755 --- a/config/polybar/forest/scripts/powermenu.sh +++ b/config/polybar/forest/scripts/powermenu.sh @@ -57,7 +57,9 @@ case $chosen in fi ;; $lock) - if [[ -f /usr/bin/i3lock ]]; then + if [[ -f /usr/bin/i3lock-fancy ]]; then + i3lock-fancy + elif [[ -f /usr/bin/i3lock ]]; then i3lock elif [[ -f /usr/bin/betterlockscreen ]]; then betterlockscreen -l @@ -68,7 +70,7 @@ case $chosen in if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then mpc -q pause amixer set Master mute - systemctl suspend + croutonpowerd --suspend elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then exit 0 else diff --git a/config/polybar/forest/scripts/rofi/colors.rasi b/config/polybar/forest/scripts/rofi/colors.rasi index cd1f090..72183d9 100644 --- a/config/polybar/forest/scripts/rofi/colors.rasi +++ b/config/polybar/forest/scripts/rofi/colors.rasi @@ -2,9 +2,9 @@ * { al: #00000000; - bg: #212B30FF; - bga: #263035FF; - fg: #C4C7C5FF; - ac: #EC407AFF; - se: #4DD0E1FF; + bg: #141C21FF; + bga: #1E262BFF; + fg: #93A1A1FF; + ac: #D12F2CFF; + se: #33C5BAFF; } -- cgit v1.2.3