feat: awesome startup -> .xinitrc, apps shortcuts
This commit is contained in:
parent
108594f091
commit
e02f9dfe9d
@ -53,15 +53,12 @@ end
|
|||||||
beautiful.init(gears.filesystem.get_configuration_dir() .. "theme.lua")
|
beautiful.init(gears.filesystem.get_configuration_dir() .. "theme.lua")
|
||||||
|
|
||||||
terminal = "alacritty"
|
terminal = "alacritty"
|
||||||
editor = os.getenv("EDITOR") or "nvim"
|
editor = os.getenv("EDITOR")
|
||||||
editor_cmd = terminal .. " -e " .. editor
|
|
||||||
|
|
||||||
browser = "firefox"
|
browser = "firefox"
|
||||||
private_browser = "firefox --private-window"
|
private_browser = "firefox --private-window"
|
||||||
files = "pcmanfm"
|
files = "pcmanfm"
|
||||||
|
|
||||||
lock = "i3lock -ftni" .. gears.filesystem.get_configuration_dir() .. "wallpapers/debian11.png"
|
|
||||||
|
|
||||||
modkey = "Mod4"
|
modkey = "Mod4"
|
||||||
|
|
||||||
awful.layout.layouts = {
|
awful.layout.layouts = {
|
||||||
@ -86,21 +83,12 @@ local taglist_buttons = gears.table.join(
|
|||||||
t:view_only()
|
t:view_only()
|
||||||
end
|
end
|
||||||
),
|
),
|
||||||
awful.button(
|
|
||||||
{modkey}, 1,
|
|
||||||
function(t)
|
|
||||||
if client.focus then
|
|
||||||
client.focus:move_to_tag(t)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
local tasklist_buttons = gears.table.join(
|
local tasklist_buttons = gears.table.join(
|
||||||
awful.button(
|
awful.button(
|
||||||
{}, 1,
|
{}, 1,
|
||||||
function(c)
|
function(c)
|
||||||
c.minimized = false
|
|
||||||
c:emit_signal("request::activate", "tasklist", {raise = true})
|
c:emit_signal("request::activate", "tasklist", {raise = true})
|
||||||
end
|
end
|
||||||
),
|
),
|
||||||
@ -262,7 +250,7 @@ globalkeys = gears.table.join(
|
|||||||
awful.key(
|
awful.key(
|
||||||
{modkey}, "l",
|
{modkey}, "l",
|
||||||
function()
|
function()
|
||||||
awful.spawn(lock)
|
awful.spawn("lock")
|
||||||
end,
|
end,
|
||||||
{description = "lock screen", group = "awesome"}
|
{description = "lock screen", group = "awesome"}
|
||||||
),
|
),
|
||||||
@ -631,17 +619,8 @@ client.connect_signal(
|
|||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
apps = {
|
apps = {
|
||||||
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1",
|
|
||||||
"xset dpms 300 15", -- dim screen after 5 min and lock 15 sec after
|
|
||||||
"xss-lock -- " .. lock,
|
|
||||||
"picom",
|
|
||||||
"redshift",
|
|
||||||
"nm-applet",
|
|
||||||
"numlockx",
|
|
||||||
"killall cbatticon",
|
"killall cbatticon",
|
||||||
"cbatticon BAT0 -i symbolic",
|
"cbatticon BAT0 -i symbolic",
|
||||||
"flameshot",
|
|
||||||
"blueman-applet",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, app in ipairs(apps) do
|
for _, app in ipairs(apps) do
|
||||||
|
Loading…
Reference in New Issue
Block a user