Fix volume interval waybar
This commit is contained in:
parent
54c3e35c55
commit
d331ae4e92
@ -156,7 +156,11 @@ in
|
||||
}
|
||||
'';
|
||||
settings = [
|
||||
({
|
||||
(
|
||||
let
|
||||
volInterval = if (osConfig.system.name == "gunter") then "5" else "1";
|
||||
in
|
||||
{
|
||||
"layer" = "top";
|
||||
"position" = "top";
|
||||
modules-left = [ "custom/flakestat" ];
|
||||
@ -183,6 +187,8 @@ in
|
||||
"format" = "{icon} {volume}%";
|
||||
"format-muted" = "";
|
||||
"format-icons" = { "default" = [ "" "" "" ]; };
|
||||
"on-scroll-up" = "pamixer -i ${volInterval}";
|
||||
"on-scroll-down" = "pamixer -d ${volInterval}";
|
||||
"on-click" = "pamixer -t";
|
||||
};
|
||||
"pulseaudio#microphone" = {
|
||||
@ -190,8 +196,8 @@ in
|
||||
"format-source" = " {volume}%";
|
||||
"format-source-muted" = "";
|
||||
"on-click" = "pamixer --default-source -t";
|
||||
"on-scroll-up" = "pamixer --default-source -i 5";
|
||||
"on-scroll-down" = "pamixer --default-source -d 5";
|
||||
"on-scroll-up" = "pamixer --default-source -i ${volInterval}";
|
||||
"on-scroll-down" = "pamixer --default-source -d ${volInterval}";
|
||||
"scroll-step" = 5;
|
||||
"on-click-right" = "pavucontrol";
|
||||
};
|
||||
@ -240,7 +246,8 @@ in
|
||||
"return-type" = "json";
|
||||
"interval" = 600;
|
||||
};
|
||||
})
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user