From f6d62552de0966f2a806d48721eabf170eca2bad Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Sat, 4 Feb 2023 08:51:54 -0500 Subject: refactor: updated to use more verbose and correct xset commands --- .config/awesome/rc.lua | 50 +++++++++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 21 deletions(-) (limited to '.config/awesome') diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index a9c8a4b..9509cd5 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -62,31 +62,39 @@ awful.layout.layouts = { -- {{{ Menu -- Create a launcher widget and a main menu s_menu = { - { "off", function() awful.spawn.easy_async_with_shell("xset s off") end }, - { "10 # 10s", function() awful.spawn.easy_async_with_shell("xset s 10") end }, - { "30 # 30s", function() awful.spawn.easy_async_with_shell("xset s 30") end }, - { "60 # 1m", function() awful.spawn.easy_async_with_shell("xset s 60") end }, - { "180 # 3m", function() awful.spawn.easy_async_with_shell("xset s 180") end }, - { "300 # 5m", function() awful.spawn.easy_async_with_shell("xset s 300") end }, - { "600 # 10m", function() awful.spawn.easy_async_with_shell("xset s 600") end }, - { "900 # 15m", function() awful.spawn.easy_async_with_shell("xset s 900") end }, - { "1800 # 30m", function() awful.spawn.easy_async_with_shell("xset s 1800") end }, - { "2700 # 45m", function() awful.spawn.easy_async_with_shell("xset s 2700") end }, - { "3600 # 1h", function() awful.spawn.easy_async_with_shell("xset s 3600") end }, - { "7200 # 2h", function() awful.spawn.easy_async_with_shell("xset s 7200") end }, - { "10800 # 3h", function() awful.spawn.easy_async_with_shell("xset s 10800") end }, - { "14400 # 4h", function() awful.spawn.easy_async_with_shell("xset s 14400") end }, - { "21600 # 6h", function() awful.spawn.easy_async_with_shell("xset s 21600") end }, + { "off", function() awful.spawn.easy_async_with_shell("xset s off off") end }, + { "10 # 10s", function() awful.spawn.easy_async_with_shell("xset s 10 0") end }, + { "30 # 30s", function() awful.spawn.easy_async_with_shell("xset s 30 0") end }, + { "60 # 1m", function() awful.spawn.easy_async_with_shell("xset s 60 0") end }, + { "180 # 3m", function() awful.spawn.easy_async_with_shell("xset s 180 0") end }, + { "300 # 5m", function() awful.spawn.easy_async_with_shell("xset s 300 0") end }, + { "600 # 10m", function() awful.spawn.easy_async_with_shell("xset s 600 0") end }, + { "900 # 15m", function() awful.spawn.easy_async_with_shell("xset s 900 0") end }, + { "1800 # 30m", function() awful.spawn.easy_async_with_shell("xset s 1800 0") end }, + { "2700 # 45m", function() awful.spawn.easy_async_with_shell("xset s 2700 0") end }, + { "3600 # 1h", function() awful.spawn.easy_async_with_shell("xset s 3600 0") end }, + { "7200 # 2h", function() awful.spawn.easy_async_with_shell("xset s 7200 0") end }, + { "10800 # 3h", function() awful.spawn.easy_async_with_shell("xset s 10800 0") end }, + { "14400 # 4h", function() awful.spawn.easy_async_with_shell("xset s 14400 0") end }, + { "21600 # 6h", function() awful.spawn.easy_async_with_shell("xset s 21600 0") end }, } dpms_menu = { { "off", function() awful.spawn.easy_async_with_shell("xset -dpms") end }, - { "10 # 10s", function() awful.spawn.easy_async_with_shell("xset dpms 10") end }, - { "30 # 30s", function() awful.spawn.easy_async_with_shell("xset dpms 30") end }, - { "60 # 1m", function() awful.spawn.easy_async_with_shell("xset dpms 60") end }, - { "180 # 3m", function() awful.spawn.easy_async_with_shell("xset dpms 180") end }, - { "300 # 5m", function() awful.spawn.easy_async_with_shell("xset dpms 300") end }, - { "600 # 10m", function() awful.spawn.easy_async_with_shell("xset dpms 600") end }, + { "10 # 10s", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 10") end }, + { "30 # 30s", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 30") end }, + { "60 # 1m", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 60") end }, + { "180 # 3m", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 180") end }, + { "300 # 5m", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 300") end }, + { "600 # 10m", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 600") end }, + { "900 # 15m", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 900") end }, + { "1800 # 30m", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 1800") end }, + { "2700 # 45m", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 2700") end }, + { "3600 # 1h", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 3600") end }, + { "7200 # 2h", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 7200") end }, + { "10800 # 3h", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 10800") end }, + { "14400 # 4h", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 14400") end }, + { "21600 # 6h", function() awful.spawn.easy_async_with_shell("xset dpms 0 0 21600") end }, } myawesomemenu = { -- cgit v1.2.3