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?

  • rnd@thebrainbin.org
    link
    fedilink
    arrow-up
    4
    ·
    15 hours ago

    The first thing to do when you start using sway is to copy the configuration file, which is normally in /etc/sway/config, into your home directory.

    mkdir ~/.config/sway
    copy /etc/sway/config ~/.config/sway/
    

    It has some basic settings already set, but you’ll probably want to change some of them later.

    The basic keybind for running a terminal emulator, which by default is foot, is Super+Enter (Super is the name for what is otherwise called the Windows key or the Command key, depending on your keyboard).

    Super+D starts the launcher app (wmenu-run by default).

    If you want to change them to something else (i use fuzzel as the launcher), change the variables at the top of the config file and press Super+Shift+C to make sway reload it.

    Super+Shift+E is used to exit the session.


    As for the top bar that says “1”, it displays a list of your workspaces. You can switch between workspaces by pressing Super + the number of that workspace, or move the current window to a new workspace by pressing Super + Shift + number. You can also click on the workspace’s label in the bar to move to it, or use the mouse wheel to go to the next/previous one.

    The timer at the top right is sway’s status bar. By default it shows only the current time, but it’s compatible with the i3bar protocol and can show a variety of statuses. Programs like i3blocks, i3status or swayrbar can be set up to display a variety of data in the status bar, or even to create widgets that respond to clicks.