summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Silva <nuno.m.ribeiro.silva@tecnico.ulisboa.pt>2021-04-15 21:57:28 +0100
committerNuno Silva <nuno.m.ribeiro.silva@tecnico.ulisboa.pt>2021-04-15 21:57:28 +0100
commit4cbacd910b2621139cfd1fb6d61cc764e5eb9fd3 (patch)
tree34a38f331d4ce060e80c82c2f26f9483dd4c930c
parent7ea3eec17924a814ec3109958ba9d2db50e87ffd (diff)
brightness-widget: remove sh wrapper
not needed
-rw-r--r--brightness-widget/brightness.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/brightness-widget/brightness.lua b/brightness-widget/brightness.lua
index 2afb38a..fed6a91 100644
--- a/brightness-widget/brightness.lua
+++ b/brightness-widget/brightness.lua
@@ -40,9 +40,9 @@ local function worker(user_args)
local program = args.program or 'light'
local step = args.step or 5
if program == 'light' then
- get_brightness_cmd = 'sh -c "light -G"'
- inc_brightness_cmd = 'sh -c "light -A ' .. step .. '"'
- dec_brightness_cmd = 'sh -c "light -U ' .. step .. '"'
+ get_brightness_cmd = 'light -G'
+ inc_brightness_cmd = 'light -A ' .. step
+ dec_brightness_cmd = 'light -U ' .. step
elseif program == 'xbacklight' then
get_brightness_cmd = 'xbacklight -get'
inc_brightness_cmd = 'xbacklight -inc ' .. step