dotfiles/.local/bin/wp-vol
Martin Büchler 1e02be0a39 refactor: symlinks script now only links files (not directories), traverses recursively, and ensures target dirs are not symlinks; remove custom wlogout config and device-specific repo symlinks for maintainability
- Only files are symlinked, not directories
- Symlinks are created in target config dirs, not inside repo
- Target dirs are checked and cleaned if symlinks
- Removes wlogout config and device-specific repo symlinks
- Updates .zshrc and wp-vol for robustness

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>
2025-08-08 17:06:36 +02:00

12 lines
444 B
Bash
Executable File

#!/bin/bash
# Show current volume in a Mako notification using wpctl
# Get current volume as a percentage
VOLUME=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{printf "%d", $2 * 100}')
# Get mute status
MUTED=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -q MUTED && echo " (muted)" || echo "")
# Show notification
notify-send -a Volume -h string:x-canonical-private-synchronous:volume -h int:value:$VOLUME -u low "Volume: $VOLUME%$MUTED"