mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2025-01-05 20:14:03 +01:00
get closer to world domination using confgen
This commit is contained in:
parent
3761fcf510
commit
878fa57567
15 changed files with 35 additions and 21 deletions
|
@ -6,7 +6,7 @@ env:
|
|||
|
||||
font:
|
||||
normal:
|
||||
family: "Iosevka Term Nerd Font Mono"
|
||||
family: "<% opt.term_font %>"
|
||||
|
||||
bell:
|
||||
duration: 20
|
|
@ -1,7 +1,7 @@
|
|||
[Settings]
|
||||
gtk-theme-name=Dracula
|
||||
gtk-icon-theme-name=candy-icons
|
||||
gtk-font-name=Iosevka Nerd Font 11
|
||||
gtk-font-name=<% opt.font %> 11
|
||||
gtk-cursor-theme-name=LyraQ-cursors
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
|
@ -1,7 +1,7 @@
|
|||
[Settings]
|
||||
gtk-theme-name=Dracula
|
||||
gtk-icon-theme-name=candy-icons
|
||||
gtk-font-name=Iosevka Nerd Font 11
|
||||
gtk-font-name=<% opt.font %> 11
|
||||
gtk-cursor-theme-name=LyraQ-cursors
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-enable-event-sounds=1
|
11
.config/i3/config → .config/i3/config.cgt
Executable file → Normal file
11
.config/i3/config → .config/i3/config.cgt
Executable file → Normal file
|
@ -1,10 +1,3 @@
|
|||
# This file has been auto-generated by i3-config-wizard(1).
|
||||
# It will not be overwritten, so edit it as you like.
|
||||
#
|
||||
# Should you change your keyboard layout some time, delete
|
||||
# this file and re-run i3-config-wizard(1).
|
||||
#
|
||||
|
||||
# i3 config file (v4)
|
||||
#
|
||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
@ -13,7 +6,7 @@ set $mod Mod4
|
|||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
font pango:Iosevka Nerd Font 10
|
||||
font pango:<% opt.font %> 10
|
||||
|
||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||
|
@ -267,7 +260,7 @@ client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
|
|||
client.background #F8F8F2
|
||||
|
||||
bar {
|
||||
font pango:Iosevka Term Nerd Font Mono 12
|
||||
font pango:<% opt.term_font %> 12
|
||||
mode hide
|
||||
position top
|
||||
status_command i3status-rs
|
|
@ -1,4 +1,4 @@
|
|||
font_family Iosevka Term Nerd Font Mono
|
||||
font_family <% opt.term_font %>
|
||||
background_opacity 0.8
|
||||
|
||||
# https://draculatheme.com/kitty
|
|
@ -15,7 +15,7 @@ local dracula = {
|
|||
local theme = {}
|
||||
|
||||
-- Default settings
|
||||
theme.font = "12px Iosevka Nerd Font"
|
||||
theme.font = "12px <% opt.font %>"
|
||||
theme.fg = dracula.fg
|
||||
theme.bg = dracula.bg
|
||||
|
||||
|
@ -89,7 +89,7 @@ theme.trust_fg = dracula.green
|
|||
theme.notrust_fg = dracula.red
|
||||
|
||||
-- Follow mode hints
|
||||
theme.hint_font = "12px Iosevka Nerd Font, monospace, courier, sans-serif"
|
||||
theme.hint_font = "12px <% opt.font %>, monospace, courier, sans-serif"
|
||||
theme.hint_fg = dracula.fg
|
||||
theme.hint_bg = dracula.very_bright_bg
|
||||
theme.hint_border = "2px dashed " .. dracula.green
|
|
@ -1,6 +1,6 @@
|
|||
local settings = require "settings"
|
||||
|
||||
local font_family = "Iosevka Nerd Font"
|
||||
local font_family = "<% opt.font %>"
|
||||
|
||||
settings.application.prefer_dark_mode = true
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
configuration {
|
||||
/* requires rofi-emoji */
|
||||
modi: "window,drun,combi,emoji,nheko";
|
||||
font: "Iosevka Nerd Font 12";
|
||||
font: "<% opt.font %> 12";
|
||||
show-icons: true;
|
||||
icon-theme: "candy-icons";
|
||||
combi-modi: "drun,nheko,window,run";
|
|
@ -34,7 +34,7 @@
|
|||
params: ScrollingTextBlock((
|
||||
color: Color(hex: "#8be9fd"),
|
||||
ellipsize: End,
|
||||
font: "Iosevka Nerd Font Bold 12",
|
||||
font: "<% opt.font %> Bold 12",
|
||||
lhs_dist: 25.0,
|
||||
padding: Padding(left: 8.0, right: 8.0, top: 8.0, bottom: 4.0),
|
||||
rhs_dist: 25.0,
|
||||
|
@ -54,7 +54,7 @@
|
|||
text: "%b",
|
||||
color: Color(hex: "#f8f8f2"),
|
||||
ellipsize: End,
|
||||
font: "Iosevka Nerd Font Bold 12",
|
||||
font: "<% opt.font %> Bold 12",
|
||||
padding: Padding(left: 8.0, right: 8.0, top: 0.0, bottom: 8.0),
|
||||
dimensions: (
|
||||
width: (min: 500, max: 500),
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
# confgen output
|
||||
cgout
|
|
@ -80,7 +80,7 @@ element-text {
|
|||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
font: "Iosevka Nerd Font Mono 24px";
|
||||
font: "<% opt.font %> 24px";
|
||||
}
|
||||
element selected normal {
|
||||
background-color: @blue;
|
|
@ -3,7 +3,8 @@
|
|||
"Lua.diagnostics.globals": [
|
||||
"vim",
|
||||
"luakit",
|
||||
"lfs"
|
||||
"lfs",
|
||||
"cg"
|
||||
],
|
||||
"Lua.workspace.library": [
|
||||
"${3rd}/lfs/library"
|
||||
|
|
6
cg_opts.lua
Normal file
6
cg_opts.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
local opts = {}
|
||||
|
||||
opts.font = "Iosevka Nerd Font"
|
||||
opts.term_font = "Iosevka Term Nerd Font Mono"
|
||||
|
||||
return opts
|
8
confgen.lua
Normal file
8
confgen.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
cg.addPath ".config"
|
||||
cg.addPath ".local"
|
||||
cg.addPath ".ssh"
|
||||
cg.addPath ".cargo"
|
||||
|
||||
for k, v in pairs(require "cg_opts") do
|
||||
cg.opt[k] = v
|
||||
end
|
4
justfile
4
justfile
|
@ -45,3 +45,7 @@ setup-nvim-config: install-mzte-nv
|
|||
rm -rf ~/.config/nvim
|
||||
cp -r mzte-nv/conf ~/.config/nvim
|
||||
mzte-nv-compile ~/.config/nvim
|
||||
|
||||
confgen:
|
||||
rm -rf cgout
|
||||
confgen cgout
|
||||
|
|
Loading…
Reference in a new issue