diff --git a/config/awesome/config/keys.lua b/config/awesome/config/keys.lua index 5dd14ff..501d155 100644 --- a/config/awesome/config/keys.lua +++ b/config/awesome/config/keys.lua @@ -34,7 +34,7 @@ M.globalkeys = gears.table.join( awful.key({ modkey, "Control" }, "p", function() awful.spawn("xfce4-screenshooter") end, { description = "screenshot", group = "system" }), -- Alt tab current workspace windows - awful.key({ "Mod1" }, "Tab", function() awful.client.focus.byidx(1) end), + awful.key({ modkey }, "Tab", function() awful.client.focus.byidx(1) end), -- Media keys awful.key({ }, "XF86AudioRaiseVolume", function() awful.spawn.easy_async_with_shell([[sh -c 'pactl set-sink-volume "$(pactl get-default-sink)" +2%']]) end, { description = "volume up", group = "media" }), diff --git a/config/awesome/config/rules.lua b/config/awesome/config/rules.lua index f4bd644..878f736 100644 --- a/config/awesome/config/rules.lua +++ b/config/awesome/config/rules.lua @@ -3,18 +3,35 @@ local beautiful = require("beautiful") local keys = require("config.keys") return { - { rule = { }, properties = { - border_width = beautiful.border_width, border_color = beautiful.border_normal, - focus = awful.client.focus.filter, raise = true, - keys = keys.clientkeys, buttons = keys.clientbuttons, - screen = awful.screen.preferred, - placement = awful.placement.no_overlap + awful.placement.no_offscreen, - }}, + { + rule = { }, + properties = { + border_width = beautiful.border_width, border_color = beautiful.border_normal, + focus = awful.client.focus.filter, raise = true, + keys = keys.clientkeys, buttons = keys.clientbuttons, + screen = awful.screen.preferred, + placement = awful.placement.no_overlap + awful.placement.no_offscreen, + } + }, + { + rule_any = { + instance = { "pinentry" }, + class = { "Arandr", "Blueman-manager", "Gpick", "Pavucontrol" }, + name = { "Event Tester" }, + role = { "AlarmWindow", "pop-up" }, + }, + properties = { floating = true } + }, + { + rule = { name = "Sublime Terminal", }, + properties = { floating = false, }, + callback = function(c) + awful.client.setslave(c) - { rule_any = { - instance = { "pinentry" }, - class = { "Arandr", "Blueman-manager", "Gpick", "Pavucontrol" }, - name = { "Event Tester" }, - role = { "AlarmWindow", "pop-up" }, - }, properties = { floating = true }}, + local t = c.first_tag + if t then + t.master_width_factor = 0.67 + end + end, + }, } diff --git a/config/awesome/config/theme.lua b/config/awesome/config/theme.lua index 1d5e220..f190cb5 100644 --- a/config/awesome/config/theme.lua +++ b/config/awesome/config/theme.lua @@ -36,7 +36,7 @@ naughty.config.defaults.font = "JetBrainsMono Nerd Font 12" naughty.config.defaults.shape = function(cr, w, h) gears.shape.rounded_rect(cr, w, h, 13) end naughty.config.presets.normal = { - bg = colors.background, fg = colors.foreground, border_color = colors.background_alt, + bg = colors.background, fg = colors.foreground, border_color = colors.accent, border_width = 3, font = "JetBrainsMono Nerd Font 12", timeout = 5, } naughty.config.presets.low = naughty.config.presets.normal diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index e7655bb..9c03c74 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -7,7 +7,7 @@ local naughty = require("naughty") local bling = require("bling") -- Global config -modkey = "Mod1" -- Alt. Use "Mod4" for the Super/Windows key. +modkey = "Mod4" -- Alt. Use "Mod4" for the Super/Windows key. terminal = "alacritty" editor = os.getenv("EDITOR") or "nano"