feat: Add a ton of hyprland config
This commit is contained in:
9
.config/hypr/scripts/get-volume.sh
Executable file
9
.config/hypr/scripts/get-volume.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# Check if muted
|
||||
if wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -q "[MUTED]"; then
|
||||
# If muted, show notification
|
||||
echo ""
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print $2 * 100}' | sed 's/\.0*$//g')% "
|
||||
Reference in New Issue
Block a user