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
parent e283d15a24
commit 0528f40c60
3 changed files with 2 additions and 11 deletions

View file

@ -151,11 +151,6 @@
margin-top: 30px; margin-top: 30px;
margin-bottom: 20px; margin-bottom: 20px;
.slider {
margin-left: 10px;
margin-right: 10px;
}
.slider-label { .slider-label {
font-size: 30px; font-size: 30px;
min-width: 30px; min-width: 30px;
@ -165,6 +160,7 @@
min-height: 55px; min-height: 55px;
min-width: 400px; min-width: 400px;
margin-left: 18px; margin-left: 18px;
margin-right: 20px;
highlight { highlight {
margin: 0px; margin: 0px;

View file

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

View file

@ -1,8 +1,5 @@
#!/usr/bin/env bash #!/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@" SINK="@DEFAULT_SINK@"
percentage () { percentage () {
@ -54,8 +51,6 @@ get_class () {
} }
get_vol () { get_vol () {
#local percent=$(get_percentage)
#echo $percent | tr -d '%'
echo $(pactl get-sink-volume @DEFAULT_SINK@ | grep Volume | awk '{print $5}' | tr % " ") echo $(pactl get-sink-volume @DEFAULT_SINK@ | grep Volume | awk '{print $5}' | tr % " ")
} }