I’ve been suggested to use a tiling window manager like Sway since it allows for controlling windows with hotkeys, but I’m having trouble getting started. I installed it in Fedora and tried logging back in with SwayFX (since it has features like blurring) but after I’m just shown a wallpaper with a top bar, the top left shows a 1
and the top right shows the time. I don’t know what to do there. I tried looking up guides but didn’t find anything, can you link me some if you know of any?
If you are the person asking the floating window question from the other day as JustAnotherKay spotted, then this is how I set a window to floating in my config;
for_window [title="www.youtube.com" app_id="firefox"] floating enable, resize set 1280 720 , opacity 1
What this is doing is selecting any firefox app that has www.youtube.com anywhere in the title and make that floating, with a set size, and remove any opacity (transparency) that might be applied to the window.
You can add move absolute position 0 0 on the end if you want to set the absolute location for the window.
You can force a window to a particular workspace by:
assign [class="discord"] workspace number $ws2
and that workspace to a particular monitor with:
workspace $ws2 output DP-1
If I wanted to do this for all firefox windows I would just remove the title= part from the selection.
How do you get the titles and other components? Using swaymsg as follows:
swaymsg -t get_tree
this will output all your open windows per monitor, for each app you want to manage you are looking for something like:
#15: con "#tech-talk🖥 | 40% Keyboards - Discord" (xdg_shell, pid: 6260, app_id: "discord")
from here you its simple to pick up what you can use for a unique select, so app_id:=“discord” in this case.
If you reload your config file, then reopen the app, it should reflect the changes you made to the config file. Logging on and off in the worst case will restart it.