diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-11-30 21:24:10 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-11-30 21:24:10 +0200 |
| commit | 4ca3f8775666a4772215d6a5ea7653524ceb8d98 (patch) | |
| tree | a7184fc4ffce5e97f64c7bd4d771e737c8b2a396 /hotspots | |
| parent | bc0af3ee48331b48085e249369ce9e751fa8c442 (diff) | |
| download | dotfiles-4ca3f8775666a4772215d6a5ea7653524ceb8d98.tar.gz dotfiles-4ca3f8775666a4772215d6a5ea7653524ceb8d98.zip | |
Add delay onEnter
Diffstat (limited to 'hotspots')
| -rwxr-xr-x | hotspots | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 } |
