Add awesomewm conf

This commit is contained in:
Jeff Lance 2022-01-10 21:18:11 +01:00
parent bd32581b1b
commit 52b26e32e6
2 changed files with 41 additions and 41 deletions

View File

@ -46,10 +46,10 @@ end
-- {{{ Variable definitions -- {{{ Variable definitions
-- Themes define colours, icons, font and wallpapers. -- Themes define colours, icons, font and wallpapers.
-- beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") -- beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
beautiful.init(gears.filesystem.get_xdg_config_home() .. "themes/zatichi/theme.lua") beautiful.init(gears.filesystem.get_xdg_config_home() .. "awesome/themes/zatichi/theme.lua")
-- 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 = "xfce4-terminal" terminal = "termite"
editor = os.getenv("EDITOR") or "nano" editor = os.getenv("EDITOR") or "nano"
editor_cmd = terminal .. " -e " .. editor editor_cmd = terminal .. " -e " .. editor
@ -562,4 +562,4 @@ end)
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end) client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}} -- }}}

View File

@ -7,11 +7,11 @@ local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem") local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir() local themes_path = gfs.get_configuration_dir().."themes/"
local theme = {} local theme = {}
theme.font = "sans 8" theme.font = "source code pro bold 11"
theme.bg_normal = "#222222" theme.bg_normal = "#222222"
theme.bg_focus = "#535d6c" theme.bg_focus = "#535d6c"
@ -71,51 +71,51 @@ theme.menu_width = dpi(100)
--theme.bg_widget = "#cc0000" --theme.bg_widget = "#cc0000"
-- Define the image to load -- Define the image to load
theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png" theme.titlebar_close_button_normal = themes_path.."zatichi/titlebar/close_normal.png"
theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png" theme.titlebar_close_button_focus = themes_path.."zatichi/titlebar/close_focus.png"
theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png" theme.titlebar_minimize_button_normal = themes_path.."zatichi/titlebar/minimize_normal.png"
theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png" theme.titlebar_minimize_button_focus = themes_path.."zatichi/titlebar/minimize_focus.png"
theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png" theme.titlebar_ontop_button_normal_inactive = themes_path.."zatichi/titlebar/ontop_normal_inactive.png"
theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png" theme.titlebar_ontop_button_focus_inactive = themes_path.."zatichi/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png" theme.titlebar_ontop_button_normal_active = themes_path.."zatichi/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png" theme.titlebar_ontop_button_focus_active = themes_path.."zatichi/titlebar/ontop_focus_active.png"
theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png" theme.titlebar_sticky_button_normal_inactive = themes_path.."zatichi/titlebar/sticky_normal_inactive.png"
theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png" theme.titlebar_sticky_button_focus_inactive = themes_path.."zatichi/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png" theme.titlebar_sticky_button_normal_active = themes_path.."zatichi/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png" theme.titlebar_sticky_button_focus_active = themes_path.."zatichi/titlebar/sticky_focus_active.png"
theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png" theme.titlebar_floating_button_normal_inactive = themes_path.."zatichi/titlebar/floating_normal_inactive.png"
theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png" theme.titlebar_floating_button_focus_inactive = themes_path.."zatichi/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png" theme.titlebar_floating_button_normal_active = themes_path.."zatichi/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png" theme.titlebar_floating_button_focus_active = themes_path.."zatichi/titlebar/floating_focus_active.png"
theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png" theme.titlebar_maximized_button_normal_inactive = themes_path.."zatichi/titlebar/maximized_normal_inactive.png"
theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png" theme.titlebar_maximized_button_focus_inactive = themes_path.."zatichi/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png" theme.titlebar_maximized_button_normal_active = themes_path.."zatichi/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png" theme.titlebar_maximized_button_focus_active = themes_path.."zatichi/titlebar/maximized_focus_active.png"
theme.wallpaper = themes_path.."zatichi/background.jpg" theme.wallpaper = themes_path.."zatichi/background.jpg"
-- You can use your own layout icons like this: -- You can use your own layout icons like this:
theme.layout_fairh = themes_path.."default/layouts/fairhw.png" theme.layout_fairh = themes_path.."zatichi/layouts/fairhw.png"
theme.layout_fairv = themes_path.."default/layouts/fairvw.png" theme.layout_fairv = themes_path.."zatichi/layouts/fairvw.png"
theme.layout_floating = themes_path.."default/layouts/floatingw.png" theme.layout_floating = themes_path.."zatichi/layouts/floatingw.png"
theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png" theme.layout_magnifier = themes_path.."zatichi/layouts/magnifierw.png"
theme.layout_max = themes_path.."default/layouts/maxw.png" theme.layout_max = themes_path.."zatichi/layouts/maxw.png"
theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png" theme.layout_fullscreen = themes_path.."zatichi/layouts/fullscreenw.png"
theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png" theme.layout_tilebottom = themes_path.."zatichi/layouts/tilebottomw.png"
theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png" theme.layout_tileleft = themes_path.."zatichi/layouts/tileleftw.png"
theme.layout_tile = themes_path.."default/layouts/tilew.png" theme.layout_tile = themes_path.."zatichi/layouts/tilew.png"
theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png" theme.layout_tiletop = themes_path.."zatichi/layouts/tiletopw.png"
theme.layout_spiral = themes_path.."default/layouts/spiralw.png" theme.layout_spiral = themes_path.."zatichi/layouts/spiralw.png"
theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png" theme.layout_dwindle = themes_path.."zatichi/layouts/dwindlew.png"
theme.layout_cornernw = themes_path.."default/layouts/cornernww.png" theme.layout_cornernw = themes_path.."zatichi/layouts/cornernww.png"
theme.layout_cornerne = themes_path.."default/layouts/cornernew.png" theme.layout_cornerne = themes_path.."zatichi/layouts/cornernew.png"
theme.layout_cornersw = themes_path.."default/layouts/cornersww.png" theme.layout_cornersw = themes_path.."zatichi/layouts/cornersww.png"
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png" theme.layout_cornerse = themes_path.."zatichi/layouts/cornersew.png"
-- Generate Awesome icon: -- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon( theme.awesome_icon = theme_assets.awesome_icon(