- 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>
12 lines
444 B
Bash
Executable File
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"
|