From cc2c37ef8fddf979c46d054df378b242ef9d147d Mon Sep 17 00:00:00 2001 From: steven Date: Sat, 19 Apr 2025 18:36:31 -0400 Subject: [PATCH 1/2] playerctl keybindings --- sway/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/config b/sway/config index 1afaa0e..acf605d 100644 --- a/sway/config +++ b/sway/config @@ -90,9 +90,9 @@ bindgesture hold:4 exec swaylock bindsym --locked XF86AudioPrev exec playerctl previous bindsym --locked XF86AudioPlay exec playerctl play-pause bindsym --locked XF86AudioNext exec playerctl next +bindsym --locked Mod4+up exec playerctl previous bindsym --locked Mod4+space exec playerctl play-pause -bindsym --locked Mod4+up exec playerctl next -bindsym --locked Mod4+down exec playerctl previous +bindsym --locked Mod4+down exec playerctl next bindsym --locked Mod4+left exec playerctl position 10- bindsym --locked Mod4+right exec playerctl position 10+ From 58704035ddb381a15784829c82da01960fcc28a5 Mon Sep 17 00:00:00 2001 From: steven Date: Sat, 19 Apr 2025 18:37:11 -0400 Subject: [PATCH 2/2] weather tooltip information --- waybar/config.jsonc | 5 ++++- waybar/scripts/wttr.sh | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 waybar/scripts/wttr.sh diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 7c8c155..ba948fc 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -21,11 +21,14 @@ "mpris":{ "interval":1, "format":"{dynamic}", + "dynamic-len":44, + "dynamic-importance-order":["title","position","length","artist","album"], "tooltip":false }, "custom/weather":{ "interval":600, - "exec":"curl 'https://wttr.in/?m&format=%C+(%t)'" + "return-type":"json", + "exec":"~/.config/waybar/scripts/wttr.sh" }, "network#warp":{ "interval":5, diff --git a/waybar/scripts/wttr.sh b/waybar/scripts/wttr.sh new file mode 100755 index 0000000..9f91d2b --- /dev/null +++ b/waybar/scripts/wttr.sh @@ -0,0 +1,3 @@ +wttr=$(curl -s "https://wttr.in/Louisville?m&format=%t") +tooltip=$(curl -s "https://wttr.in/Louisville?m&format=%C:RealFeel+%f:UV+Index+%u:Precip.+%p:Wind+%w"|sed 's/:/\\n/g') +echo -E "{\"text\":\"$wttr\",\"tooltip\":\"$tooltip\"}"