Sway on Trixie

Install ↓

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.

Sway wiki.

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

So far
image

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.

image

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.

image

gtk stuff ↓

Use gnome-tweaks to change font(cuprum) or nwg-look to change theme.

image image

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

image

wallpaper and making sway bar transparent (why not) ↓

output * bg /home/b/wallpapers/bunsenDark2.png fill
# and in bar colors section
background #30344600

image

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

image

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 …