use .hosttype for conditions
This commit is contained in:
parent
b86adbe790
commit
dcfb6648d1
@ -7,7 +7,7 @@ README.md
|
|||||||
.config/tmux/bootstraps # note that the pattern is not `dot_config/tmux/bootstraps`
|
.config/tmux/bootstraps # note that the pattern is not `dot_config/tmux/bootstraps`
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if (and (ne .chezmoi.hostname "arch") (ne .chezmoi.hostname "buzz")) }}
|
{{- if (not (eq .hosttype "desktop" "laptop")) }}
|
||||||
.config/alacritty
|
.config/alacritty
|
||||||
.config/conky
|
.config/conky
|
||||||
.config/dunst
|
.config/dunst
|
||||||
|
@ -45,9 +45,9 @@ shape = "Block"
|
|||||||
TERM = "xterm-256color"
|
TERM = "xterm-256color"
|
||||||
|
|
||||||
[font]
|
[font]
|
||||||
{{- if eq .chezmoi.hostname "arch" }}
|
{{- if eq .hosttype "desktop" }}
|
||||||
size = 7.5
|
size = 7.5
|
||||||
{{- else if eq .chezmoi.hostname "buzz" }}
|
{{- else if eq .hosttype "laptop" }}
|
||||||
size = 5.5
|
size = 5.5
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ vim.cmd(':ca mkdir. call mkdir(expand("%:p:h"), "p")')
|
|||||||
vim.cmd(':ca W! w !sudo -A tee %')
|
vim.cmd(':ca W! w !sudo -A tee %')
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if (or (eq .chezmoi.hostname "arch") (eq .chezmoi.hostname "buzz")) }}
|
{{- if (and (eq .hosttype "desktop" "laptop") (eq .chezmoi.os "linux")) }}
|
||||||
vim.cmd([[ autocmd InsertLeave * call system("fcitx5-remote -c") ]])
|
vim.cmd([[ autocmd InsertLeave * call system("fcitx5-remote -c") ]])
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ truncate_to_repo = false
|
|||||||
truncation_symbol = ""
|
truncation_symbol = ""
|
||||||
format = "[$path]($style)[$read_only]($read_only_style) "
|
format = "[$path]($style)[$read_only]($read_only_style) "
|
||||||
|
|
||||||
{{- if (or (eq .chezmoi.hostname "arch") (eq .chezmoi.hostname "buzz")) }}
|
{{- if eq .hosttype "desktop" "laptop" }}
|
||||||
[directory.substitutions]
|
[directory.substitutions]
|
||||||
"/mnt/" = " "
|
"/mnt/" = " "
|
||||||
"~/dev/" = ""
|
"~/dev/" = ""
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# 256 color
|
# 256 color
|
||||||
{{- if (or (eq .chezmoi.hostname "arch") (eq .chezmoi.hostname "buzz")) }}
|
{{- if eq .hosttype "desktop" "laptop" }}
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
@ -83,7 +83,7 @@ bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
|||||||
# Aesthetic
|
# Aesthetic
|
||||||
###########################
|
###########################
|
||||||
|
|
||||||
{{- if (or (eq .chezmoi.hostname "arch") (eq .chezmoi.hostname "buzz")) }}
|
{{- if eq .hosttype "desktop" "laptop" }}
|
||||||
set -g pane-active-border-style fg=yellow
|
set -g pane-active-border-style fg=yellow
|
||||||
set -g message-command-style 'fg=#eeeeee bg=#333333 bold'
|
set -g message-command-style 'fg=#eeeeee bg=#333333 bold'
|
||||||
set -g message-style 'fg=#eeeeee bg=#333333 bold'
|
set -g message-style 'fg=#eeeeee bg=#333333 bold'
|
||||||
@ -114,7 +114,7 @@ set -g window-status-current-format ''
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{- if (or (eq .chezmoi.hostname "arch") (eq .chezmoi.hostname "buzz")) }}
|
{{- if eq .hosttype "desktop" "laptop" }}
|
||||||
###############################################
|
###############################################
|
||||||
# local and nested remote tmux sessions
|
# local and nested remote tmux sessions
|
||||||
# - https://www.freecodecamp.org/news/tmux-in-practice-local-and-nested-remote-tmux-sessions-4f7ba5db8795/
|
# - https://www.freecodecamp.org/news/tmux-in-practice-local-and-nested-remote-tmux-sessions-4f7ba5db8795/
|
||||||
|
Loading…
Reference in New Issue
Block a user