1
0
Fork 0

feat: migrate to i3blocks and autotiling-rs

This commit is contained in:
Oliver Ladner 2026-03-01 14:11:51 +01:00
commit 487870a473
14 changed files with 512 additions and 7 deletions

View file

@ -0,0 +1,70 @@
# Global stuff
separator=true
separator_block_width=8
[fortune]
markup=pango
command=~/bin/i3blocks/fortune
interval=300
[time]
markup=pango
color=#b1e5c8
background=#2E8B57
command=echo " <b>$(date +'%A, %d %B %R %Z')</b> "
interval=10
[wifi]
markup=pango
command=~/bin/i3blocks/wifi
interval=20
[cputemp]
markup=pango
command=~/bin/i3blocks/cputemp
interval=20
# CPU load
[cpu]
markup=pango
command=~/bin/i3blocks/cpu
interval=3
[mem]
markup=pango
command=~/bin/i3blocks/mem
interval=30
[audio]
markup=pango
command=~/bin/i3blocks/audio
interval=once
signal=1
[mic_mute]
markup=pango
command=~/bin/i3blocks/mic_mute
interval=once
signal=2
# Indoor temperature and humidity
[homeassistant-slow]
markup=pango
command=~/bin/i3blocks/homeassistant-slow
interval=60
# Power draw
[homeassistant-fast]
markup=pango
command=~/bin/i3blocks/homeassistant-fast
interval=10
[archupdate]
markup=pango
command=~/bin/i3blocks/archupdates
interval=28800 # 4h
[weather]
markup=pango
command=~/bin/i3blocks/weather
interval=900

View file

@ -44,7 +44,7 @@ output * bg ~/data/local/wallpaper/anders-jilden-AkUR27wtaxs-unsplash.jpg fill
# You can get the names of your outputs by running: swaymsg -t get_outputs
# BSP-style window tiling
exec_always autotiling
exec_always autotiling-rs
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
@ -197,11 +197,12 @@ bindsym ctrl+alt+shift+r mode "RESIZE"
# Volume control with PipeWire
# https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon-keysyms.h
# Get the device ID with `wpctl status` or use @DEFAULT_AUDIO_SINK@
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
# bindsym --release XF86AudioMute exec pkill -USR1 swaybar
# The signal is mapped to a i3block configuration
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && pkill -SIGRTMIN+1 i3blocks
# `-l` sets max volume level
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02- -l 1.0
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02+ -l 1.0
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02- -l 1.0 && pkill -SIGRTMIN+1 i3blocks
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02+ -l 1.0 && pkill -SIGRTMIN+1 i3blocks
# FIXME: https://wiki.archlinux.org/title/MPRIS
# bindsym --locked XF86AudioPause exec wpctl set-mute 48 toggle
@ -212,8 +213,10 @@ bindsym Mod4+Shift+Space exec grimshot --notify save window
# man 5 sway-bar
bar {
position bottom
font "BerkeleyMono Nerd Font Mono Normal Bold 11"
status_command ~/.config/sway/status.sh
# font "BerkeleyMono Nerd Font Mono Normal Bold 10"
font "BerkeleyMono Nerd Font Mono Normal Regular 11"
# status_command ~/.config/sway/status.sh
status_command i3blocks
strip_workspace_name no
strip_workspace_numbers no
colors {