Files
dotfiles/eww/.config/eww/scripts/signal-toggle
2026-06-19 10:43:05 +02:00

8 lines
315 B
Bash
Executable File

#!/bin/bash
# Toggle Signal scratchpad window.
# Falls back to regular focus if window was moved out of scratchpad,
# then to launching Signal if it's not running at all.
swaymsg '[app_id="signal"] scratchpad show' 2>/dev/null || \
swaymsg '[app_id="signal"] focus' 2>/dev/null || \
flatpak run org.signal.Signal &