diff options
| author | ryukamish <[email protected]> | 2026-06-06 01:44:49 +0530 |
|---|---|---|
| committer | ryukamish <[email protected]> | 2026-06-06 01:44:49 +0530 |
| commit | 51183654e84b12d38cf72d8581f950269d6b47c1 (patch) | |
| tree | bb327aff9bc87c692d401f392ce375c52133e965 /usr/local/bin/volume-control | |
| parent | b91a830fe91c2819cb0ca9b91dcfdcb02b2a2ead (diff) | |
fix: directory and symlink path change
Diffstat (limited to 'usr/local/bin/volume-control')
| -rwxr-xr-x | usr/local/bin/volume-control | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/usr/local/bin/volume-control b/usr/local/bin/volume-control deleted file mode 100755 index f47bfd1..0000000 --- a/usr/local/bin/volume-control +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -# Taken from: https://github.com/salanpro/hyprland/tree/047f998e710b0ffe8d841a89fb7749b50c931b2c/.config/hypr/scripts - -# Volume up and down -if [[ "$1" == "up" ]]; then - wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ \ - && wpctl get-volume @DEFAULT_AUDIO_SINK@ | \ - awk '{print int($2*100)}' | xargs -I[] \ - notify-send -e -u low -h string:x-canonical-private-synchronous:volume_notif -h \ - int:value:[] " Volume []" -elif [[ "$1" == "down" ]]; then - wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%- \ - && wpctl get-volume @DEFAULT_AUDIO_SINK@ | \ - awk '{print int($2*100)}' | xargs -I[] \ - notify-send -e -u low -h string:x-canonical-private-synchronous:volume_notif -h \ - int:value:[] " Volume []" -elif [[ "$1" == "mute" ]]; then - wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle \ - && (wpctl get-volume @DEFAULT_AUDIO_SINK@ \ - | grep -q MUTED && \ - notify-send -e -u low -h \ - string:x-canonical-private-synchronous:volume_notif \ - " Muted" || wpctl get-volume @DEFAULT_AUDIO_SINK@ | \ - awk '{print int($2*100)}' | xargs -I[] \ - notify-send -e -u low -h string:x-canonical-private-synchronous:volume_notif -h \ - int:value:[] " Volume []") -fi |
