From f65c31d5fa888cee1199d0b51c1a5d42b0b7102b Mon Sep 17 00:00:00 2001 From: Pavle Portic Date: Fri, 6 May 2022 18:20:42 +0200 Subject: [PATCH] Template zshrc to add opitonal env vars --- .chezmoiignore | 1 + config_template.yaml | 19 +++++++++++++++++++ dot_config/i3/config.tmpl | 5 ++++- dot_zshrc => dot_zshrc.tmpl | 6 ++++-- 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 config_template.yaml rename dot_zshrc => dot_zshrc.tmpl (93%) diff --git a/.chezmoiignore b/.chezmoiignore index f6c1f94..8e2c424 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,3 +1,4 @@ LICENSE init.sh custom_colemak +config_template.yaml diff --git a/config_template.yaml b/config_template.yaml new file mode 100644 index 0000000..a88d7a6 --- /dev/null +++ b/config_template.yaml @@ -0,0 +1,19 @@ +data: + i3: + font_size: 13 + xrandr: '' + tray_output: '' + bumblebee: + modules: 'ytrssil' + parameters: >- + sensors.path="coretemp-isa-0000/Package id 0/temp1_input" + xresources: + rgba: + - rgba: rgb + dpi: 96 + roxterm: + font: + size: 14 + zshrc: + gdk_scale: '1.0' + env_vars: [] diff --git a/dot_config/i3/config.tmpl b/dot_config/i3/config.tmpl index 19d4bde..af2f09e 100644 --- a/dot_config/i3/config.tmpl +++ b/dot_config/i3/config.tmpl @@ -208,7 +208,8 @@ bar { position top tray_output none status_command ~/.local/share/bumblebee-status/bumblebee-status -m \ - spotify {{ .i3.bumblebee.modules }} \ + spotify \ + dunst {{ .i3.bumblebee.modules }} \ sensors \ layout \ pasource \ @@ -218,6 +219,8 @@ bar { -p workspacewheel=False \ pasource.showbars="1" \ pasink.showbars="1" \ + sensors.use_sensors="true" \ + sensors.json="true" \ {{ .i3.bumblebee.parameters }} \ date.format="%a, %Y-%m-%d" \ date.interval="30" \ diff --git a/dot_zshrc b/dot_zshrc.tmpl similarity index 93% rename from dot_zshrc rename to dot_zshrc.tmpl index 2639d1a..b666b81 100644 --- a/dot_zshrc +++ b/dot_zshrc.tmpl @@ -1,3 +1,4 @@ +# vim: set ft=zsh: # History HISTFILE=~/.histfile HISTSIZE=40000 @@ -55,8 +56,9 @@ export QT_QPA_PLATFORMTHEME="qt5ct" export VISUAL="nvim" export XDG_CONFIG_HOME="$HOME/.config" export VIRTUAL_ENV_DISABLE_PROMPT="true" -export GDK_DPI_SCALE=1.1 - +export GDK_DPI_SCALE={{ or .zshrc.gdk_scale "1.0" }} +{{ range $_, $env := .zshrc.env_vars }}export {{ $env.name }}={{ $env.value }} +{{end}} # Valve shader compiler export RADV_PERFTEST="aco"