How can I get Qubes OS to snap windows to portions of my display like how in Windows when you press and hold the Start Key + Arrow, the app you are on snaps to a side of the display?
You can configure this in XFCE window manager GUI and go in keyboard tab.
What would be the name of the command/action which snaps windows/qubes?
I donât know the English names, I guess something like âTile the window to the upperâ, âbottomâ, âleft right cornerâ etc⌠You have 4 sides and 4 corners to map, I also recommend to set a keybinding to maximize/maximization a window, and one to lower it to the task bar.
Ah, I didnât know it was called âtiling.â According to Braveâs Leo A.I.,
"Qubes OS does not have a built-in tiling window manager. However, there are workarounds and alternatives mentioned:
- i3: One user successfully installed i3, a tiling window manager, on Qubes OS and made patches to make it work. The patches are available on GitHub: GitHub - SietsevanderMolen/i3-qubes: qubes rpm for i3.
- Awesome: Another user suggested packaging the Awesome desktop environment, which includes a tiling window manager, for easy installation from dom0. This idea was discussed on GitHub issue #1756.
- Shell scripts: A user created shell scripts using xdotool and wmctrl to arrange windows without dragging them with the mouse. These scripts can be bound to keyboard shortcuts for tiling window management.
Unfortunately, there is no single command name for tiling windows in Qubes OS, as it does not have a native tiling window manager. Instead, users can explore the above alternatives or create their own custom solutions."
Iâll avoid installing third party software so Iâll pass on this for now. Thank you for your time!
although xfce is not a tiling window manager, I just explained to you how to configure key bindings to tile windows to a corner / side.
I use kde instead of xfce because customizing key bindings in it is easy
FWIW for this topic, KDE window manager has a real tiling mode, but in regular mode there are keybindings for tiling to corner/sides
Are there any risks or downsides to switching to KDE?
Q->Gear->System Settings->Settings Editor
Select xfce4-keyboard-shortcuts in the Channel
Select the xfwm4 Property. You may need to search around in this tree, but you will see the key bindings for:
âtile_down_keyâ
âtile_left_keyâ
âtile_right_keyâ
âtile_up_keyâ
âŚ
and so on.
Itâs less tested on Qubes OS, but it should work. No security risk, mostly stability risks, you could still easily go back to XFCE.
thanks! I didnât have the English words as my system is in French
Thatâs a bit of a loaded question, but for simplicityâs sake, no.
FYI, you can switch between window managers (after activating them) at the login screen. There should be an article on here somewhere on how to install/switch. I donât have a link handy at the moment.
Thank you, I found the âmove_window_left_keyâ and similar values but when I click edit, Iâm only allowed to change the value and not the property which seems to be where the key bindings are specified.
I then went to Keyboard > Application Shortcuts > Add > entered âmove_window_left_keyâ and set it to âRightâ but when I enter the two keys, it says âfailed to launch shortcut. Failed to execute child process âmove_window_left_keyâ (No such file or directory).â Iâve tried replacing the underscores in the command with dashes but that didnât change the outcome.
Youâre right. I apologize! Been awhile since I went down this rabbit hole.
Q->Gear->System Settings->Window Manager
Select âKeyboardâ tab at the top.
Modify to your heartâs content.
If it hasnât been brought to your attention already, there appears to be a known âissueâ or âconflictâ where binding anything to just the Super (Windows) button will supersede any other Super+KEY binding. Unless someone else knows a workaround.
Yes, this is true and also it seems that only one arrow key can be used per shortcut. This is a shame since the combinations (e.g. top-right) would ideally allow for Super + two direction keys. Either way, I ended up removing Super as a shortcut for the app/Q menu since manually resizing tabs takes more time than clicking on the Q menu.
Quick note for anyone looking to follow these steps: Q > Gear > System Settings > Window Manager > Keyboard > select any of the âTile window to the (top/bottom/left/right)â options > Edit > enter your desired shortcut keys.