Skip to content

fix: add toggle functionality for special workspace (scratchpad) keybind#1666

Open
dhanushka2001 wants to merge 1 commit into
mylinuxforwork:mainfrom
dhanushka2001:fix/toggle-scratchpad-window
Open

fix: add toggle functionality for special workspace (scratchpad) keybind#1666
dhanushka2001 wants to merge 1 commit into
mylinuxforwork:mainfrom
dhanushka2001:fix/toggle-scratchpad-window

Conversation

@dhanushka2001

Copy link
Copy Markdown
Contributor

Description

This pull request fixes the toggle scratchpad window keybind (SUPER+SHIFT+S) by calling a new script, ml4w-toggle-scratchpad-window, via hl.dsp.exec_cmd, making it a true toggle in both directions.

The new script (ml4w-toggle-scratchpad-window) checks whether the focused window is currently in the special workspace (scratchpad):

  • If yes, moves it back to the active workspace on the focused monitor
  • If no, moves it into special:magic (scratchpad)

Changes

  • Improved
  • Bug Fixes
  • Feature
  • Documentation
  • Other

Context

SUPER+SHIFT+S currently only moves windows into the special workspace (scratchpad), with no way to move them back out using the same keybind.

How Has This Been Tested?

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

Checklist

Please ensure your pull request meets the following requirements:

  • 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

Related Issues

Fixes #1508

Additional Notes

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.

[FEATURE] Hidden Workspace Toggle (similar to Jakoolit setup)

1 participant