Compare commits

...

3 Commits

4 changed files with 37 additions and 19 deletions

View File

@ -51,7 +51,20 @@ end
-- {{{ Variable definitions -- {{{ Variable definitions
-- Themes define colours, icons, font and wallpapers. -- Themes define colours, icons, font and wallpapers.
local function read_theme()
local theme = "theme_dark.lua" local theme = "theme_dark.lua"
local f = io.open(os.getenv('HOME') .. '/.config/alacritty/alacritty.toml')
if f then
if string.find(f:read('*all'), 'light') then
theme = 'theme_light.lua'
end
f:close()
return theme
end
end
local theme = read_theme()
beautiful.init(gears.filesystem.get_configuration_dir() .. theme) beautiful.init(gears.filesystem.get_configuration_dir() .. theme)
local function set_wallpaper(s) local function set_wallpaper(s)

View File

@ -5,22 +5,22 @@ local dpi = xresources.apply_dpi
local theme = {} local theme = {}
theme.font = "Fira Code Nerd Font 10.5" theme.font = "Fira Code Nerd Font 10"
theme.tasklist_disable_icon = true theme.tasklist_disable_icon = true
theme.wibar_height = 40 theme.wibar_height = 40
theme.bg_normal = "#283538" theme.bg_normal = "#293d38" -- hsl(165deg 20% 20%)
theme.bg_focus = "#36537d" -- hsl(215deg 40% 35%) theme.bg_focus = "#478575" -- hsl(165deg 30% 40%)
theme.bg_urgent = "#d8aeb5" theme.bg_urgent = "#5c3d45" -- hsl(345deg 20% 30%)
theme.bg_minimize = "#363e49" -- hsl(215deg 15% 25%) theme.bg_minimize = "#363e49" -- hsl(215deg 15% 25%)
theme.bg_systray = theme.bg_normal theme.bg_systray = theme.bg_normal
theme.tasklist_bg_focus = "#263c59" -- hsl(215deg 40% 25%) theme.tasklist_bg_focus = "#3d5c54" -- hsl(165deg 20% 30%)
theme.fg_normal = "#9ea7aa" theme.fg_normal = "#a9d6ca" -- hsl(165deg 35% 75%)"
theme.fg_focus = "#b1babd" theme.fg_focus = "#b1babd"
theme.fg_urgent = theme.bg_focus theme.fg_urgent = theme.bg_focus
theme.fg_minimize = "#8a9294" theme.fg_minimize = "#8a9294"
theme.taglist_fg_empty = "#798082" theme.taglist_fg_empty = "#62847b" -- hsl(165deg 15% 45%)"
theme.useless_gap = dpi(1) theme.useless_gap = dpi(1)
theme.border_width = dpi(2) theme.border_width = dpi(2)

View File

@ -5,22 +5,22 @@ local dpi = xresources.apply_dpi
local theme = {} local theme = {}
theme.font = "Fira Code Nerd Font 10.5" theme.font = "Fira Code Nerd Font 10"
theme.tasklist_disable_icon = true theme.tasklist_disable_icon = true
theme.wibar_height = 40 theme.wibar_height = 40
theme.bg_normal = "#283538" theme.bg_normal = "#293d38" -- hsl(165deg 20% 20%)
theme.bg_focus = "#82a0c9" -- hsl(215deg 40% 65%) theme.bg_focus = "#a9d6ca" -- hsl(165deg 35% 75%)
theme.bg_urgent = "#d0426a" theme.bg_urgent = "#bc8f9b" -- hsl(345deg 25% 65%)
theme.bg_minimize = "#7b899d" -- hsl(215deg 15% 55%) theme.bg_minimize = "#62847b" -- hsl(165deg 15% 45%)
theme.bg_systray = theme.bg_normal theme.bg_systray = theme.bg_normal
theme.tasklist_bg_focus = "#5e85ba" -- hsl(215deg 40% 55%) theme.tasklist_bg_focus = "#8fbcb1" -- hsl(165deg 25% 65%)
theme.fg_normal = "#616c6f" theme.fg_normal = "#a9d6ca" -- hsl(165deg 35% 75%)"
theme.fg_focus = "#363d3e" theme.fg_focus = "#363d3e"
theme.fg_urgent = "#e9f2f5" theme.fg_urgent = "#e9f2f5"
theme.fg_minimize = "#4b5456" theme.fg_minimize = "#4b5456"
theme.taglist_fg_empty = "#566063" theme.taglist_fg_empty = "#62847b" -- hsl(165deg 15% 45%)"
theme.useless_gap = dpi(1) theme.useless_gap = dpi(1)
theme.border_width = dpi(2) theme.border_width = dpi(2)

View File

@ -19,13 +19,19 @@ plug "zsh-users/zsh-autosuggestions"
plug "zsh-users/zsh-syntax-highlighting" plug "zsh-users/zsh-syntax-highlighting"
plug "MichaelAquilina/zsh-you-should-use" plug "MichaelAquilina/zsh-you-should-use"
plug "zsh-users/zsh-history-substring-search" plug "zsh-users/zsh-history-substring-search"
if which zoxide > /dev/null; then
eval "$(zoxide init --cmd cd zsh)"
else
plug "agkozak/zsh-z" plug "agkozak/zsh-z"
ZSHZ_ECHO=1
setopt autocd
fi
ZVM_VI_INSERT_ESCAPE_BINDKEY=jj ZVM_VI_INSERT_ESCAPE_BINDKEY=jj
ZSH_HIGHLIGHT_STYLES[comment]=fg=blue ZSH_HIGHLIGHT_STYLES[comment]=fg=blue
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND=bg=magenta,fg=black,bold HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND=bg=magenta,fg=black,bold
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND=bg=red,fg=black,bold HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND=bg=red,fg=black,bold
ZSHZ_ECHO=1
bindkey '^[[A' history-substring-search-up bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down bindkey '^[[B' history-substring-search-down
@ -66,7 +72,6 @@ setopt share_history
# Convenience. # Convenience.
setopt autocd
bindkey -M vicmd '^[h' run-help bindkey -M vicmd '^[h' run-help
bindkey -M viins '^[h' run-help bindkey -M viins '^[h' run-help