From 3e2ee388e6e2821a26f60ff039a61d72d15fd8bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kmie=C4=87?= Date: Thu, 12 Jun 2025 22:40:04 +0200 Subject: [PATCH] Awesome: add some minor adjustment to workflow --- .config/awesome/rc.lua | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 4610c3f..79a3d4e 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -70,7 +70,7 @@ awful.layout.layouts = { awful.layout.suit.tile.left, -- awful.layout.suit.tile.bottom, -- awful.layout.suit.tile.top, - -- awful.layout.suit.fair, + awful.layout.suit.fair, -- awful.layout.suit.fair.horizontal, -- awful.layout.suit.spiral, -- awful.layout.suit.spiral.dwindle, @@ -269,8 +269,8 @@ root.buttons(gears.table.join( -- {{{ Key bindings globalkeys = gears.table.join( - awful.key({ modkey, }, "s", hotkeys_popup.show_help, - {description="show help", group="awesome"}), + -- awful.key({ modkey, }, "s", hotkeys_popup.show_help, + -- {description="show help", group="awesome"}), awful.key({ modkey, }, "Left", awful.tag.viewprev, {description = "view previous", group = "tag"}), awful.key({ modkey, }, "Right", awful.tag.viewnext, @@ -314,8 +314,10 @@ globalkeys = gears.table.join( {description = "go back", group = "client"}), -- Standard program - awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end, + awful.key({ modkey, }, "t", function () awful.spawn(terminal) end, {description = "open a terminal", group = "launcher"}), + awful.key({ modkey, }, "s", function () awful.spawn("pavucontrol") end, + {description = "open pavucontrol", group = "launcher"}), awful.key({ modkey, "Control" }, "r", awesome.restart, {description = "reload awesome", group = "awesome"}), awful.key({ modkey, "Shift" }, "c", awesome.quit, @@ -384,8 +386,8 @@ clientkeys = gears.table.join( {description = "move to master", group = "client"}), awful.key({ modkey, }, "o", function (c) c:move_to_screen() end, {description = "move to screen", group = "client"}), - awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end, - {description = "toggle keep on top", group = "client"}), + -- awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end, + -- {description = "toggle keep on top", group = "client"}), awful.key({ modkey, }, "n", function (c) -- The client currently has the input focus, so it cannot be @@ -482,13 +484,15 @@ root.keys(globalkeys) -- }}} -- {{{ Rules +local function custom_focus_filter(c) return awful.client.focus.filter(c) and c.name:find("^Meet - ") ~= nil end -- Rules to apply to new clients (through the "manage" signal). awful.rules.rules = { -- All clients will match this rule. { rule = { }, properties = { border_width = beautiful.border_width, border_color = beautiful.border_normal, - focus = awful.client.focus.filter, + --focus = awful.client.focus.filter, + focus = custom_focus_filter, raise = true, keys = clientkeys, buttons = clientbuttons, @@ -530,7 +534,7 @@ awful.rules.rules = { -- Add titlebars to normal clients and dialogs { rule_any = {type = { "normal", "dialog" } - }, properties = { titlebars_enabled = false } + }, properties = { titlebars_enabled = true } }, -- Set Firefox to always map on the tag named "1" on screen 1 and disable @@ -620,10 +624,10 @@ do { "xset b off", "xdotool key --clearmodifiers Num_Lock", - "autorandr -c", + --"autorandr -c", "pasystray -m 100", "cbatticon", - "barrierc --disable-crypto 192.168.10.2:24800", + "barrierc --disable-crypto 192.168.10.99:24800", "xbindkeys -f /home/kmcr/.config/xbindkeysrc", } for _,i in ipairs(cmds_once) do @@ -635,7 +639,7 @@ do "nm-applet", "blueman-applet", "flameshot", - "feh --no-xinerama --bg-scale /home/kmcr/.config/i3/wallpaper.jpg", + "feh --bg-center /home/kmcr/Downloads/gruvbox_spac.jpg" } for _,i in ipairs(cmds_single_instance) do awful.spawn.single_instance(i)