mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 20:20:38 +02:00
Update .config/hypr/hyprland.conf Update .config/hypr/hyprland/animations.conf Update .config/hypr/hyprland/binds/audio.conf Update .config/hypr/hyprland/binds/clipboard.conf Update .config/hypr/hyprland/exec.conf Update .config/hypr/hyprland/general.conf Update .config/hypr/hyprland/rules/pavucontrol.conf Update .config/hypr/hyprland/rules/vesktop.conf Update .config/mako/config Update .config/waybar/colors.css Update .config/waybar/config.jsonc Update .config/waybar/style.css Update .config/wofi/colors Update .config/wofi/style.css Update .local/bin/change_colors.sh Update .local/bin/system_setup.sh Update .local/bin/wp-vol.sh
9 lines
272 B
Bash
9 lines
272 B
Bash
#!/bin/bash
|
|
|
|
# Get the volume level and convert it to a percentage
|
|
volume=$(wpctl get-volume @DEFAULT_SINK@)
|
|
volume=$(echo "$volume" | awk '{print $2}')
|
|
volume=$(echo "( $volume * 100 ) / 1" | bc)
|
|
|
|
notify-send -t 1000 -a 'wp-vol' -h int:value:$volume "Volume: ${volume}%"
|