4K Linux this Sway

2022-02

I was watching a live recon recording by TomNomNom and Nahamsec and heard about his "giant TV" setup and got intrigued. A bit of googling around led me to TomNomNom's tweet talking about his choice of window manager.

On top of my already elevated appitite, my landlord happened to have a 4K Samsung TV laying around and was kind enough to lend it to me.

I chose Sway for my Fedora workstation after grueling comparisons. "Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11". As Sway is just a window manager but not a desktop environment like GNOME (differences between the two), it was the pretty bare and I had to find the missing functionalities that supports Wayland to make it usable.

Missing bits Wayland Solution
f.lux equivalent
wlsunset -l 37 -L -121 -t 2000
Screenshot
alias screenshot='grim -g "$(slurp)"'
Screen recorder
alias screenrecord='wf-recorder -g "$(slurp)" -f recording-$(date +%Y%m%d%H%M).mp4'
Volume control
pactl list short sinks  # get sink number, e.g. 0 here
pactl -- set-sink-volume 0 +10%
pactl -- set-sink-volume 0 -10%
pulseaudio -k  # to restart audio daemon
Wayland enabling Environment variables for Wayland hackers

sway-bar provides more options for customization and Sway comes with a application launcher by pressing Mod + d. The i3 shortcut reference card certainly works here.

When I'm back on my Macbook, I find myself spending more time Cmd+Tabbing between windowes and workspaces, even with "Reduce Moiton" enabled. For me, Sway is a worthwhile productivity booster.