mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
fixed volume not showing correctly on the status bar
This commit is contained in:
@@ -165,7 +165,7 @@ const getBrightness = async () => {
|
|||||||
const getVolume = async () => {
|
const getVolume = async () => {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
execute("pactl get-sink-volume @DEFAULT_SINK@ | grep 'Volume' | cut -d '/' -f 2"),
|
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]) => {
|
]).then(([volume, muted]) => {
|
||||||
return `${muted.includes("no") ? "" : ""} ${volume.trim()}`;
|
return `${muted.includes("no") ? "" : ""} ${volume.trim()}`;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user