From 5385031dca35d9f8516fab1c989acd5505479525 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 30 Jan 2017 08:11:31 +0100 Subject: more config --- config/awesome/rc.lua | 77 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 61 insertions(+), 16 deletions(-) (limited to 'config/awesome/rc.lua') diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 9daf950..e6056fa 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -123,7 +123,7 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ -- {{{ Wibox -- Create a textclock widget -mytextclock = awful.widget.textclock() +mytextclock = awful.widget.textclock(nil, 5) -- Create a wibox for each screen and add it mywibox = {} @@ -153,7 +153,7 @@ mytasklist.buttons = awful.util.table.join( -- This will also un-minimize -- the client, if needed client.focus = c - c:raise() + -- c:raise() end end), awful.button({ }, 3, function () @@ -238,12 +238,12 @@ globalkeys = awful.util.table.join( awful.key({ modkey, }, "j", function () awful.client.focus.byidx( 1) - -- if client.focus then client.focus:raise() end + if client.focus then client.focus:raise() end end), awful.key({ modkey, }, "k", function () awful.client.focus.byidx(-1) - -- if client.focus then client.focus:raise() end + if client.focus then client.focus:raise() end end), -- awful.key({ modkey, }, "w", function () mymainmenu:show() end), @@ -333,6 +333,9 @@ globalkeys = awful.util.table.join( -- awful.key({ "Control", "Mod1"}, "l", function () awful.util.spawn("xdg-screensaver lock") end), --KDE--awful.key({ "Control", "Mod1"}, "l", function () awful.util.spawn("loginctl lock-session") end), --KDE--awful.key({ "Control", "Mod1"}, "End", function () awful.util.spawn_with_shell("systemctl suspend -i; xdg-screensaver reset; loginctl unlock-session; xdg-screensaver reset") end), + -- awful.key({ "Control", "Mod1"}, "End", function () awful.util.spawn_with_shell("xscreensaver-command -lock; sleep 1; systemctl suspend") end), + -- awful.key({ "Control", "Mod1"}, "End", function () awful.util.spawn_with_shell("loginctl lock-session && systemctl suspend -i") end), + -- awful.key({ "Shift", "Control", "Mod1"}, "End", function () awful.util.spawn_with_shell("loginctl lock-session && systemctl suspend -i") end), -- awful.key( {"Ctrl"}, "Tab", revelation), @@ -353,10 +356,10 @@ globalkeys = awful.util.table.join( end end globalkeys = awful.util.table.join(globalkeys, - awful.key({ modkey, }, "Left" , function () viewidx_no_wrap (5, 0, -1) end ), - awful.key({ modkey, }, "Right", function () viewidx_no_wrap (5, 0, 1) end ), - awful.key({ modkey, }, "Up" , function () viewidx_no_wrap (5, -1, 0) end ), - awful.key({ modkey, }, "Down" , function () viewidx_no_wrap (5, 1, 0) end ) + awful.key({ modkey2, }, "Left" , function () viewidx_no_wrap (5, 0, -1) end ), + awful.key({ modkey2, }, "Right", function () viewidx_no_wrap (5, 0, 1) end ), + awful.key({ modkey2, }, "Up" , function () viewidx_no_wrap (5, -1, 0) end ), + awful.key({ modkey2, }, "Down" , function () viewidx_no_wrap (5, 1, 0) end ) ) @@ -427,11 +430,11 @@ clientkeys = awful.util.table.join( -- c.maximized_horizontal = not c.maximized_horizontal -- c.maximized_vertical = not c.maximized_vertical -- end), - awful.key({ modkey2, }, "m", - function (c) - c.maximized_horizontal = not c.maximized_horizontal - c.maximized_vertical = not c.maximized_vertical - end), + --awful.key({ modkey2, }, "m", + -- function (c) + -- c.maximized_horizontal = not c.maximized_horizontal + -- c.maximized_vertical = not c.maximized_vertical + -- end), awful.key({ modkey, }, "q", function (c) c.maximized_horizontal = not c.maximized_horizontal end), awful.key({ modkey, }, "a", function (c) c.maximized_vertical = not c.maximized_vertical end), @@ -440,11 +443,37 @@ clientkeys = awful.util.table.join( if c.maximized_vertical then c.maximized_horizontal = false c.maximized_vertical = false + -- if not c.floating then + -- c.ontop = false + --end else c.maximized_horizontal = true c.maximized_vertical = true + --if not c.floating then + -- c.ontop = true + --end + c:raise() end end), + awful.key({ modkey, }, "w", + function (c) + -- local drawable, size = awful.titlebar(c) + -- if size == 0 then + -- c.border_width = 0 + -- else + -- c.border_width = beautiful.border_width + -- end + if c.border_width == 0 then + c.border_width = beautiful.border_width + else + c.border_width = 0 + end + awful.titlebar.toggle(c) + -- then awful.titlebar.remove(c) + -- if c.titlebar then awful.titlebar.remove(c) + -- else setup_titlebar(c) + -- end + end), awful.key({ "Mod1" }, "Up" , function (c) c:raise() end), awful.key({ "Mod1" }, "Down" , function (c) c:lower() end), @@ -468,9 +497,24 @@ clientkeys = awful.util.table.join( ) clientbuttons = awful.util.table.join( - awful.button({ }, 1, function (c) client.focus = c; c:raise() end), - awful.button({ modkey }, 1, awful.mouse.client.move), - awful.button({ modkey }, 3, awful.mouse.client.resize)) + awful.button({ }, 1, + function (c) + client.focus = c + -- c:raise() + end), + awful.button({ modkey }, 1, + function (c) + awful.mouse.client.move () + c:raise() + end), + awful.button({ modkey }, 3, + function (c) + -- c.maximized_horizontal = false + -- c.maximized_vertical = false + -- XXX: set window size/geometry to current(maximized) size/geometry + awful.mouse.client.resize () + end) + ) -- awful.button({ "Mod1" }, 1, awful.mouse.client.move), -- awful.button({ "Mod1" }, 3, awful.mouse.client.resize)) @@ -609,6 +653,7 @@ awful.util.spawn_with_shell("pkill -x -f nm-applet; nm-applet") -- awful.util.spawn("xscreensaver -no-splash") --KDE--awful.util.spawn("X-screensaver") awful.util.spawn_with_shell("pkill -x -f clipit; clipit") +-- awful.util.spawn_with_shell("pkill -x -f dnssec-trigger-panel; dnssec-trigger-panel") awful.util.spawn_with_shell("pkill -x -f 'alsa-volume-monitor hw:0'; alsa-volume-monitor hw:0") -- vim:set softtabstop=4:ts=4:shiftwidth=4:et=1: -- cgit v1.2.3