Skip to content

Latest commit

 

History

History
94 lines (89 loc) · 7.97 KB

File metadata and controls

94 lines (89 loc) · 7.97 KB

role-sway-bootstrap

About

This role will setup sway and everything needed for a good user experience (IMHO). Current supported themes are:

  • Win95
  • Gruvbox

Note: I don't use the default keybindings for Sway, check out the reference card to see what keybindings I use. Also the default layout is tabbed mode in my config. I don't see the need for opening a window and not use all the space I can right away.

Quick start

Make sure you have clean install of Debian or Arch. If you have a physical PC I would recommend Debian netinst for a minimal Debian install or just install ArchLinux. For a VM I would recommend a cloud image. Here are some links:

When you have a clean install you can go ahead and run the playbook.

If your install user has sudo access with nopasswd set:

ansible-playbook -i localhost --user <your user here> play-sway-bootstrap.yml

Otherwise install sshpass and run the playbook this way: (this doesn't currently work on Arch see todo)

ansible-playbook -i localhost --user <your user here> --ask-pass play-sway-bootstrap.yml

The install will prompt you for the following things:

Enter the IP address or resolvable DNS name for the machine you want to setup sway on:  
Choose system type (desktop/virtual_machine/laptop):  
Choose theme (win95/gruvbox):  
Choose keyboard layout, this is usually a two letter country code (see https://wiki.archlinux.org/title/Linux_console/Keyboard_configuration):  

After the playbook has finished all you need to do is restart your machine and you should be greeted by the empttty login.

Screenshots

Win95

Sway desktop with Win95 theme, grub menu Sway desktop with Win95 theme, plymouth splash Sway desktop with Win95 theme, login screen Sway desktop with Win95 theme, two applications running Sway desktop with Win95 theme, logout menu

Gruvbox

Sway desktop with Gruvbox theme, grub menu Sway desktop with Gruvbox theme, plymouth splash Sway desktop with Gruvbox theme, login screen Sway desktop with Gruvbox theme, two applications running Sway desktop with Gruvbox theme, logout menu

Components used

+ many more.

Themes & images

Win95

Gruvbox

Broken things / Todo

Application Issue Workaround
yay (arch) Cannot run yay without NOPASSWD sudo option Use NOPASSWD sudo option
QT6 (arch) Some applications use QT6 now so need to add qt6ct for theming those Install and configure qt6ct yourself
N/A Virtual machine option doesn't install guest tools for other than KVM hypervisor