This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.config/awesome/theme.lua

97 lines
3.4 KiB
Lua

local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()
local spawn = require("awful.spawn")
local utils = require("../utils")
local theme = {}
theme.font = "Terminess Powerline 8"
theme.colors = {}
theme.colors.base03 = "#fdf6e3"
theme.colors.base02 = "#eee8d5"
theme.colors.base01 = "#93a1a1"
theme.colors.base00 = "#839496"
theme.colors.base0 = "#657b83"
theme.colors.base1 = "#586e75"
theme.colors.base2 = "#073642"
theme.colors.base3 = "#002b36"
theme.colors.yellow = "#b58900"
theme.colors.orange = "#cb4b16"
theme.colors.red = "#dc322f"
theme.colors.magenta = "#d33682"
theme.colors.violet = "#6c71c4"
theme.colors.blue = "#268bd2"
theme.colors.cyan = "#2aa198"
theme.colors.green = "#859900"
theme.bg_normal = theme.colors.base3
theme.bg_focus = theme.colors.base2
theme.bg_urgent = theme.colors.red
theme.bg_minimize = "#303030"
theme.bg_systray = theme.bg_normal
theme.fg_normal = theme.colors.base02
theme.fg_focus = theme.colors.base03
theme.fg_urgent = theme.colors.base3
theme.fg_minimize = "#ffffff"
theme.taglist_font = "Unifont 10"
theme.taglist_bg_focus = theme.colors.green
theme.useless_gap = dpi(0)
theme.border_width = dpi(0)
theme.border_normal = "#000000"
theme.border_focus = "#535d6c"
theme.wibar_height = 21
theme.tasklist_disable_icon = true
-- Hotkeys popup (Mod+s)
theme.hotkeys_font = "Iosevka sbruder Bold 10"
theme.hotkeys_description_font = "Iosevka sbruder 10"
theme.hotkeys_modifiers_fg = theme.fg_normal
theme.wallpaper = function(s)
if utils.file_exists(utils.home() .. ".fehbg") then
spawn({utils.home() .. ".fehbg"})
end
end
-- Generate taglist squares:
local taglist_square_size = dpi(4)
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
taglist_square_size, theme.fg_normal
)
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
taglist_square_size, theme.fg_normal
)
-- You can use your own layout icons like this:
theme.layout_fairh = themes_path .. "default/layouts/fairhw.png"
theme.layout_fairv = themes_path .. "default/layouts/fairvw.png"
theme.layout_floating = themes_path .. "default/layouts/floatingw.png"
theme.layout_magnifier = themes_path .. "default/layouts/magnifierw.png"
theme.layout_max = themes_path .. "default/layouts/maxw.png"
theme.layout_fullscreen = themes_path .. "default/layouts/fullscreenw.png"
theme.layout_tilebottom = themes_path .. "default/layouts/tilebottomw.png"
theme.layout_tileleft = themes_path .. "default/layouts/tileleftw.png"
theme.layout_tile = themes_path .. "default/layouts/tilew.png"
theme.layout_tiletop = themes_path .. "default/layouts/tiletopw.png"
theme.layout_spiral = themes_path .. "default/layouts/spiralw.png"
theme.layout_dwindle = themes_path .. "default/layouts/dwindlew.png"
theme.layout_cornernw = themes_path .. "default/layouts/cornernww.png"
theme.layout_cornerne = themes_path .. "default/layouts/cornernew.png"
theme.layout_cornersw = themes_path .. "default/layouts/cornersww.png"
theme.layout_cornerse = themes_path .. "default/layouts/cornersew.png"
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80