sway/waybar: fix muted glyph, dedupe bar on reload, relocate clock, match lock wallpaper

- Switch muted glyph from U+F6A9 to U+F026 (volume-off), which is
  present in every Nerd Font variant including LiterationMono.
- Use exec for waybar instead of exec_always, so reloading sway no
  longer spawns a second bar.
- Move the clock to the right of the tray and drop the leading
  calendar glyph from its format.
- Lock screen now uses maxresdefault.jpg, matching the i3 lockscreen;
  the asset is copied into sway/wallpapers/ so the sway profile stays
  self-contained.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Fabio Scotto di Santolo
2026-05-16 22:21:36 +02:00
parent 85bf7cfd03
commit 2065164459
4 changed files with 6 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ exec pipewire-pulse
exec wireplumber exec wireplumber
# Status bar # Status bar
exec_always waybar exec waybar
# OSD daemon (volume/brightness/caps-lock) # OSD daemon (volume/brightness/caps-lock)
exec swayosd-server exec swayosd-server

View File

@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
exec swaylock \ exec swaylock \
--image "$HOME/.config/sway/wallpapers/wallpaper-161664.jpg" \ --image "$HOME/.config/sway/wallpapers/maxresdefault.jpg" \
--scaling fill \ --scaling fill \
--indicator-idle-visible \ --indicator-idle-visible \
--ring-color 2f4058 \ --ring-color 2f4058 \

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

View File

@@ -5,8 +5,8 @@
"spacing": 4, "spacing": 4,
"modules-left": ["sway/workspaces"], "modules-left": ["sway/workspaces"],
"modules-center": ["clock"], "modules-center": [],
"modules-right": ["cpu", "memory", "disk", "temperature", "backlight", "network", "pulseaudio", "battery", "tray"], "modules-right": ["cpu", "memory", "disk", "temperature", "backlight", "network", "pulseaudio", "battery", "tray", "clock"],
"sway/workspaces": { "sway/workspaces": {
"disable-scroll": true, "disable-scroll": true,
@@ -31,7 +31,7 @@
"clock": { "clock": {
"interval": 60, "interval": 60,
"format": "{:%Y-%m-%d %H:%M}", "format": "{:%Y-%m-%d %H:%M}",
"tooltip-format": "<tt>{calendar}</tt>" "tooltip-format": "<tt>{calendar}</tt>"
}, },
@@ -74,7 +74,7 @@
"pulseaudio": { "pulseaudio": {
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
"format-muted": " muted", "format-muted": " muted",
"format-bluetooth": "{icon} {volume}% ", "format-bluetooth": "{icon} {volume}% ",
"format-icons": { "default": ["", "", ""] }, "format-icons": { "default": ["", "", ""] },
"on-click": "swayosd-client --output-volume mute-toggle", "on-click": "swayosd-client --output-volume mute-toggle",