summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-25 09:59:28 +0300
committerThomas Voss <mail@thomasvoss.com> 2023-08-25 09:59:28 +0300
commitee8d010c5934a19cc04a2559cd4fa5a5f3f15ebd (patch)
tree9c77eb692100ba8ec0f47b2369061e9df9479033
parent3961ba32ffcc4f59e678007459f4ad58111e42e7 (diff)
eww: Remove ‘set -e’ from listeners
-rwxr-xr-x.config/eww/scripts/active-workspace-listener2
-rwxr-xr-x.config/eww/scripts/keymap-listener2
-rwxr-xr-x.config/eww/scripts/toggle2
-rwxr-xr-x.config/eww/scripts/workspace-list-listener2
4 files changed, 0 insertions, 8 deletions
diff --git a/.config/eww/scripts/active-workspace-listener b/.config/eww/scripts/active-workspace-listener
index 09a8298..d3d46f2 100755
--- a/.config/eww/scripts/active-workspace-listener
+++ b/.config/eww/scripts/active-workspace-listener
@@ -1,7 +1,5 @@
#!/bin/sh
-set -e
-
readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
hyprctl -j activeworkspace | jq -r '.name'
diff --git a/.config/eww/scripts/keymap-listener b/.config/eww/scripts/keymap-listener
index e526d03..364375d 100755
--- a/.config/eww/scripts/keymap-listener
+++ b/.config/eww/scripts/keymap-listener
@@ -1,7 +1,5 @@
#!/bin/sh
-set -e
-
readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
hyprctl devices -j | jq -r '.keyboards[-1].active_keymap'
diff --git a/.config/eww/scripts/toggle b/.config/eww/scripts/toggle
index 8ce7bcc..0a4d389 100755
--- a/.config/eww/scripts/toggle
+++ b/.config/eww/scripts/toggle
@@ -1,7 +1,5 @@
#!/bin/sh
-set -e
-
# Open a file descriptor for writing to create the lock if it doesn’t exist. We
# need a lock because of race-conditions that could occur if you spam a toggle
# over and over.
diff --git a/.config/eww/scripts/workspace-list-listener b/.config/eww/scripts/workspace-list-listener
index 2024509..eb36f8c 100755
--- a/.config/eww/scripts/workspace-list-listener
+++ b/.config/eww/scripts/workspace-list-listener
@@ -1,7 +1,5 @@
#!/bin/sh
-set -e
-
readonly IPC=/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock
spaces="`hyprctl -j workspaces | jq -r 'sort_by(.id) | .[] | .name'`"