Adds new keys & better window management

This commit is contained in:
Michel Fedde 2025-06-09 00:04:45 +02:00
parent 244eff89e9
commit 7cb5091c0b
6 changed files with 19 additions and 4 deletions

View file

@ -109,7 +109,7 @@ bind = $mainMod, Space, fullscreen, 0
# rofi App launcher
#bind = $mainMod, Tab, exec, nwg-drawer -pbexit "wayland-logout" -pbpoweroff "systemctl poweroff" -pbreboot "systemctl reboot"
bind = $mainMod, Tab, exec, $appLauncher
bind = ALT, Tab, exec, hyprswitch gui --mod-key alt --key tab
bind = ALT, Tab, exec, $scriptsDir/anyrun/Windows.sh
bind = $mainMod, Return, exec, $term
bind = $mainMod Shift, Return, exec, hyprdrop ghostty --identifier term_hyprdrop

View file

@ -34,8 +34,6 @@ exec-once = pypr &
exec-once = wl-paste --type text --watch cliphist store # Stores only text data
exec-once = wl-paste --type image --watch cliphist store # Stores only image data
exec-once = hyprswitch init --show-title --size-factor 5.5 --workspaces-per-row 5 &
exec-once = hyprsunset &
exec-once = hyprshade auto
exec-once = sleep 1 && darkman run &

View file

@ -0,0 +1,12 @@
#!/bin/env sh
options=$(hyprctl -j clients | jq 'map({"\(.title)": .pid}) | add')
result=$(echo $options | jq 'keys | map("\(.)\n") | add' -r | anyrun --plugins libstdin.so)
pid=$(echo $options | jq ".[\"$result\"]")
if [[ $pid == "null" ]]; then
exit 0
fi
hyprctl dispatch focuswindow pid:$pid