ENH use switches in more places

This commit is contained in:
Nathan Dwarshuis 2022-07-21 00:03:41 -04:00
parent be9c472b7c
commit 7c01a7da04
9 changed files with 26 additions and 20 deletions

View File

@ -22,7 +22,7 @@ data:
xsane: {{ and $desktop (promptBool "xsane" false) }} xsane: {{ and $desktop (promptBool "xsane" false) }}
f5vpn: {{ and $desktop (promptBool "f5vpn" false) }} f5vpn: {{ and $desktop (promptBool "f5vpn" false) }}
seafile: {{ and $desktop (promptBool "seafile" false) }} seafile: {{ and $desktop (promptBool "seafile" false) }}
conky_alias: {{ and $desktop (promptString "conky" "null") }} conky_alias: {{ and $desktop (promptString "conky" "none") }}
development: development:
{{- /* emacs implies that most development options are true */}} {{- /* emacs implies that most development options are true */}}

View File

@ -10,10 +10,11 @@
.config/xmonad: .config/xmonad:
type: git-repo type: git-repo
url: https://github.com/ndwarshuis/xmonad-config.git url: https://github.com/ndwarshuis/xmonad-config.git
{{- end }}
{{- if ne .features.conky_alias "none" }}
.config/conky: .config/conky:
type: git-repo type: git-repo
url: https://github.com/ndwarshuis/universal-conky.git url: https://github.com/ndwarshuis/universal-conky.git
clone-args: --recurse-submodules
{{- end }} {{- end }}
{{- if .features.virtualbox }} {{- if .features.virtualbox }}
.config/xman: .config/xman:

View File

@ -6,15 +6,14 @@
!.config/python !.config/python
!.config/tmux !.config/tmux
!.config/zsh !.config/zsh
.config/zsh/.zprofile
.config/zsh/.zlogout
.local .local
{{- end }} {{- end }}
{{- if not .features.conky_alias }} {{ if ne .features.conky_alias "none" -}}
.config/conky.yml .symlinks/conky-configs
{{- end }} {{- end }}
# this is linked; allow VirtualBox to configure by itself {{ if not .features.virtualbox -}}
VirtualBox.xml .symlinks/VirtualBox.xml
{{- end }}

View File

@ -47,7 +47,7 @@ run_install_scripts() {
run_yay() { run_yay() {
# notifications # notifications
pkgs=(dunst) pkgs=(dunst papirus-icon-theme)
# gtk # gtk
pkgs+=(zuki-themes) pkgs+=(zuki-themes)
# sleep enhancement # sleep enhancement
@ -71,7 +71,9 @@ run_makepkg() {
{{ if .features.clevo -}} {{ if .features.clevo -}}
call_makepkg "clevo-xsm-wmi-dkms" call_makepkg "clevo-xsm-wmi-dkms"
{{- end }} {{- end }}
{{ if ne .features.conky_alias "none" -}}
call_makepkg "conky-lua" call_makepkg "conky-lua"
{{- end }}
call_makepkg "xkb-hypermode" call_makepkg "xkb-hypermode"
} }

View File

@ -2,5 +2,7 @@
feh --no-fehbg --bg-scale --bg-fill "$XDG_DATA_HOME/backgrounds/moon_forest.jpg" & feh --no-fehbg --bg-scale --bg-fill "$XDG_DATA_HOME/backgrounds/moon_forest.jpg" &
{{ if ne .features.conky_alias "none" -}}
killall conky > /dev/null 2>&1 killall conky > /dev/null 2>&1
conky -d > /dev/null 2>&1 conky -d > /dev/null 2>&1
{{- end }}

View File

@ -1,9 +0,0 @@
channels:
- conda-forge
- bioconda
envs_dirs:
- ~/.local/share/conda/envs
pkgs_dirs:
- ~/.local/share/conda/pkgs

View File

@ -0,0 +1,9 @@
channels:
- conda-forge
- bioconda
envs_dirs:
- {{ .paths.data }}/conda/envs
pkgs_dirs:
- {{ .paths.data }}/conda/pkgs

View File

@ -1,7 +1,7 @@
Config { Config {
maxHistoryLength = 100000, maxHistoryLength = 100000,
historyPath = "~/.cache/greenclip.history", historyPath = "{{ .paths.cache }}/greenclip.history",
staticHistoryPath = "~/.cache/greenclip.staticHistory", staticHistoryPath = "{{ .paths.cache }}/greenclip.staticHistory",
imageCachePath = "/tmp/greenclip/", imageCachePath = "/tmp/greenclip/",
usePrimarySelectionAsInput = False, usePrimarySelectionAsInput = False,
blacklistedApps = [], blacklistedApps = [],

View File

@ -1,4 +1,6 @@
{{ if .desktop -}}
initfile="$XDG_CONFIG_HOME/X11/xinitrc" initfile="$XDG_CONFIG_HOME/X11/xinitrc"
logfile="$XDG_DATA_HOME/X11/xinit.log" logfile="$XDG_DATA_HOME/X11/xinit.log"
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && \ [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && \
exec startx "$initfile" -- -keeptty > "$logfile" 2>&1 exec startx "$initfile" -- -keeptty > "$logfile" 2>&1
{{- end }}