diff options
author | awy <awy@tutamail.com> | 2024-07-31 19:26:35 +0300 |
---|---|---|
committer | awy <awy@tutamail.com> | 2024-07-31 19:26:35 +0300 |
commit | 0518efb332f5c9cf558cdd4619eab329f77b22b1 (patch) | |
tree | 1842928b903015da541c84b2e3083b38d7fb5ba1 /.config/waybar/scripts |
clean
Diffstat (limited to '.config/waybar/scripts')
-rwxr-xr-x | .config/waybar/scripts/album_art.sh | 9 | ||||
-rwxr-xr-x | .config/waybar/scripts/doppler | 1 | ||||
-rwxr-xr-x | .config/waybar/scripts/hyprdoppler | 1 | ||||
-rwxr-xr-x | .config/waybar/scripts/hyprweather | 1 | ||||
-rwxr-xr-x | .config/waybar/scripts/onclick-weather | 2 | ||||
-rwxr-xr-x | .config/waybar/scripts/pacpackages | 2 | ||||
-rwxr-xr-x | .config/waybar/scripts/pacupdate | 4 | ||||
-rwxr-xr-x | .config/waybar/scripts/weather | 3 |
8 files changed, 23 insertions, 0 deletions
diff --git a/.config/waybar/scripts/album_art.sh b/.config/waybar/scripts/album_art.sh new file mode 100755 index 0000000..5a8cdab --- /dev/null +++ b/.config/waybar/scripts/album_art.sh @@ -0,0 +1,9 @@ +#!/bin/sh +album_art=$(playerctl -p spotify_player metadata mpris:artUrl) +if [[ -z $album_art ]] +then + # spotify is dead, we should die too. + exit +fi +curl -s "${album_art}" --output "/tmp/cover.jpeg" +echo "/tmp/cover.jpeg" diff --git a/.config/waybar/scripts/doppler b/.config/waybar/scripts/doppler new file mode 100755 index 0000000..3d1b7dc --- /dev/null +++ b/.config/waybar/scripts/doppler @@ -0,0 +1 @@ +curl -s "https://meteoinfo.ru/hmc-output/rmap/phenomena.gif" | imv - -H 1200 -W 1200 diff --git a/.config/waybar/scripts/hyprdoppler b/.config/waybar/scripts/hyprdoppler new file mode 100755 index 0000000..d383b32 --- /dev/null +++ b/.config/waybar/scripts/hyprdoppler @@ -0,0 +1 @@ +hyprctl dispatch exec "[float; size 1200 1200;]" '/home/awy/.config/waybar/scripts/doppler' diff --git a/.config/waybar/scripts/hyprweather b/.config/waybar/scripts/hyprweather new file mode 100755 index 0000000..45687f6 --- /dev/null +++ b/.config/waybar/scripts/hyprweather @@ -0,0 +1 @@ +hyprctl dispatch exec "[float; size 1430 1100;]" 'kitty -e "/home/awy/.config/waybar/scripts/onclick-weather"' diff --git a/.config/waybar/scripts/onclick-weather b/.config/waybar/scripts/onclick-weather new file mode 100755 index 0000000..9592932 --- /dev/null +++ b/.config/waybar/scripts/onclick-weather @@ -0,0 +1,2 @@ +curl wttr.in +read -p "Press Enter to continue..." diff --git a/.config/waybar/scripts/pacpackages b/.config/waybar/scripts/pacpackages new file mode 100755 index 0000000..e362ee2 --- /dev/null +++ b/.config/waybar/scripts/pacpackages @@ -0,0 +1,2 @@ +doas pacman -Sy > /dev/null 2>&1 +pacman -Qu | grep -Fcv "[ignored]" | sed "s/^/📦 /;s/^📦 0$//g" diff --git a/.config/waybar/scripts/pacupdate b/.config/waybar/scripts/pacupdate new file mode 100755 index 0000000..0bdf32e --- /dev/null +++ b/.config/waybar/scripts/pacupdate @@ -0,0 +1,4 @@ +doas pacman -Syu --noconfirm +sleep 5 +hyprctl notify 5 10000 "rgb(ff1ea3)" " Packages have been upgraded" +pkill -RTMIN+8 waybar diff --git a/.config/waybar/scripts/weather b/.config/waybar/scripts/weather new file mode 100755 index 0000000..c80b387 --- /dev/null +++ b/.config/waybar/scripts/weather @@ -0,0 +1,3 @@ +#!/bin/sh +#curl -s "wttr.in/?format=3" | awk '{print $3, $4}' +curl -s "wttr.in/?format='%c%t'" | sed "s/'//g" | sed 's/ / /g' |