feat: use eww as bar!

This commit is contained in:
João Dias
2024-11-23 10:10:28 -03:00
parent 1f08358b10
commit fb7b91699e
18 changed files with 349 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Note: $SCROLL is defined by eww
$DEFAULT_INCREASE='5'
Guess_increase_decrease() {
local $CURRENT_VOL=$(wpctl get-volume "@DEFAULT_AUDIO_SINK@")
}
Update_volume() {
local $UPDATED_VOL=$(Guess_increase_decrease)
wpctl set-volume "@DEFAULT_AUDIO_SINK@" "$UPDATED_VOL"
}
Translate_volume_to_int() {
echo $(wpctl get-volume "@DEFAULT_AUDIO_SINK@" | sed -e "s/^Volume: //" -e "s/^1.//1")
}