feat: add float+pin window toggle#1501
Open
dhanushka2001 wants to merge 1 commit intomylinuxforwork:mainfrom
Open
feat: add float+pin window toggle#1501dhanushka2001 wants to merge 1 commit intomylinuxforwork:mainfrom
dhanushka2001 wants to merge 1 commit intomylinuxforwork:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds a new keybind Super+Alt+T that uses a simple 2-line hyprctl dispatch script to toggle floating + pinning (sticky) mode for the active window.
Changes
Context
I found this feature useful when I want a floating window to be visible even when switching workspaces. The window can be easily toggled back to not be floating and pinned by pressing Super+Alt+T again or even just Super+T.
How Has This Been Tested?
Checklist
Screenshots
Additional Notes
In my
custom.confI have switched the keybindings for the "float all windows" toggle and my float+pin window toggle, so my float+pin window toggle keybind is actually Super+Shift+T which is easier to press, as I find I use the feature much more than the "float all windows" toggle. It also better aligns with the standard keybinding Super+Shift+[1-9] to move a window to another workspace. But in the interest of not messing with pre-existing default keybinds, I have not made this switch in this PR.