Awesome: add some minor adjustment to workflow

This commit is contained in:
Robert Kmieć
2025-06-12 22:40:04 +02:00
parent ee2bbcf84f
commit 3e2ee388e6

View File

@@ -70,7 +70,7 @@ awful.layout.layouts = {
awful.layout.suit.tile.left, awful.layout.suit.tile.left,
-- awful.layout.suit.tile.bottom, -- awful.layout.suit.tile.bottom,
-- awful.layout.suit.tile.top, -- awful.layout.suit.tile.top,
-- awful.layout.suit.fair, awful.layout.suit.fair,
-- awful.layout.suit.fair.horizontal, -- awful.layout.suit.fair.horizontal,
-- awful.layout.suit.spiral, -- awful.layout.suit.spiral,
-- awful.layout.suit.spiral.dwindle, -- awful.layout.suit.spiral.dwindle,
@@ -269,8 +269,8 @@ root.buttons(gears.table.join(
-- {{{ Key bindings -- {{{ Key bindings
globalkeys = gears.table.join( globalkeys = gears.table.join(
awful.key({ modkey, }, "s", hotkeys_popup.show_help, -- awful.key({ modkey, }, "s", hotkeys_popup.show_help,
{description="show help", group="awesome"}), -- {description="show help", group="awesome"}),
awful.key({ modkey, }, "Left", awful.tag.viewprev, awful.key({ modkey, }, "Left", awful.tag.viewprev,
{description = "view previous", group = "tag"}), {description = "view previous", group = "tag"}),
awful.key({ modkey, }, "Right", awful.tag.viewnext, awful.key({ modkey, }, "Right", awful.tag.viewnext,
@@ -314,8 +314,10 @@ globalkeys = gears.table.join(
{description = "go back", group = "client"}), {description = "go back", group = "client"}),
-- Standard program -- 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"}), {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, awful.key({ modkey, "Control" }, "r", awesome.restart,
{description = "reload awesome", group = "awesome"}), {description = "reload awesome", group = "awesome"}),
awful.key({ modkey, "Shift" }, "c", awesome.quit, awful.key({ modkey, "Shift" }, "c", awesome.quit,
@@ -384,8 +386,8 @@ clientkeys = gears.table.join(
{description = "move to master", group = "client"}), {description = "move to master", group = "client"}),
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end, awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
{description = "move to screen", group = "client"}), {description = "move to screen", group = "client"}),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end, -- awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
{description = "toggle keep on top", group = "client"}), -- {description = "toggle keep on top", group = "client"}),
awful.key({ modkey, }, "n", awful.key({ modkey, }, "n",
function (c) function (c)
-- The client currently has the input focus, so it cannot be -- The client currently has the input focus, so it cannot be
@@ -482,13 +484,15 @@ root.keys(globalkeys)
-- }}} -- }}}
-- {{{ Rules -- {{{ 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). -- Rules to apply to new clients (through the "manage" signal).
awful.rules.rules = { awful.rules.rules = {
-- All clients will match this rule. -- All clients will match this rule.
{ rule = { }, { rule = { },
properties = { border_width = beautiful.border_width, properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal, border_color = beautiful.border_normal,
focus = awful.client.focus.filter, --focus = awful.client.focus.filter,
focus = custom_focus_filter,
raise = true, raise = true,
keys = clientkeys, keys = clientkeys,
buttons = clientbuttons, buttons = clientbuttons,
@@ -530,7 +534,7 @@ awful.rules.rules = {
-- Add titlebars to normal clients and dialogs -- Add titlebars to normal clients and dialogs
{ rule_any = {type = { "normal", "dialog" } { 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 -- Set Firefox to always map on the tag named "1" on screen 1 and disable
@@ -620,10 +624,10 @@ do
{ {
"xset b off", "xset b off",
"xdotool key --clearmodifiers Num_Lock", "xdotool key --clearmodifiers Num_Lock",
"autorandr -c", --"autorandr -c",
"pasystray -m 100", "pasystray -m 100",
"cbatticon", "cbatticon",
"barrierc --disable-crypto 192.168.10.2:24800", "barrierc --disable-crypto 192.168.10.99:24800",
"xbindkeys -f /home/kmcr/.config/xbindkeysrc", "xbindkeys -f /home/kmcr/.config/xbindkeysrc",
} }
for _,i in ipairs(cmds_once) do for _,i in ipairs(cmds_once) do
@@ -635,7 +639,7 @@ do
"nm-applet", "nm-applet",
"blueman-applet", "blueman-applet",
"flameshot", "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 for _,i in ipairs(cmds_single_instance) do
awful.spawn.single_instance(i) awful.spawn.single_instance(i)