dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit d5b364b7a3e3f6c38933d375dbe3e0cf74a00c79
parent 71a6d660ade2f539f606c5bf163c30b4644b7a08
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 19 Jan 2018 08:14:14 -0500

Awesome config updates: hotkeys, etc.

Diffstat:
M.config/awesome/rc.lua | 18++++++++++++------
M.config/awesome/theme.lua | 3+++
2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua @@ -93,6 +93,10 @@ end local function hybrid_sleep() awful.spawn('systemctl hybrid-sleep') end + +local function lock_screen() + awful.spawn('xlock-off') +end -- }}} -- {{{ Menu @@ -184,7 +188,7 @@ screen.connect_signal("property::geometry", set_wallpaper) awful.screen.connect_for_each_screen(function(s) -- Wallpaper - set_wallpaper(s) + -- set_wallpaper(s) rely on feh -- Each screen has its own tag table. awful.tag.add("www", { @@ -252,6 +256,8 @@ globalkeys = gears.table.join( {description="show help", group="awesome"}), awful.key({ modkey, "Mod1" }, "s", hybrid_sleep, {description="machine standby", group="awesome"}), + awful.key({ modkey, }, "l", lock_screen, + {description="lock screen", group="awesome"}), awful.key({ modkey, }, "Left", awful.tag.viewprev, {description = "view previous", group = "tag"}), awful.key({ modkey, }, "Right", awful.tag.viewnext, @@ -302,9 +308,9 @@ globalkeys = gears.table.join( awful.key({ modkey, "Shift" }, "q", awesome.quit, {description = "quit awesome", group = "awesome"}), - awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end, + awful.key({ modkey, "Mod1" }, "l", function () awful.tag.incmwfact( 0.05) end, {description = "increase master width factor", group = "layout"}), - awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end, + awful.key({ modkey, "Mod1" }, "h", function () awful.tag.incmwfact(-0.05) end, {description = "decrease master width factor", group = "layout"}), awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1, nil, true) end, {description = "increase the number of master clients", group = "layout"}), @@ -356,7 +362,7 @@ clientkeys = gears.table.join( c:raise() end, {description = "toggle fullscreen", group = "client"}), - awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end, + awful.key({ modkey, }, "q", function (c) c:kill() end, {description = "close", group = "client"}), awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle , {description = "toggle floating", group = "client"}), @@ -536,9 +542,9 @@ client.connect_signal("request::titlebars", function(c) end) ) - awful.titlebar(c) : setup { + awful.titlebar(c, { size = beautiful.titlebar_height }) : setup { { -- Left - awful.titlebar.widget.iconwidget(c), + -- awful.titlebar.widget.iconwidget(c), buttons = buttons, layout = wibox.layout.fixed.horizontal }, diff --git a/.config/awesome/theme.lua b/.config/awesome/theme.lua @@ -127,6 +127,9 @@ theme.awesome_icon = theme_assets.awesome_icon( theme.menu_height, theme.bg_focus, theme.fg_focus ) +theme.wibar_height = dpi(18) +theme.titlebar_height = dpi(18) + -- Define the icon theme for application icons. If not set then the icons -- from /usr/share/icons and /usr/share/icons/hicolor will be used. theme.icon_theme = "Arc"