mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-11-13 14:19:09 +01:00
fixed volume not showing correctly on the status bar
This commit is contained in:
1 parent
7cca20647f
commit
04cbf27288
1 file changed
+1
-1
@@ -165,7 +165,7 @@ const getBrightness = async () => {
|
||||
const getVolume = async () => {
|
||||
return Promise.all([
|
||||
execute("pactl get-sink-volume @DEFAULT_SINK@ | grep 'Volume' | cut -d '/' -f 2"),
|
||||
execute("pactl get-sink-mute 0")
|
||||
execute("pactl get-sink-mute @DEFAULT_SINK@")
|
||||
]).then(([volume, muted]) => {
|
||||
return `${muted.includes("no") ? "" : ""} ${volume.trim()}`;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user