22 lines
No EOL
534 B
Bash
Executable file
22 lines
No EOL
534 B
Bash
Executable file
#!/bin/sh
|
|
|
|
SCRIPTDIR="$(dirname "$(realpath "$0")")"
|
|
|
|
if hyprctl layers|grep hyprshell; then
|
|
wtype -k escape
|
|
else
|
|
hyprshell socat '"OpenOverview"'
|
|
|
|
hyprctl activewindow|grep Waydroid >> /dev/null
|
|
if [ $? -eq 0 ]; then
|
|
hyprctl dispatch "hl.dsp.workspace.toggle_special(\"waydroid\")"
|
|
fi
|
|
|
|
if [ "$1" = "-k" ] && [ "$("$SCRIPTDIR"/keyboard.sh status)" != "active" ]; then
|
|
"$SCRIPTDIR"/keyboard.sh show --no-rotate
|
|
while hyprctl layers|grep hyprshell; do
|
|
sleep 0.1;
|
|
done
|
|
"$SCRIPTDIR"/keyboard.sh hide --no-rotate
|
|
fi
|
|
fi |