Skip to content

Commit

Permalink
Merge pull request #397 from maciejjan/pactl-widget-nonenglish-locale
Browse files Browse the repository at this point in the history
Make the pactl-widget work with non-English locale
  • Loading branch information
streetturtle committed Nov 19, 2023
2 parents c0abbbf + 01daaf8 commit 14d74c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pactl-widget/pactl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function pactl.get_volume(device)
end

function pactl.get_mute(device)
local stdout = utils.popen_and_return('pactl get-sink-mute ' .. device)
local stdout = utils.popen_and_return('LC_ALL=C pactl get-sink-mute ' .. device)
if string.find(stdout, "yes") then
return true
else
Expand All @@ -57,7 +57,7 @@ function pactl.get_sinks_and_sources()
local value
local in_section

for line in utils.popen_and_return('pactl list'):gmatch('[^\r\n]*') do
for line in utils.popen_and_return('LC_ALL=C pactl list'):gmatch('[^\r\n]*') do

if string.match(line, '^%a+ #') then
in_section = nil
Expand Down

0 comments on commit 14d74c5

Please sign in to comment.