Compare commits

..

5 Commits

Author SHA1 Message Date
1fd789e650 dot_config/waybar: use backlight module
This allows some visual representation of the panel brightness now
that I've removed wob for on-screen indication.
2026-01-19 13:31:02 +03:00
4c1186c785 dot_config: remove wob
On my new setup wob is buggy and I have the volume status in waybar
anyway.
2026-01-19 13:14:00 +03:00
c380e3fbf5 dot_config/sway: use wpctl instead of pamixer
This is native to WirePlumber and doesn't require any PulseAudio
tooling.
2026-01-19 13:09:12 +03:00
f9d80c88f8 dot_config/sway: add ICC profiles
Add ICC profiles for Dell 4K monitor and byzas ThinkPad T14s Gen 6.
2026-01-19 09:46:44 +03:00
173490799b dot_config/foot: add byzas 2026-01-14 16:45:59 +03:00
8 changed files with 29 additions and 29 deletions

View File

@@ -15,6 +15,11 @@ font=Cascadia Mono:style=Roman:size=13.5
font-bold=Cascadia Mono:style=SemiBold:size=13.5
font-italic=Cascadia Mono:style=Italic:size=13.5
font-bold-italic=Cascadia Mono:style=Bold Italic:size=13.5
{{- else if eq .chezmoi.hostname "byzas" }}
font=Cascadia Mono:style=Roman:size=13
font-bold=Cascadia Mono:style=SemiBold:size=13
font-italic=Cascadia Mono:style=Italic:size=13
font-bold-italic=Cascadia Mono:style=Bold Italic:size=13
{{- end }}
# Selenized dark

Binary file not shown.

View File

@@ -61,8 +61,13 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
# Wayland overlay bar for sound and brightness level
set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
# See: https://www.rtings.com/monitor/reviews/dell/u3219q
output 'Dell Inc. DELL U3219Q 9RSG413' color_profile icc ~/.config/sway/dell-U3219Q.icm
{{- if eq .chezmoi.hostname "byzas" }}
# See: https://www.notebookcheck.net/Intel-empire-strikes-back-with-21-hrs-of-battery-life-Lenovo-ThinkPad-T14s-Gen-6-laptop-review.1008078.0.html
output eDP-1 color_profile icc ~/.config/sway/B140UAN02_7.icm
{{- end }}
### Idle configuration
#
@@ -256,14 +261,14 @@ bindsym $mod+r mode "resize"
#
# Utilities:
#
# Special keys to adjust volume via PulseAudio
bindsym --locked XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK
bindsym --locked XF86AudioLowerVolume exec pamixer -ud 5 && pamixer --get-volume > $WOBSOCK
bindsym --locked XF86AudioRaiseVolume exec pamixer -ui 5 && pamixer --get-volume > $WOBSOCK
bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
# Special keys to adjust volume via WirePlumber
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
bindsym --locked XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
# Special keys to adjust brightness via brightnessctl
bindsym --locked XF86MonBrightnessUp exec light -S "$(light -G | awk '{ print int(($1 + .72) * 1.4) }')" && light -G | cut -d'.' -f1 > $WOBSOCK
bindsym --locked XF86MonBrightnessDown exec light -S "$(light -G | awk '{ print int($1 / 1.4) }')" && light -G | cut -d'.' -f1 > $WOBSOCK
bindsym --locked XF86MonBrightnessUp exec light -S "$(light -G | awk '{ print int(($1 + .72) * 1.4) }')"
bindsym --locked XF86MonBrightnessDown exec light -S "$(light -G | awk '{ print int($1 / 1.4) }')"

Binary file not shown.

View File

@@ -1,12 +0,0 @@
[Unit]
Description=A lightweight overlay volume/backlight/progress/anything bar for Wayland
Documentation=man:wob(1)
BindsTo=sway-session.target
ConditionEnvironment=WAYLAND_DISPLAY
[Service]
StandardInput=socket
ExecStart=/usr/bin/wob
[Install]
WantedBy=sway-session.target

View File

@@ -1,6 +0,0 @@
[Socket]
ListenFIFO=%t/wob.sock
SocketMode=0600
[Install]
WantedBy=sockets.target

View File

@@ -5,7 +5,7 @@
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"],
"modules-center": ["sway/window"],
"modules-right": ["idle_inhibitor", "wireplumber", "network", "sway/language", "battery", "clock", "tray"],
"modules-right": ["idle_inhibitor", "backlight", "wireplumber", "network", "sway/language", "battery", "clock", "tray"],
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,
@@ -60,6 +60,10 @@
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"backlight": {
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""],
},
"wireplumber": {
"format": "{volume}% {icon}",

View File

@@ -54,7 +54,7 @@ window#waybar.hidden {
background-color: #f275be;
}
#clock, #battery, #network, #wireplumber, #tray, #mode, #language, #idle_inhibitor, #window {
#clock, #battery, #network, #backlight, #wireplumber, #tray, #mode, #language, #idle_inhibitor, #window {
padding: 0 10px;
margin: 0 2px;
color: #adbcbc;
@@ -106,6 +106,10 @@ label:focus {
background-color: #103c48;
}
#backlight {
background-color: #184956;
}
#wireplumber {
background-color: #184956;
}