This repository has been archived on 2024-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-dotfiles/user/configs/wayland/hyprland/eww/config/scripts/get_volume.sh

17 lines
340 B
Bash
Raw Normal View History

2023-12-29 23:19:10 +00:00
#!/usr/bin/env cached-nix-shell
#!nix-shell -i bash -p pamixer
volume=$(pamixer --get-volume)
if [[ $volume -eq 0 ]]; then
echo "$volume%"
elif [[ $volume -lt 25 ]]; then
echo "$volume%"
elif [[ $volume -lt 50 ]]; then
echo "$volume%"
elif [[ $volume -lt 75 ]]; then
echo "󰕾 $volume%"
else
echo "$volume%"
fi