From 12b08e19cbd65988c51de40ffd06ce01418c2bb6 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:37 +0100 Subject: 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. --- dot_config/sway/executable_brightness-osd.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dot_config/sway/executable_brightness-osd.sh (limited to 'dot_config/sway/executable_brightness-osd.sh') diff --git a/dot_config/sway/executable_brightness-osd.sh b/dot_config/sway/executable_brightness-osd.sh new file mode 100644 index 0000000..74d6baa --- /dev/null +++ b/dot_config/sway/executable_brightness-osd.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# Print brightness percent to wob's fifo to flash a brightness bar. +# Usage: brightness-osd.sh up|down +set -eu + +fifo=${XDG_RUNTIME_DIR:-/tmp}/wob.sock + +case "${1:-}" in + up) brightnessctl set +5% >/dev/null ;; + down) brightnessctl set 5%- >/dev/null ;; + *) echo "usage: $0 up|down" >&2; exit 2 ;; +esac + +cur=$(brightnessctl g) +max=$(brightnessctl m) +printf '%d\n' "$(( cur * 100 / max ))" >"$fifo" -- cgit v1.3.1