mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-11-24 01:19:36 +01:00
17 lines
367 B
Bash
Executable File
17 lines
367 B
Bash
Executable File
#!/bin/bash
|
|
|
|
focusedClient=$(hyprctl clients -j | jq '[.[] | select(.focusHistoryID|contains(0))][0]')
|
|
|
|
if [[ -n "$focusedClient" ]]; then
|
|
clientClass=$(echo "$focusedClient" | jq '.class' )
|
|
|
|
case "$clientClass" in
|
|
kitty) hyprctl pass "" # cannot pass arbitrary keys to applications atm. abort mission
|
|
;;
|
|
d|D) exit 0
|
|
;;
|
|
*) exit 1
|
|
esac
|
|
fi
|
|
|