Files
superior_dotfiles/private_dot_local/bin/executable_wp-vol.sh
Szymon P fdc50d7e66 Update .config/fastfetch/startup.jsonc
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
2025-03-29 10:01:40 +01:00

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}%"