Compare commits

...

2 commits

Author SHA1 Message Date
58704035dd weather tooltip information 2025-04-19 18:37:11 -04:00
cc2c37ef8f playerctl keybindings 2025-04-19 18:36:31 -04:00
3 changed files with 9 additions and 3 deletions

View file

@ -90,9 +90,9 @@ bindgesture hold:4 exec swaylock
bindsym --locked XF86AudioPrev exec playerctl previous bindsym --locked XF86AudioPrev exec playerctl previous
bindsym --locked XF86AudioPlay exec playerctl play-pause bindsym --locked XF86AudioPlay exec playerctl play-pause
bindsym --locked XF86AudioNext exec playerctl next bindsym --locked XF86AudioNext exec playerctl next
bindsym --locked Mod4+up exec playerctl previous
bindsym --locked Mod4+space exec playerctl play-pause bindsym --locked Mod4+space exec playerctl play-pause
bindsym --locked Mod4+up exec playerctl next bindsym --locked Mod4+down exec playerctl next
bindsym --locked Mod4+down exec playerctl previous
bindsym --locked Mod4+left exec playerctl position 10- bindsym --locked Mod4+left exec playerctl position 10-
bindsym --locked Mod4+right exec playerctl position 10+ bindsym --locked Mod4+right exec playerctl position 10+

View file

@ -21,11 +21,14 @@
"mpris":{ "mpris":{
"interval":1, "interval":1,
"format":"{dynamic}", "format":"{dynamic}",
"dynamic-len":44,
"dynamic-importance-order":["title","position","length","artist","album"],
"tooltip":false "tooltip":false
}, },
"custom/weather":{ "custom/weather":{
"interval":600, "interval":600,
"exec":"curl 'https://wttr.in/?m&format=%C+(%t)'" "return-type":"json",
"exec":"~/.config/waybar/scripts/wttr.sh"
}, },
"network#warp":{ "network#warp":{
"interval":5, "interval":5,

3
waybar/scripts/wttr.sh Executable file
View file

@ -0,0 +1,3 @@
wttr=$(curl -s "https://wttr.in/Louisville?m&format=%t")
tooltip=$(curl -s "https://wttr.in/Louisville?m&format=<u>%C</u>:RealFeel+%f:UV+Index+%u:Precip.+%p:Wind+%w"|sed 's/:/\\n/g')
echo -E "{\"text\":\"$wttr\",\"tooltip\":\"$tooltip\"}"