Skip to content

Commit 2c4dc18

Browse files
authored
[~] using suggested mute option for amixer
1 parent 42629ad commit 2c4dc18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/pigeon/volume/init.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ function M.volume_job()
77
if vim.fn.executable("amixer") == 1 then
88
cmd_right = "amixer sget Master | grep 'Right:' | awk -F'[][]' '{ print $2 }'"
99
cmd_left = "amixer sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }'"
10-
mute = "amixer get Master | sed 5q | grep -q '[on]'"
11-
-- mute = "amixer sget Master | grep 'Right:' | awk -F'[][]' '{ print $4 }'"
10+
mute = "amixer sget Master | grep 'Right:' | awk -F'[][]' '{ print $4 }'"
1211
elseif vim.fn.executable("pulsemixer") == 1 then
1312
cmd_right = "pulsemixer --get-volume | awk -F ' ' '{ print $1 }'"
1413
cmd_left = "pulsemixer --get-volume | awk -F ' ' '{ print $2 }'"

0 commit comments

Comments
 (0)