Update to current dots
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# start waybar if not started
|
||||
if ! pgrep -x "waybar" > /dev/null; then
|
||||
waybar &
|
||||
fi
|
||||
|
||||
# current checksums
|
||||
current_checksum_config=$(md5sum ~/.config/waybar/config)
|
||||
current_checksum_style=$(md5sum ~/.config/waybar/style.css)
|
||||
|
||||
# loop forever
|
||||
while true; do
|
||||
# new checksums
|
||||
new_checksum_config=$(md5sum ~/.config/waybar/config)
|
||||
new_checksum_style=$(md5sum ~/.config/waybar/style.css)
|
||||
|
||||
# if checksums are different
|
||||
if [ "$current_checksum_config" != "$new_checksum_config" ] || [ "$current_checksum_style" != "$new_checksum_style" ]; then
|
||||
# kill waybar
|
||||
killall waybar
|
||||
|
||||
# start waybar
|
||||
waybar &
|
||||
|
||||
# update checksums
|
||||
current_checksum_config=$new_checksum_config
|
||||
current_checksum_style=$new_checksum_style
|
||||
sleep 1
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"custom/poweroff"
|
||||
],
|
||||
"clock": {
|
||||
"interval": 60,
|
||||
"interval": 1,
|
||||
"format": "<b>{:%H:%M:%S}</b>",
|
||||
"format-alt": "{:%Y-%m-%d}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
@@ -51,6 +51,26 @@ window#waybar.hidden {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
/* Left side */
|
||||
#wireplumber,
|
||||
#disk,
|
||||
#memory,
|
||||
#cpu,
|
||||
#custom-gpu,
|
||||
#temperature {
|
||||
color: @teal;
|
||||
}
|
||||
|
||||
/* Right side */
|
||||
#clock,
|
||||
#network,
|
||||
#tray,
|
||||
#custom-poweroff,
|
||||
#custom-weather {
|
||||
color: @sapphire;
|
||||
}
|
||||
|
||||
/* Old Colors
|
||||
#wireplumber{
|
||||
color: @sapphire;
|
||||
}
|
||||
@@ -69,3 +89,4 @@ window#waybar.hidden {
|
||||
#temperature {
|
||||
color: @sky;
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user