diff --git a/dotfiles/.config/hypr/conf/keybindings/default.conf b/dotfiles/.config/hypr/conf/keybindings/default.conf index e2e36bb7b..3bfb7c5bf 100644 --- a/dotfiles/.config/hypr/conf/keybindings/default.conf +++ b/dotfiles/.config/hypr/conf/keybindings/default.conf @@ -27,6 +27,7 @@ bind = $mainMod, F, fullscreen, 0 bind = $mainMod, M, fullscreen, 1 # Maximize Window bind = $mainMod, T, togglefloating # Toggle active windows into floating mode bindd = $mainMod SHIFT, T, Float all windows, exec, ~/.config/ml4w/scripts/ml4w-toggle-allfloat # Toggle floating for all windows of workspace +bind = $mainMod ALT, T, exec, ~/.config/ml4w/scripts/ml4w-toggle-float-pin # Toggle active window into floating + pinned mode bind = $mainMod, J, layoutmsg, togglesplit # Toggle split bind = $mainMod, left, movefocus, l # Move focus left bind = $mainMod, right, movefocus, r # Move focus right diff --git a/dotfiles/.config/ml4w/scripts/ml4w-toggle-float-pin b/dotfiles/.config/ml4w/scripts/ml4w-toggle-float-pin new file mode 100644 index 000000000..4aa55745a --- /dev/null +++ b/dotfiles/.config/ml4w/scripts/ml4w-toggle-float-pin @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Toggle floating and pinning (sticky) for the active window +hyprctl dispatch togglefloating +hyprctl dispatch pin