Change brightness keys, off color background

This commit is contained in:
buffet 2022-05-02 08:28:16 +00:00
parent 6134736765
commit 21f8f22882
4 changed files with 18 additions and 11 deletions

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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"