mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2025-07-11 21:49:41 +03:00
Update hyprland config
This commit is contained in:
16
scripts/smart-tab
Executable file
16
scripts/smart-tab
Executable file
@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
|
Reference in New Issue
Block a user