From 810db743a9bfdaeb36b204d4d0f4c11ba0731bfd Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Tue, 12 Sep 2023 15:13:41 +0200 Subject: [PATCH] Updates style for taskbar --- 1-install.sh | 1 + hypr/hyprland.conf | 4 ++-- scripts/updates.sh | 4 +++- waybar/style.css | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/1-install.sh b/1-install.sh index ef0c28e..e22dbb9 100755 --- a/1-install.sh +++ b/1-install.sh @@ -74,6 +74,7 @@ echo "" echo "-> Install main packages" packagesPacman=( + "pacman-contrib" "alacritty" "rofi" "chromium" diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index afd21da..76c528e 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -18,8 +18,8 @@ env = WLR_RENDERER_ALLOW_SOFTWARE, 1 # Monitor Setup # See https://wiki.hyprland.org/Configuring/Monitors/ # ----------------------------------------------------- -monitor=,2560x1440@120,auto,1 -# monitor=,preferred,auto,1 +# monitor=,2560x1440@120,auto,1 +monitor=,preferred,auto,1 # monitor=,1920x1080,auto,1 # ----------------------------------------------------- diff --git a/scripts/updates.sh b/scripts/updates.sh index f6a1533..b21c5d0 100755 --- a/scripts/updates.sh +++ b/scripts/updates.sh @@ -8,6 +8,7 @@ # # by Stephan Raabe (2023) # ----------------------------------------------------- +# Requires pacman-contrib trizen # ----------------------------------------------------- # Define threshholds for color indicators @@ -43,7 +44,8 @@ css_class="green" if [ "$updates" -gt $threshhold_yellow ]; then css_class="yellow" -elif [ "$updates" -gt $threshhold_red ]; then +fi +if [ "$updates" -gt $threshhold_red ]; then css_class="red" fi if [ "$updates" -gt $threshhold_green ]; then diff --git a/waybar/style.css b/waybar/style.css index 1dc6ece..b3192ae 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -117,7 +117,7 @@ window#waybar.empty #window { * ----------------------------------------------------- */ #taskbar { - background: transparent; + background: @color11; margin: 3px 15px 3px 0px; padding: 2px 3px 1px 3px; border-radius: 14px;