aboutsummaryrefslogtreecommitdiff
path: root/widgets/volume.lua
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/volume.lua')
-rw-r--r--widgets/volume.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/volume.lua b/widgets/volume.lua
index 2a7d377..57970a3 100644
--- a/widgets/volume.lua
+++ b/widgets/volume.lua
@@ -8,6 +8,7 @@ local tonumber = tonumber
local io = { popen = io.popen }
local setmetatable = setmetatable
local string = { match = string.match }
+local helpers = require("vicious.helpers")
-- }}}
@@ -26,7 +27,7 @@ local function worker(format, warg)
}
-- Get mixer control contents
- local f = io.popen("amixer -M get " .. warg)
+ local f = io.popen("amixer -M get " .. helpers.shellquote(warg))
local mixer = f:read("*all")
f:close()