aboutsummaryrefslogtreecommitdiff
path: root/hotspots
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-11-30 21:24:10 +0200
committersrdusr <trevorgray@srdusr.com>2023-11-30 21:24:10 +0200
commit4ca3f8775666a4772215d6a5ea7653524ceb8d98 (patch)
treea7184fc4ffce5e97f64c7bd4d771e737c8b2a396 /hotspots
parentbc0af3ee48331b48085e249369ce9e751fa8c442 (diff)
downloaddotfiles-4ca3f8775666a4772215d6a5ea7653524ceb8d98.tar.gz
dotfiles-4ca3f8775666a4772215d6a5ea7653524ceb8d98.zip
Add delay onEnter
Diffstat (limited to 'hotspots')
-rwxr-xr-xhotspots9
1 files changed, 4 insertions, 5 deletions
diff --git a/hotspots b/hotspots
index 76ae5e8..af1f70d 100755
--- a/hotspots
+++ b/hotspots
@@ -13,6 +13,8 @@
# hotspot size
SIZE=2
+DELAY=0.7 # Adjust the delay time in seconds
+
# active hotspot dimensions (width, height)
B=(1100 140)
T=(700 "$SIZE")
@@ -35,11 +37,8 @@ TR=("$SIZE" "$SIZE")
function onEnter {
ZONE=$1
case "$1" in
- 'T') eww open status &>/dev/null ;;
- #'L') eww open panel &>/dev/null ;;
- 'R') eww open bar &>/dev/null ;;
- #'BL') launch-rofi ;;
- #'TR') cycleDesktops ;;
+ 'T') sleep "$DELAY" && [ "$ZONE" == "T" ] && eww open status &>/dev/null ;;
+ 'R') sleep "$DELAY" && [ "$ZONE" == "R" ] && eww open bar &>/dev/null ;;
esac
}