Initialize repository, adding makefile, packages list, config and colorscheme for vim, config for sway and wofi, scripts for automatic loading of sway via systemd.

This commit is contained in:
Ananke 2024-04-25 20:22:58 +02:00
commit 57bdfa3aff
15 changed files with 765 additions and 0 deletions

32
swayaudio.sh Normal file
View file

@ -0,0 +1,32 @@
#!/bin/bash
current_volume=$(/usr/bin/wpctl get-volume @DEFAULT_AUDIO_SINK@)
volume="$(echo $current_volume | cut -f 2 -d " " | sed 's/\.//g')"
if [[ $current_volume == *"MUTED"* ]]; then
echo " ---"
fi
if [ "$volume" -lt "100" ]; then
volume="${volume:1}"
fi
if [ "$volume" -lt "10" ]; then
volume="${volume:1}"
fi
if [ "$volume" -gt "99" ]; then
echo "$volume%"
elif [ "$volume" -gt "65" ]; then
echo "$volume%"
elif [ "$volume" -gt "30" ]; then
echo "$volume%"
elif [ "$volume" -gt "10" ]; then
echo "$volume%"
elif [ "$volume" -gt "0" ]; then
echo "$volume%"
elif [ "$volume" -lt "1" ]; then
echo " ---"
fi