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:
|
font:
|
||||||
normal:
|
normal:
|
||||||
family: "Iosevka Term Nerd Font Mono"
|
family: "<% opt.term_font %>"
|
||||||
|
|
||||||
bell:
|
bell:
|
||||||
duration: 20
|
duration: 20
|
|
@ -1,7 +1,7 @@
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-theme-name=Dracula
|
gtk-theme-name=Dracula
|
||||||
gtk-icon-theme-name=candy-icons
|
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-name=LyraQ-cursors
|
||||||
gtk-cursor-theme-size=0
|
gtk-cursor-theme-size=0
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
|
@ -1,7 +1,7 @@
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-theme-name=Dracula
|
gtk-theme-name=Dracula
|
||||||
gtk-icon-theme-name=candy-icons
|
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-name=LyraQ-cursors
|
||||||
gtk-cursor-theme-size=0
|
gtk-cursor-theme-size=0
|
||||||
gtk-enable-event-sounds=1
|
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)
|
# i3 config file (v4)
|
||||||
#
|
#
|
||||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
# 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
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# 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
|
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
# 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
|
client.background #F8F8F2
|
||||||
|
|
||||||
bar {
|
bar {
|
||||||
font pango:Iosevka Term Nerd Font Mono 12
|
font pango:<% opt.term_font %> 12
|
||||||
mode hide
|
mode hide
|
||||||
position top
|
position top
|
||||||
status_command i3status-rs
|
status_command i3status-rs
|
|
@ -1,4 +1,4 @@
|
||||||
font_family Iosevka Term Nerd Font Mono
|
font_family <% opt.term_font %>
|
||||||
background_opacity 0.8
|
background_opacity 0.8
|
||||||
|
|
||||||
# https://draculatheme.com/kitty
|
# https://draculatheme.com/kitty
|
|
@ -15,7 +15,7 @@ local dracula = {
|
||||||
local theme = {}
|
local theme = {}
|
||||||
|
|
||||||
-- Default settings
|
-- Default settings
|
||||||
theme.font = "12px Iosevka Nerd Font"
|
theme.font = "12px <% opt.font %>"
|
||||||
theme.fg = dracula.fg
|
theme.fg = dracula.fg
|
||||||
theme.bg = dracula.bg
|
theme.bg = dracula.bg
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ theme.trust_fg = dracula.green
|
||||||
theme.notrust_fg = dracula.red
|
theme.notrust_fg = dracula.red
|
||||||
|
|
||||||
-- Follow mode hints
|
-- 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_fg = dracula.fg
|
||||||
theme.hint_bg = dracula.very_bright_bg
|
theme.hint_bg = dracula.very_bright_bg
|
||||||
theme.hint_border = "2px dashed " .. dracula.green
|
theme.hint_border = "2px dashed " .. dracula.green
|
|
@ -1,6 +1,6 @@
|
||||||
local settings = require "settings"
|
local settings = require "settings"
|
||||||
|
|
||||||
local font_family = "Iosevka Nerd Font"
|
local font_family = "<% opt.font %>"
|
||||||
|
|
||||||
settings.application.prefer_dark_mode = true
|
settings.application.prefer_dark_mode = true
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
configuration {
|
configuration {
|
||||||
/* requires rofi-emoji */
|
/* requires rofi-emoji */
|
||||||
modi: "window,drun,combi,emoji,nheko";
|
modi: "window,drun,combi,emoji,nheko";
|
||||||
font: "Iosevka Nerd Font 12";
|
font: "<% opt.font %> 12";
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
icon-theme: "candy-icons";
|
icon-theme: "candy-icons";
|
||||||
combi-modi: "drun,nheko,window,run";
|
combi-modi: "drun,nheko,window,run";
|
|
@ -34,7 +34,7 @@
|
||||||
params: ScrollingTextBlock((
|
params: ScrollingTextBlock((
|
||||||
color: Color(hex: "#8be9fd"),
|
color: Color(hex: "#8be9fd"),
|
||||||
ellipsize: End,
|
ellipsize: End,
|
||||||
font: "Iosevka Nerd Font Bold 12",
|
font: "<% opt.font %> Bold 12",
|
||||||
lhs_dist: 25.0,
|
lhs_dist: 25.0,
|
||||||
padding: Padding(left: 8.0, right: 8.0, top: 8.0, bottom: 4.0),
|
padding: Padding(left: 8.0, right: 8.0, top: 8.0, bottom: 4.0),
|
||||||
rhs_dist: 25.0,
|
rhs_dist: 25.0,
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
text: "%b",
|
text: "%b",
|
||||||
color: Color(hex: "#f8f8f2"),
|
color: Color(hex: "#f8f8f2"),
|
||||||
ellipsize: End,
|
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),
|
padding: Padding(left: 8.0, right: 8.0, top: 0.0, bottom: 8.0),
|
||||||
dimensions: (
|
dimensions: (
|
||||||
width: (min: 500, max: 500),
|
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;
|
background-color: inherit;
|
||||||
text-color: inherit;
|
text-color: inherit;
|
||||||
vertical-align: 0.5;
|
vertical-align: 0.5;
|
||||||
font: "Iosevka Nerd Font Mono 24px";
|
font: "<% opt.font %> 24px";
|
||||||
}
|
}
|
||||||
element selected normal {
|
element selected normal {
|
||||||
background-color: @blue;
|
background-color: @blue;
|
|
@ -3,7 +3,8 @@
|
||||||
"Lua.diagnostics.globals": [
|
"Lua.diagnostics.globals": [
|
||||||
"vim",
|
"vim",
|
||||||
"luakit",
|
"luakit",
|
||||||
"lfs"
|
"lfs",
|
||||||
|
"cg"
|
||||||
],
|
],
|
||||||
"Lua.workspace.library": [
|
"Lua.workspace.library": [
|
||||||
"${3rd}/lfs/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
|
rm -rf ~/.config/nvim
|
||||||
cp -r mzte-nv/conf ~/.config/nvim
|
cp -r mzte-nv/conf ~/.config/nvim
|
||||||
mzte-nv-compile ~/.config/nvim
|
mzte-nv-compile ~/.config/nvim
|
||||||
|
|
||||||
|
confgen:
|
||||||
|
rm -rf cgout
|
||||||
|
confgen cgout
|
||||||
|
|
Loading…
Reference in a new issue