Skip to content

feat: add float+pin window toggle#1501

Open
dhanushka2001 wants to merge 1 commit intomylinuxforwork:mainfrom
dhanushka2001:feature/toggle-float-pin-window-v1
Open

feat: add float+pin window toggle#1501
dhanushka2001 wants to merge 1 commit intomylinuxforwork:mainfrom
dhanushka2001:feature/toggle-float-pin-window-v1

Conversation

@dhanushka2001
Copy link

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

  • Improved
  • Bug Fixes
  • Feature
  • Documentation
  • Other

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?

  • Tested on Arch Linux/Based Distro.
  • Tested on Fedora Linux/Based Distro.
  • Tested on openSuse.

Checklist

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes do not introduce new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes.

Screenshots

screenshot_20260309_122841 screenshot_20260309_123245

Additional Notes

In my custom.conf I 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant