mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-11-22 16:49:37 +01:00
17 lines
367 B
Plaintext
17 lines
367 B
Plaintext
|
#!/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
|
||
|
|