aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rwxr-xr-x.config/awesome/autorun.sh4
-rwxr-xr-x.config/awesome/dpms.sh11
-rw-r--r--.config/awesome/rc.lua21
3 files changed, 33 insertions, 3 deletions
diff --git a/.config/awesome/autorun.sh b/.config/awesome/autorun.sh
index 9a546fe..26e8284 100755
--- a/.config/awesome/autorun.sh
+++ b/.config/awesome/autorun.sh
@@ -34,11 +34,11 @@ run /usr/bin/gnome-keyring-daemon --start --components=pkcs11
run /usr/bin/gnome-keyring-daemon --start --components=secrets
run /usr/bin/gnome-keyring-daemon --start --components=ssh
# run xfce4-power-manager
-run light-locker
-run lxqt-powermanagement
+run xss-lock slock
run dunst
run ~/.config/awesome/xinput-daemon.sh
run ~/.config/awesome/keymapper.sh
+run ~/.config/awesome/dpms.sh
run ibus-daemon -drxR
run /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
run wineserver
diff --git a/.config/awesome/dpms.sh b/.config/awesome/dpms.sh
new file mode 100755
index 0000000..192c002
--- /dev/null
+++ b/.config/awesome/dpms.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# Check if xset is available
+if command -v xset > /dev/null; then
+ # Place all DPMS settings that you want
+ # to run on awesome-wm startup below:
+ xset +dpms
+ xset s 10
+else
+ notify-send "Error: DPMS command not found."
+fi
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index f47aad6..1e03f5a 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -61,9 +61,28 @@ awful.layout.layouts = {
-- {{{ Menu
-- Create a launcher widget and a main menu
+mydpmsmenu = {
+ { "s off", function() awful.spawn.easy_async_with_shell("xset s off") end },
+ { "s 10 # seconds", function() awful.spawn.easy_async_with_shell("xset s 10") end },
+ { "s 30 # seconds", function() awful.spawn.easy_async_with_shell("xset s 30") end },
+ { "s 60 # seconds", function() awful.spawn.easy_async_with_shell("xset s 60") end },
+ { "s 3 # minutes", function() awful.spawn.easy_async_with_shell("xset s 180") end },
+ { "s 5 # minutes", function() awful.spawn.easy_async_with_shell("xset s 300") end },
+ { "s 10 # minutes", function() awful.spawn.easy_async_with_shell("xset s 600") end },
+ { "s 15 # minutes", function() awful.spawn.easy_async_with_shell("xset s 900") end },
+ { "s 30 # minutes", function() awful.spawn.easy_async_with_shell("xset s 1800") end },
+ { "s 45 # minutes", function() awful.spawn.easy_async_with_shell("xset s 2700") end },
+ { "s 60 # minutes", function() awful.spawn.easy_async_with_shell("xset s 3600") end },
+ { "s 2 # hours", function() awful.spawn.easy_async_with_shell("xset s 7200") end },
+ { "s 3 # hours", function() awful.spawn.easy_async_with_shell("xset s 10800") end },
+ { "s 4 # hours", function() awful.spawn.easy_async_with_shell("xset s 14400") end },
+ { "s 6 # hours", function() awful.spawn.easy_async_with_shell("xset s 21600") end },
+}
+
myawesomemenu = {
{ "show hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
-- { "manual", terminal .. " -e man awesome" },
+ { "dpms$ xset", mydpmsmenu },
{ "config file", editor .. " " .. awesome.conffile },
{ "picom config", function() awful.spawn.easy_async_with_shell("sh -c 'gvim $HOME/.config/picom.conf'") end },
{ "change wallpaper", function() awful.spawn.easy_async_with_shell("sh -c 'nitrogen'") end },
@@ -78,7 +97,7 @@ myawesomemenu = {
{ "stagnate", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl hibernate'") end},
{ "suspend", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl suspend'") end},
{ "logout", function () awful.spawn("sh -c 'pkill -9 -u $USER'") end },
- { "lock", function() awful.spawn.easy_async_with_shell("sh -c 'xdg-screensaver lock'") end},
+ { "lock", function() awful.spawn.easy_async_with_shell("sh -c 'slock'") end},
}
mymainmenu = awful.menu({ items = { { "applications", xdgmenu, beautiful.awesome_icon },