Changed to use super key not alt
This commit is contained in:
@@ -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" }),
|
||||||
|
|||||||
@@ -3,18 +3,35 @@ local beautiful = require("beautiful")
|
|||||||
local keys = require("config.keys")
|
local keys = require("config.keys")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{ rule = { }, properties = {
|
{
|
||||||
|
rule = { },
|
||||||
|
properties = {
|
||||||
border_width = beautiful.border_width, border_color = beautiful.border_normal,
|
border_width = beautiful.border_width, border_color = beautiful.border_normal,
|
||||||
focus = awful.client.focus.filter, raise = true,
|
focus = awful.client.focus.filter, raise = true,
|
||||||
keys = keys.clientkeys, buttons = keys.clientbuttons,
|
keys = keys.clientkeys, buttons = keys.clientbuttons,
|
||||||
screen = awful.screen.preferred,
|
screen = awful.screen.preferred,
|
||||||
placement = awful.placement.no_overlap + awful.placement.no_offscreen,
|
placement = awful.placement.no_overlap + awful.placement.no_offscreen,
|
||||||
}},
|
}
|
||||||
|
},
|
||||||
{ rule_any = {
|
{
|
||||||
|
rule_any = {
|
||||||
instance = { "pinentry" },
|
instance = { "pinentry" },
|
||||||
class = { "Arandr", "Blueman-manager", "Gpick", "Pavucontrol" },
|
class = { "Arandr", "Blueman-manager", "Gpick", "Pavucontrol" },
|
||||||
name = { "Event Tester" },
|
name = { "Event Tester" },
|
||||||
role = { "AlarmWindow", "pop-up" },
|
role = { "AlarmWindow", "pop-up" },
|
||||||
}, properties = { floating = true }},
|
},
|
||||||
|
properties = { floating = true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
rule = { name = "Sublime Terminal", },
|
||||||
|
properties = { floating = false, },
|
||||||
|
callback = function(c)
|
||||||
|
awful.client.setslave(c)
|
||||||
|
|
||||||
|
local t = c.first_tag
|
||||||
|
if t then
|
||||||
|
t.master_width_factor = 0.67
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user