Compare commits
2 commits
575be7c986
...
58704035dd
Author | SHA1 | Date | |
---|---|---|---|
58704035dd | |||
cc2c37ef8f |
3 changed files with 9 additions and 3 deletions
|
@ -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+
|
||||||
|
|
||||||
|
|
|
@ -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
3
waybar/scripts/wttr.sh
Executable 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\"}"
|
Loading…
Add table
Add a link
Reference in a new issue