New check updates module with color indicators for threshholds

This commit is contained in:
Stephan Raabe 2023-09-10 15:03:00 +02:00
parent 55b5d4ed11
commit 1806326c4a
4 changed files with 22 additions and 7 deletions

View File

@ -20,9 +20,8 @@ wal -q -i ~/wallpaper/
source "$HOME/.cache/wal/colors.sh"
# -----------------------------------------------------
# Copy color file to waybar folder
# Copy selected wallpaper into .cache folder
# -----------------------------------------------------
cp ~/.cache/wal/colors-waybar.css ~/dotfiles/waybar/
cp $wallpaper ~/.cache/current_wallpaper.jpg
# -----------------------------------------------------

View File

@ -28,9 +28,8 @@ if [ "$selected" ]; then
source "$HOME/.cache/wal/colors.sh"
# -----------------------------------------------------
# Copy color file to waybar folder
# Copy selected wallpaper into .cache folder
# -----------------------------------------------------
cp ~/.cache/wal/colors-waybar.css ~/dotfiles/waybar/
cp $wallpaper ~/.cache/current_wallpaper.jpg
newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g")

View File

@ -67,10 +67,13 @@
// Updates Count
"custom/updates": {
"format": " {}",
"format": " {}",
"tooltip-format": "{}",
"escape": true,
"return-type": "json",
"exec": "~/dotfiles/scripts/updates.sh",
"restart-interval": 600,
"on-click": "alacritty -e yay",
"on-click": "alacritty -e ~/dotfiles/scripts/installupdates.sh",
"tooltip": false
},

View File

@ -13,7 +13,7 @@
/* -----------------------------------------------------
* Import Pywal colors
* ----------------------------------------------------- */
@import 'colors-waybar.css';
@import '../../.cache/wal/colors-waybar.css';
/* -----------------------------------------------------
* General
@ -191,6 +191,20 @@ window#waybar.empty #window {
opacity:0.8;
}
#custom-updates.green {
background-color: #FFFFFF;
}
#custom-updates.yellow {
background-color: #ff9a3c;
color: #ffffff;
}
#custom-updates.red {
background-color: #dc2f2f;
color: #ffffff;
}
/* -----------------------------------------------------
* Custom Youtube
* ----------------------------------------------------- */