From 0f1c25d607568ff876e541d880f92736790c7b40 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sat, 10 Aug 2024 16:12:42 -0700 Subject: [PATCH] bash didn't always get the jq=jaq alias --- .../ewwbar/eww-config/scripts/clock_background | 4 ---- .../eww-config/scripts/clock_background.sh | 17 ----------------- .../eww-config/scripts/get-active-workspace | 2 +- modules/ewwbar/eww-config/scripts/volume | 2 +- 4 files changed, 2 insertions(+), 23 deletions(-) delete mode 100755 modules/ewwbar/eww-config/scripts/clock_background delete mode 100755 modules/ewwbar/eww-config/scripts/clock_background.sh diff --git a/modules/ewwbar/eww-config/scripts/clock_background b/modules/ewwbar/eww-config/scripts/clock_background deleted file mode 100755 index 25e54b8..0000000 --- a/modules/ewwbar/eww-config/scripts/clock_background +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/env bash - - -echo "{ }" diff --git a/modules/ewwbar/eww-config/scripts/clock_background.sh b/modules/ewwbar/eww-config/scripts/clock_background.sh deleted file mode 100755 index 4bae7d6..0000000 --- a/modules/ewwbar/eww-config/scripts/clock_background.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - - -moonstate=$(gcal --resource-file=$HOME/.config/eww/scripts/moontime | awk '{print $4}') - -sunstate=$(gcal --resource-file=$HOME/.config/eww/scripts/suntime | awk '{print $4}') - -moonrise=$(echo $moonstate | awk '{print $1}') -moonset=$(echo $moonstate | awk '{print $2}') -moonphase=$(echo $moonstate | awk '{print $3}') - -sunrise=$(echo $sunstate | awk '{print $1}') -sunset=$(echo $sunstate | awk '{print $2}') - - - -echo "{ \"has_color\": false, \"is_sun\": true, \"gradient_angle\": 45 }" diff --git a/modules/ewwbar/eww-config/scripts/get-active-workspace b/modules/ewwbar/eww-config/scripts/get-active-workspace index 7bb8fe3..b1acc07 100755 --- a/modules/ewwbar/eww-config/scripts/get-active-workspace +++ b/modules/ewwbar/eww-config/scripts/get-active-workspace @@ -1,6 +1,6 @@ #!/usr/bin/env bash -hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id' +hyprctl monitors -j | jaq '.[] | select(.focused) | .activeWorkspace.id' socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}' diff --git a/modules/ewwbar/eww-config/scripts/volume b/modules/ewwbar/eww-config/scripts/volume index 7813168..e5d6638 100755 --- a/modules/ewwbar/eww-config/scripts/volume +++ b/modules/ewwbar/eww-config/scripts/volume @@ -9,4 +9,4 @@ esac [ -n "$command" ] && pw-volume $command -$2 update volume=$(pw-volume status | jq '.percentage // 10') +$2 update volume=$(pw-volume status | jaq '.percentage // 10')