awesome: update theme and copy some random things from herbstluft

This commit is contained in:
2023-12-10 06:31:11 +02:00
parent 0d5b718f2e
commit e53cad0a6d
2 changed files with 27 additions and 5 deletions

View File

@ -56,8 +56,12 @@ beautiful.init(theme)
-- This is used later as the default terminal and editor to run. -- This is used later as the default terminal and editor to run.
terminal = "kitty" terminal = "kitty"
editor = "nvim" browser = "firefox"
editor_cmd = terminal .. " -e " .. editor calculator = "rofi -show calc"
file_manager = "pcmanfm"
launcher = "rofi -show run"
music_player = terminal .. " -e ncmpcpp"
screen_locker = "i3lock -c 000000"
-- Default modkey. -- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt. -- Usually, Mod4 is the key with a logo between Control and Alt.
@ -97,7 +101,6 @@ myawesomemenu = {
end, end,
}, },
{ "manual", terminal .. " -e man awesome" }, { "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart }, { "restart", awesome.restart },
{ {
"quit", "quit",
@ -325,6 +328,24 @@ globalkeys = gears.table.join(
awful.key({ modkey }, "Return", function() awful.key({ modkey }, "Return", function()
awful.spawn(terminal) awful.spawn(terminal)
end, { description = "open a terminal", group = "launcher" }), end, { description = "open a terminal", group = "launcher" }),
awful.key({ modkey }, "grave", function()
awful.spawn("flameshot gui")
end, { description = "screenshot", group = "launcher" }),
awful.key({ modkey }, "1", function()
awful.spawn(file_manager)
end, { description = "file manager", group = "launcher" }),
awful.key({ modkey }, "2", function()
awful.spawn(browser)
end, { description = "web browser", group = "launcher" }),
awful.key({ modkey }, "3", function()
awful.spawn(calculator)
end, { description = "calculator", group = "launcher" }),
awful.key({ modkey }, "4", function()
awful.spawn(music_player)
end, { description = "music player", group = "launcher" }),
awful.key({ modkey }, "0", function()
awful.spawn(screen_locker)
end, { description = "lock screen", group = "launcher" }),
awful.key({ modkey, "Control" }, "r", awesome.restart, { description = "reload awesome", group = "awesome" }), awful.key({ modkey, "Control" }, "r", awesome.restart, { description = "reload awesome", group = "awesome" }),
awful.key({ modkey, "Shift" }, "q", awesome.quit, { description = "quit awesome", group = "awesome" }), awful.key({ modkey, "Shift" }, "q", awesome.quit, { description = "quit awesome", group = "awesome" }),
@ -507,6 +528,7 @@ awful.rules.rules = {
"Wpa_gui", "Wpa_gui",
"veromix", "veromix",
"xtightvncviewer", "xtightvncviewer",
"Cadence",
}, },
-- Note that the name property shown in xprop might be set slightly after creation of the client -- Note that the name property shown in xprop might be set slightly after creation of the client

View File

@ -30,8 +30,8 @@ theme.fg_minimize = theme.bg_normal
theme.useless_gap = dpi(6) theme.useless_gap = dpi(6)
theme.border_width = dpi(2) theme.border_width = dpi(2)
theme.border_normal = xrdb.color0 theme.border_normal = xrdb.color0
theme.border_focus = theme.bg_focus theme.border_focus = xrdb.color8
theme.border_marked = xrdb.color10 theme.border_marked = xrdb.color1
-- There are other variable sets -- There are other variable sets
-- overriding the default one when -- overriding the default one when