Changed to use super key not alt

This commit is contained in:
2026-07-15 08:27:30 +02:00
parent 745ab5c492
commit cd577f9e62
4 changed files with 33 additions and 16 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ M.globalkeys = gears.table.join(
awful.key({ modkey, "Control" }, "p", function() awful.spawn("xfce4-screenshooter") end, { description = "screenshot", group = "system" }), awful.key({ modkey, "Control" }, "p", function() awful.spawn("xfce4-screenshooter") end, { description = "screenshot", group = "system" }),
-- Alt tab current workspace windows -- 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 -- 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" }), 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" }),
+30 -13
View File
@@ -3,18 +3,35 @@ local beautiful = require("beautiful")
local keys = require("config.keys") local keys = require("config.keys")
return { return {
{ rule = { }, properties = { {
border_width = beautiful.border_width, border_color = beautiful.border_normal, rule = { },
focus = awful.client.focus.filter, raise = true, properties = {
keys = keys.clientkeys, buttons = keys.clientbuttons, border_width = beautiful.border_width, border_color = beautiful.border_normal,
screen = awful.screen.preferred, focus = awful.client.focus.filter, raise = true,
placement = awful.placement.no_overlap + awful.placement.no_offscreen, 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 = { local t = c.first_tag
instance = { "pinentry" }, if t then
class = { "Arandr", "Blueman-manager", "Gpick", "Pavucontrol" }, t.master_width_factor = 0.67
name = { "Event Tester" }, end
role = { "AlarmWindow", "pop-up" }, end,
}, properties = { floating = true }}, },
} }
+1 -1
View File
@@ -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.defaults.shape = function(cr, w, h) gears.shape.rounded_rect(cr, w, h, 13) end
naughty.config.presets.normal = { 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, border_width = 3, font = "JetBrainsMono Nerd Font 12", timeout = 5,
} }
naughty.config.presets.low = naughty.config.presets.normal naughty.config.presets.low = naughty.config.presets.normal
+1 -1
View File
@@ -7,7 +7,7 @@ local naughty = require("naughty")
local bling = require("bling") local bling = require("bling")
-- Global config -- Global config
modkey = "Mod1" -- Alt. Use "Mod4" for the Super/Windows key. modkey = "Mod4" -- Alt. Use "Mod4" for the Super/Windows key.
terminal = "alacritty" terminal = "alacritty"
editor = os.getenv("EDITOR") or "nano" editor = os.getenv("EDITOR") or "nano"