summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/toggle
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-24 18:54:38 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-24 18:54:38 +0100
commit8fd096d2cd583df4e0d133e21a9a8b4dab0bda8d (patch)
tree6719a59c69e4f3653511f09592a019fbae3b20e2 /.config/eww/scripts/toggle
parentabcc767eba2850261cd38d98902b57d5898c1a49 (diff)
eww: Remove date onclick behavior
Diffstat (limited to '.config/eww/scripts/toggle')
-rwxr-xr-x.config/eww/scripts/toggle15
1 files changed, 0 insertions, 15 deletions
diff --git a/.config/eww/scripts/toggle b/.config/eww/scripts/toggle
deleted file mode 100755
index 0a4d389..0000000
--- a/.config/eww/scripts/toggle
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# 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.
-exec 3>"${XDG_RUNTIME_DIR:-/run/user/`id -u`}/eww-toggle.lock"
-flock 3
-
-for arg in "$@"; do
- {
- eww windows | grep -q "^\\*$arg$" && f=close || f=open
- eww $f "$arg"
- } &
-done
-wait