Skip to content

Commit

Permalink
[~] using suggested mute option for amixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pheon-Dev authored Sep 5, 2023
1 parent 42629ad commit 2c4dc18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/pigeon/volume/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ function M.volume_job()
if vim.fn.executable("amixer") == 1 then
cmd_right = "amixer sget Master | grep 'Right:' | awk -F'[][]' '{ print $2 }'"
cmd_left = "amixer sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }'"
mute = "amixer get Master | sed 5q | grep -q '[on]'"
-- mute = "amixer sget Master | grep 'Right:' | awk -F'[][]' '{ print $4 }'"
mute = "amixer sget Master | grep 'Right:' | awk -F'[][]' '{ print $4 }'"
elseif vim.fn.executable("pulsemixer") == 1 then
cmd_right = "pulsemixer --get-volume | awk -F ' ' '{ print $1 }'"
cmd_left = "pulsemixer --get-volume | awk -F ' ' '{ print $2 }'"
Expand Down

0 comments on commit 2c4dc18

Please sign in to comment.