Update 9 files

- /home/dot_local/bin/run_onchange_ensure-executable.tmpl
- /home/dot_local/share/ansible/run_onchange_after_symlink-ansible-configs.tmpl
- /home/dot_ssh/run_onchanges_after_ensure-private-key.tmpl
- /home/dot_ssh/run_onchanges_after_generate-public-keys.tmpl
- /home/Library/Fonts/run_onchange_after_add-fonts.tmpl
- /system/usr/share/run_onchange_after_setup-share-folder
- /system/usr/local/share/run_onchange_after_setup-share-folder
- /system/var/log/user/run_onchange_after-symlink-user-logs
- /system/etc/default/modify_grub
This commit is contained in:
Brian Zalewski 2022-12-25 09:09:00 +00:00
parent 6b2a8833d6
commit e58f91cb9e
9 changed files with 23 additions and 6 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
{{- includeTemplate "universal/logg" }} {{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
{{ $fontFiles := (output "find" (joinPath .chezmoi.homeDir ".local" "share" "fonts") "-type" "f") -}} {{ $fontFiles := (output "find" (joinPath .chezmoi.homeDir ".local" "share" "fonts") "-type" "f") -}}
{{- range $fontFile := splitList "\n" $fontFiles -}} {{- range $fontFile := splitList "\n" $fontFiles -}}

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
{{- includeTemplate "universal/profile" }} {{ includeTemplate "universal/profile" }}
{{- includeTemplate "universal/logg" }} {{ includeTemplate "universal/logg" }}
{{ $exeFiles := (output "find" (joinPath .chezmoi.homeDir ".local" "bin") "-mindepth" "1" "-maxdepth" "1" "-type" "f") -}} {{ $exeFiles := (output "find" (joinPath .chezmoi.homeDir ".local" "bin") "-mindepth" "1" "-maxdepth" "1" "-type" "f") -}}
{{- range $exeFile := splitList "\n" $exeFiles -}} {{- range $exeFile := splitList "\n" $exeFiles -}}

View file

@ -1,5 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
### Symlink the variables / files / inventories to ~/.config/ansible folders if they are present ### Symlink the variables / files / inventories to ~/.config/ansible folders if they are present
### i.e. Changes to upstream will not impact the play if your configuration files are stored locally ### i.e. Changes to upstream will not impact the play if your configuration files are stored locally
for TARGET in "files" "group_vars" "host_vars" "inventories" "templates"; do for TARGET in "files" "group_vars" "host_vars" "inventories" "templates"; do

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
{{- includeTemplate "universal/logg" }} {{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
### Ensure id_rsa is present and create one if it does not exist ### Ensure id_rsa is present and create one if it does not exist
if [ ! -f "$HOME/.ssh/id_rsa" ]; then if [ ! -f "$HOME/.ssh/id_rsa" ]; then

View file

@ -7,8 +7,8 @@
{{ end -}} {{ end -}}
{{- end }} {{- end }}
{{- includeTemplate "universal/profile" }} {{ includeTemplate "universal/profile" }}
{{- includeTemplate "universal/logg" }} {{ includeTemplate "universal/logg" }}
logg info 'Ensuring RSA public keys are present' logg info 'Ensuring RSA public keys are present'

View file

@ -1,5 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
SCREEN_WIDTH="$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1)" SCREEN_WIDTH="$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1)"
SCREEN_HEIGHT="$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2)" SCREEN_HEIGHT="$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2)"
SCREEN_RATIO="$(awk -v height={{ screen_height.stdout }} -v width={{ screen_width.stdout }} 'BEGIN { print ((height / width) * 1000) }')" SCREEN_RATIO="$(awk -v height={{ screen_height.stdout }} -v width={{ screen_width.stdout }} 'BEGIN { print ((height / width) * 1000) }')"

View file

@ -1,5 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
logg info 'Ensure /usr/local/share is a directory' logg info 'Ensure /usr/local/share is a directory'
sudo mkdir -p /usr/local/share sudo mkdir -p /usr/local/share

View file

@ -1,5 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
logg info 'Ensure /usr/local/share/grub/themes is a directory' logg info 'Ensure /usr/local/share/grub/themes is a directory'
sudo mkdir -p /usr/local/share/grub/themes sudo mkdir -p /usr/local/share/grub/themes

View file

@ -2,6 +2,9 @@
# home directories: {{ output ("find" .host.homeParentFolder "-maxdepth" "1" "-type" "d" "|" "xargs" "echo") }} # home directories: {{ output ("find" .host.homeParentFolder "-maxdepth" "1" "-type" "d" "|" "xargs" "echo") }}
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
find /home -maxdepth 1 -type d | while read HOME_DIR; do find /home -maxdepth 1 -type d | while read HOME_DIR; do
USER_FOLDER="$(echo "$HOME_DIR" | sed 's/\/\([^\/]*\)/\1/')" USER_FOLDER="$(echo "$HOME_DIR" | sed 's/\/\([^\/]*\)/\1/')"
if [ ! -d "/var/log/user/$USER_FOLDER" ] && [ -d "$HOME_DIR/.local/log" ]; then if [ ! -d "/var/log/user/$USER_FOLDER" ] && [ -d "$HOME_DIR/.local/log" ]; then