aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/systemd/user
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:37 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:37 +0100
commit12b08e19cbd65988c51de40ffd06ce01418c2bb6 (patch)
tree250afcc194532c01b66d0bf4594b219da6c4388b /dot_config/systemd/user
parentf726a9afa6ba815ac8b5f4ce94a6295e74ff3980 (diff)
downloaddotfiles-12b08e19cbd65988c51de40ffd06ce01418c2bb6.tar.gz
dotfiles-12b08e19cbd65988c51de40ffd06ce01418c2bb6.tar.bz2
dotfiles-12b08e19cbd65988c51de40ffd06ce01418c2bb6.zip
feat(desktop): xdg-desktop-portal pinning, wob OSD, mako DND toggle
- xdg-desktop-portal: pin wlr for ScreenCast/Screenshot, gtk for the rest, so flatpak browsers (Meet, Slack, Discord) get a working screen-share path instead of whatever the portal frontend happens to pick first. - wob: small wayland overlay bar fed via a fifo. New vol-osd.sh / brightness-osd.sh wrappers replace the bare pactl/brightnessctl invocations in keybinds so adjusting volume or backlight flashes a bar at the bottom of the screen. wob.service owns the fifo lifecycle (mkfifo before, rm after). - mako: add a [mode=do-not-disturb] section that hides notifications while the mode is active, plus a Super+x n submode binding to toggle it. Notifications still accumulate in history; just no popups.
Diffstat (limited to 'dot_config/systemd/user')
-rw-r--r--dot_config/systemd/user/wob.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/dot_config/systemd/user/wob.service b/dot_config/systemd/user/wob.service
new file mode 100644
index 0000000..3a4268f
--- /dev/null
+++ b/dot_config/systemd/user/wob.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Wayland overlay bar (volume / brightness OSD)
+PartOf=graphical-session.target
+After=graphical-session.target
+ConditionEnvironment=WAYLAND_DISPLAY
+
+[Service]
+Type=simple
+ExecStartPre=/usr/bin/sh -c 'rm -f "$XDG_RUNTIME_DIR/wob.sock" && mkfifo "$XDG_RUNTIME_DIR/wob.sock"'
+ExecStart=/usr/bin/sh -c 'exec /usr/bin/wob <"$XDG_RUNTIME_DIR/wob.sock"'
+ExecStopPost=/usr/bin/rm -f %t/wob.sock
+Restart=on-failure
+RestartSec=2s
+
+[Install]
+WantedBy=sway-session.target