Some cahnges

This commit is contained in:
Daan Vanoverloop 2019-08-26 12:01:05 +02:00
parent 3f644805cd
commit a86e342735
2 changed files with 12 additions and 2 deletions

11
.config/awesome/exit.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
ANSWER=$(echo -e "suspend\nlock\nlogout\nshutdown\nreboot" | rofi -dmenu)
case $ANSWER in
"suspend") systemctl suspend;;
"lock") xset s activate;;
"logout") echo 'awesome.quit()' | awesome-client;;
"shutdown") shutdown now;;
"reboot") reboot;;
esac

View File

@ -283,9 +283,8 @@ globalkeys = gears.table.join(
{description = "open a terminal", group = "launcher"}), {description = "open a terminal", group = "launcher"}),
awful.key({ modkey, "Control" }, "r", awesome.restart, awful.key({ modkey, "Control" }, "r", awesome.restart,
{description = "reload awesome", group = "awesome"}), {description = "reload awesome", group = "awesome"}),
awful.key({ modkey, "Shift" }, "e", awesome.quit, awful.key({ modkey, "Shift" }, "e", function() awful.spawn("/home/daan/.config/awesome/exit.sh") end,
{description = "quit awesome", group = "awesome"}), {description = "quit awesome", group = "awesome"}),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end, awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end,
{description = "increase master width factor", group = "layout"}), {description = "increase master width factor", group = "layout"}),
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end, awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end,