From 4cbacd910b2621139cfd1fb6d61cc764e5eb9fd3 Mon Sep 17 00:00:00 2001 From: Nuno Silva Date: Thu, 15 Apr 2021 21:57:28 +0100 Subject: brightness-widget: remove sh wrapper not needed --- brightness-widget/brightness.lua | 6 +++--- 1 file 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 -- cgit v1.2.3