Configure Sway

Procedure 6.1. Install system files
  1. sudo apt install -y ayatana-desktop-indicator fonts-font-awesome foot foot-terminfo grim libappindicator-1 slurp sway sway-backgrounds swaybg udiskie waybar wlr-randr wofi xdg-desktop-portal-wlr

  2. Configure sway

    Copy the files. cp -r ~/Dropbox/Basic/new_machine/linux/config/sway ~/.config/ cp -r ~/Dropbox/Basic/new_machine/linux/config/waybar ~/.config/ cp -r ~/Dropbox/Basic/new_machine/linux/config/foot ~/.config/

    Note

    The config requires foot > 1.21, possibly as high as 1.25, so either compile or cherry-pick or wait for Ubuntu 26.04.

  3. Install foot terminfo

    Any remote computer will need the foot terminfo installed for the terminal to work properly. sudo apt install foot-terminfo

  4. Automatic Theming

    Install Darkman from source: git clone https://gitlab.com/WhyNotHugo/darkman.git cd darkman make sudo make install PREFIX=/usr

  5. Change to TUI display manager lemurs

    TESTING lemurs:


    apt install cargo build-essential libpam-dev
    git clone https://github.com/coastalwhite/lemurs.git
    cd lemurs
    ./install.sh
    sudo emacs /etc/lemurs/wayland/sway
    [paste in]:
      #! /bin/sh
    exec sway
      

    No support for displaying password

  6. Or change to TUI display manager greetd

    greetd is an alternative to lemurs. Install via instructions. Then disable sddm (this will log out the current session): sudo systemctl disable --now sddm

  7. Or set automatic login

    Automated login with getty included in systemd.

    Warning

    Use only with encrypted hard drive.

    sudo systemctl edit getty@tty1 This should create /etc/systemd/system/getty@tty1.service.d/override.conf. Overwrite it with cp ~/Dropbox/Basic/new_machine/linux/sway/getty_override.conf /etc/systemd/system/getty@tty1.service.d/override.conf

    Note

    override.conf

    [Service]
    ExecStart=
    ExecStart=-/usr/sbin/agetty --autologin s --noclear %I $TERM
    

  8. Encrypted Hibernation

    TODO: get it working.

  9. Troubleshooting

    To troubleshoot screen sharing, see xdg-desktop-portal-wlr FAQ

    To test desktop notifications, use notify-send "foo" at the command line.

    Change GUI font size (for GTK programs): gsettings set org.gnome.desktop.interface font-name 'Noto Sans, 14' Dunno yet if this is permanent. You can also use GTK font manager: sudo apt install font-manager