forked from Shinonome/dots-hyprland
stuff
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/bash
|
||||
cd ~/.config/eww || exit
|
||||
|
||||
reserves=$(hyprctl monitors -j | gojq -r -c '.[0]["reserved"]')
|
||||
if [[ "$1" == "--keypress" && "$reserves" == "[0,0,0,50]" ]]; then
|
||||
scripts/toggle-winnotif.sh
|
||||
exit
|
||||
fi
|
||||
|
||||
state=$(eww get rev_ontf)
|
||||
|
||||
if [[ "$state" == "true" || "$1" == "--close" ]]; then
|
||||
eww update anim_open_ontf=false
|
||||
eww update rev_ontf=false
|
||||
# eww update force_sys_rev=false
|
||||
sleep 0.15
|
||||
eww close onotify 2>/dev/null
|
||||
else
|
||||
eww update anim_open_ontf=true
|
||||
eww open onotify
|
||||
eww update rev_ontf=true &
|
||||
# eww update force_sys_rev=true &
|
||||
fi
|
||||
Reference in New Issue
Block a user