From e53cad0a6d3780401159caf3eccbe062581fcdb1 Mon Sep 17 00:00:00 2001 From: omri Date: Sun, 10 Dec 2023 06:31:11 +0200 Subject: [PATCH] awesome: update theme and copy some random things from herbstluft --- .config/awesome/rc.lua | 28 +++++++++++++++++++++++++--- .config/awesome/theme.lua | 4 ++-- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index fe30c5a..0213014 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -56,8 +56,12 @@ beautiful.init(theme) -- This is used later as the default terminal and editor to run. terminal = "kitty" -editor = "nvim" -editor_cmd = terminal .. " -e " .. editor +browser = "firefox" +calculator = "rofi -show calc" +file_manager = "pcmanfm" +launcher = "rofi -show run" +music_player = terminal .. " -e ncmpcpp" +screen_locker = "i3lock -c 000000" -- Default modkey. -- Usually, Mod4 is the key with a logo between Control and Alt. @@ -97,7 +101,6 @@ myawesomemenu = { end, }, { "manual", terminal .. " -e man awesome" }, - { "edit config", editor_cmd .. " " .. awesome.conffile }, { "restart", awesome.restart }, { "quit", @@ -325,6 +328,24 @@ globalkeys = gears.table.join( awful.key({ modkey }, "Return", function() awful.spawn(terminal) 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, "Shift" }, "q", awesome.quit, { description = "quit awesome", group = "awesome" }), @@ -507,6 +528,7 @@ awful.rules.rules = { "Wpa_gui", "veromix", "xtightvncviewer", + "Cadence", }, -- Note that the name property shown in xprop might be set slightly after creation of the client diff --git a/.config/awesome/theme.lua b/.config/awesome/theme.lua index 731018b..5f00de4 100644 --- a/.config/awesome/theme.lua +++ b/.config/awesome/theme.lua @@ -30,8 +30,8 @@ theme.fg_minimize = theme.bg_normal theme.useless_gap = dpi(6) theme.border_width = dpi(2) theme.border_normal = xrdb.color0 -theme.border_focus = theme.bg_focus -theme.border_marked = xrdb.color10 +theme.border_focus = xrdb.color8 +theme.border_marked = xrdb.color1 -- There are other variable sets -- overriding the default one when