feat(eww): fix sliders being hard to move when at 100%

This commit is contained in:
matt1432 2023-08-20 11:37:56 -04:00
commit 0528f40c60
3 changed files with 2 additions and 11 deletions
config/eww/scripts

View file

@ -9,7 +9,7 @@ state () {
}
icon () {
local COUNT=$(swaync-client -c)
COUNT=$(swaync-client -c)
if [[ $(swaync-client -D) == "true" ]]; then
echo " 󱏨"

View file

@ -1,8 +1,5 @@
#!/usr/bin/env bash
# @requires: pactl
#SINK=$(pactl list short sinks | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,' | head -n 1)
SINK="@DEFAULT_SINK@"
percentage () {
@ -54,8 +51,6 @@ get_class () {
}
get_vol () {
#local percent=$(get_percentage)
#echo $percent | tr -d '%'
echo $(pactl get-sink-volume @DEFAULT_SINK@ | grep Volume | awk '{print $5}' | tr % " ")
}