New check updates module with color indicators for threshholds
This commit is contained in:
parent
55b5d4ed11
commit
1806326c4a
@ -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
|
||||
|
||||
# -----------------------------------------------------
|
||||
|
@ -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")
|
||||
|
@ -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
|
||||
},
|
||||
|
||||
|
@ -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
|
||||
* ----------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user