Sway on Trixie
9. 10. 2025Install β
apt install sway
brings bunch of goodies with it (including foot terminal).
Keyboard β
Change keyboard layout:
sway input type:keyboard xkb_layout <country code>
or in sway config, this seems to work:
#keyboard
input "1:1:AT_Translated_Set_2_keyboard" {
xkb_layout <country code>
}
Copy foot and sway configs to your home dir.
Change default monospaces font for a user β
mkdir -p .config/fontconfig
cd .config/fontconfig
vim fonts.conf
put
<match target="pattern">
<test name="family" qual="any">
<string>monospace</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>EnvyCodeR Nerd Font Mono</string>
</edit>
</match>
foot theme β
sudo apt install foot-themes
# they will appear in /usr/share/foot/themes
in .config/foot/foot.ini
include=/usr/share/foot/themes/catppuccin-frappe
Built-in bar status_command β
A bash script in $HOME/bin/swayStatusCommand
#!/bin/bash
main () {
awk '/MemTotal/ {t=$2} /MemAvailable/ {a=$2} END {printf("%.1f", a/t*100)}' /proc/meminfo
echo -n "% memory free | "
date +'%Y-%m-%d %H:%M'
}
print="$(main)"
echo "$print"
and in sway config under βbarβ
status_command while $HOME/bin/swayStatusCommand; do sleep 3; done
will display free mem in percents before the clock.
Foot having dynamic titles β
In .zshrc add
# term info for foot?
# Called when executing a command
function preexec {
print -Pn "\e]0;${(q)1}\e\\"
}
Or easier/better looking, just disable titlebars in sway config
# border
default_border pixel 6
default_floating_border pixel 6
#for_window [app_id="foot"] border pixel 4
# hide split indicator borders when only one window?
hide_edge_borders smart
Resizing with mice will be easier on fatter borders btw.
gtk stuff β
Use gnome-tweaks to change font(cuprum) or nwg-look to change theme.
wmenu-run β
In sway config replace
set $menu wmenu-run
with
set $menu wmenu-run -b -l 5 -f "monospace 14"
to have wmenu show at the bottom of the screen and in vertical fashion. Change some shortkeys in sway config
# Swap focus between the tiling area and the floating area
# was $mod+spaces
bindsym $mod+t focus mode_toggle
# Start your launcher
bindsym $mod+d exec $menu
bindsym $mod+space exec $menu
wallpaper and making sway bar transparent (why not) β
output * bg /home/b/wallpapers/bunsenDark2.png fill
# and in bar colors section
background #30344600
tools β
grim takes screenshots
viewnior shows pictures
nmcli manage connection
nmcli notes β
Scan for networks:
nmcli device wifi rescan
List available networks:
nmcli device wifi list
Connect to a network (prompt for password):
sudo nmcli device wifi connect 'WIFI_SSID' --ask
catppuccin theme for geany β
https://github.com/catppuccin/geany
other ppl configs (examples) β
https://gist.github.com/rmrt1n/10c24dc597f5b31f432694fb95329bff
https://github.com/rbnis/legacy-dotfiles/blob/master/.config/sway/config
https://www.youtube.com/watch?v=sKOWqAm70jc (just a guy linux)
clipboard (clipman?) β
to be continued β¦