Linux - Window Managers
Window managers
One of the big advantagees with using a Windows Manager (WM) instead of a full desktop environment is the lightness of Window Managers.
Categories
Tiling window managers
Why I love them?
- Put the frame (one or two) that you want to work on in one desktop window and you don’t have to look at anything else until you are done with the frames that you are working on. Helps with focus.
Options
i3
Why?
- The simplicity of i3 will procure to your mind the peace it deserves to focus on more important problems.
- i3 will always position windows following a specific layout. No surprise, windows positioning become highly consistent.
Usage Tips:
- Focus on the other window in the current workspace by using
$mod+ARROW
key. - Toggling fullscreen mode for a window:
$mod+f
- Changing the container layout:
- To switch modes, press
$mod+e
for splith/splitv (it toggles),$mod+s
for stacking and$mod+w
for tabbed.
- To switch orientation in
splith/splitv
from vertical to horizontal or horizontal to vertical, use$mod+e
- To switch modes, press
- Hot reload: https://i3wm.org/docs/userguide.html#_reloading_restarting_exiting
- The existing workspaces may not disapper. But trust that it works. When you press
mod + <a-number>
, you will see the new set-up working.
- The existing workspaces may not disapper. But trust that it works. When you press
- Reload shortcuts
$mod+SHIFT+c
- Reload i3’s configuration. You need to use it each time you modify your configuration file, to apply the changes to the current i3 session.$mod+SHIFT+r
- Restart i3 in case of bugs or weird state.$mod+SHIFT+e
- Logout and quit i3. We will modify that later.
Reading notes:
Personal Notes:
- i3 version is great because the tiling window manager experience is very good.
- Very keyboard centric.
- Only one frame per desktop - if you want to switch to a different frame,
Alt + Tab
doesn’t work.- We have to switch Desktop windows.
- This is a pro and a con.
Alt + Tab
somehow feels more natural compared toWindows + <a Desktop number>
. But, this is probably a preference and not a deal breaker.
Openbox
LeftWM
Multi monitor support did not work out of the box. I used a monitor when installing the distribution. I was doing some work on a connected monitor. I disconnected the laptop from the docking station. I no longer had access to the screens that I was working on (the ones that were on the connected monitor).
XMonad
Customization with .xmonad.hs would be easy if we know Haskell. Would help to know a little bit of Haskell.
How to configure xmonad in such a way that when you switch to a workspace, the program associated to that workspace opens up automatically? e.g. When you switch to workspace4, how to open Thunar in that workspace automatically?
Pros:
- Tiling window manager
- Lightweight and simple to use
- Uses Haskell
Cons:
- Setting up and working with toolbar can be a pain
- The fight with .xmonad config and .xmobar config didn’t seem to be worth it. The return on investment, when it comes to time, is minimal. I wasted a lot of time with it.
Second monitor not detected after login or extending monitors is not working
Switch to X11. Nvidia and Wayland do not always play nicely with each other. This can be done at the login screen. Did you check to see if it shows up as “enabled” in “System Settings/Display & Monitor” after login? If not, set it to enable. I noticed recent Neon updates seemed to disable one of my displays, and I needed to re-enable it there.