From 0518efb332f5c9cf558cdd4619eab329f77b22b1 Mon Sep 17 00:00:00 2001 From: awy Date: Wed, 31 Jul 2024 19:26:35 +0300 Subject: clean --- .config/waybar/scripts/album_art.sh | 9 +++++++++ .config/waybar/scripts/doppler | 1 + .config/waybar/scripts/hyprdoppler | 1 + .config/waybar/scripts/hyprweather | 1 + .config/waybar/scripts/onclick-weather | 2 ++ .config/waybar/scripts/pacpackages | 2 ++ .config/waybar/scripts/pacupdate | 4 ++++ .config/waybar/scripts/weather | 3 +++ 8 files changed, 23 insertions(+) create mode 100755 .config/waybar/scripts/album_art.sh create mode 100755 .config/waybar/scripts/doppler create mode 100755 .config/waybar/scripts/hyprdoppler create mode 100755 .config/waybar/scripts/hyprweather create mode 100755 .config/waybar/scripts/onclick-weather create mode 100755 .config/waybar/scripts/pacpackages create mode 100755 .config/waybar/scripts/pacupdate create mode 100755 .config/waybar/scripts/weather (limited to '.config/waybar/scripts') 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' -- cgit v1.2.3