From 21f8f22882b42db0d3d73c4f1f733a2e12b0d3f0 Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 2 May 2022 08:28:16 +0000 Subject: [PATCH] Change brightness keys, off color background --- awesome/.config/awesome/configuration/apps.lua | 10 ++++++---- awesome/.config/awesome/configuration/client/rules.lua | 1 + awesome/.config/awesome/configuration/keys/global.lua | 8 ++++++-- awesome/.config/awesome/themes/mytheme/theme.lua | 10 +++++----- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/awesome/.config/awesome/configuration/apps.lua b/awesome/.config/awesome/configuration/apps.lua index 6321893..f1d8a9e 100644 --- a/awesome/.config/awesome/configuration/apps.lua +++ b/awesome/.config/awesome/configuration/apps.lua @@ -12,17 +12,19 @@ apps = { -- editor_cmd = terminal .. " -e " .. editor, -- Your default browser - browser = "firefox", + browser = "firefox-bin", -- Your default screenshot tool screenshot = "flameshot gui", -- Screenlocker - screenlocker = "i3lock -ec '#fdf6e3'", + screenlocker = "i3lock -ec '#f5efdc'", -- brightness - brightness_up = "brightnessctl s 5%+", - brightness_down = "brightnessctl s 5%-", + brightness_up = "xbacklight -inc 1", + brightness_up_more = "xbacklight -inc 5", + brightness_down = "xbacklight -dec 1", + brightness_down_more = "xbacklight -dec 5", } apps.editor_cmd = apps.terminal .. " -e " .. apps.editor diff --git a/awesome/.config/awesome/configuration/client/rules.lua b/awesome/.config/awesome/configuration/client/rules.lua index a848634..be529d1 100644 --- a/awesome/.config/awesome/configuration/client/rules.lua +++ b/awesome/.config/awesome/configuration/client/rules.lua @@ -39,6 +39,7 @@ awful.rules.rules = { "Wpa_gui", "mgba", "veromix", + "oyster", -- for testing stuff "xtightvncviewer"}, -- Note that the name property shown in xprop might be set slightly after creation of the client diff --git a/awesome/.config/awesome/configuration/keys/global.lua b/awesome/.config/awesome/configuration/keys/global.lua index f343520..5c7b5bf 100644 --- a/awesome/.config/awesome/configuration/keys/global.lua +++ b/awesome/.config/awesome/configuration/keys/global.lua @@ -158,14 +158,18 @@ globalKeys = gears.table.join( {description = "take screenshot", group = "apps"}), awful.key({ modkey }, "i", function () awful.spawn(apps.browser) end, {description = "open browser", group = "apps"}), - awful.key({ modkey, "Shift" }, "x", function () awful.spawn(apps.screenlocker) end, + awful.key({ modkey, "Control" }, "x", function () awful.spawn(apps.screenlocker) end, {description = "lock screen", group = "apps"}), -- Brightness awful.key({ modkey }, "x", function () awful.spawn(apps.brightness_up) end, {description = "brightness up", group = "apps"}), + awful.key({ modkey, "Shift" }, "x", function () awful.spawn(apps.brightness_up_more) end, + {description = "brightness up more", group = "apps"}), awful.key({ modkey }, "z", function () awful.spawn(apps.brightness_down) end, - {description = "brightness down", group = "apps"}) + {description = "brightness down", group = "apps"}), + awful.key({ modkey, "Shift" }, "z", function () awful.spawn(apps.brightness_down_more) end, + {description = "brightness downm more", group = "apps"}) ) -- Bind all key numbers to tags. diff --git a/awesome/.config/awesome/themes/mytheme/theme.lua b/awesome/.config/awesome/themes/mytheme/theme.lua index 91309a2..760ab63 100644 --- a/awesome/.config/awesome/themes/mytheme/theme.lua +++ b/awesome/.config/awesome/themes/mytheme/theme.lua @@ -17,9 +17,9 @@ local theme = {} theme.font = "sans 8" theme.master_width_factor = 8/13 -theme.bg_normal = "#fdf6e3" -theme.bg_focus = "#fdf6e3" -theme.bg_urgent = "#fdf6e3" +theme.bg_normal = "#f5efdc" +theme.bg_focus = "#f5efdc" +theme.bg_urgent = "#f5efdc" theme.bg_minimize = "#444444" theme.bg_systray = theme.bg_normal @@ -29,7 +29,7 @@ theme.fg_urgent = "#dc322f" theme.fg_minimize = "#ffffff" theme.useless_gap = dpi(5) -theme.border_width = dpi(1) +theme.border_width = dpi(0) theme.border_normal = "#788e95" theme.border_focus = "#586e75" theme.border_marked = "#586e75" @@ -103,7 +103,7 @@ theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png" theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png" -gears.wallpaper.set("#fdf6e3") +gears.wallpaper.set("#f5efdc") -- You can use your own layout icons like this: theme.layout_fairh = themes_path.."default/layouts/fairhw.png"