initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{{- if eq .chezmoi.os "linux" -}}
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Update .Xresources
|
||||
|
||||
set -e
|
||||
[ "${CHEZMOI}" -eq 1 ] || exit 1
|
||||
|
||||
if ! command -v xrdb > /dev/null; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
xrdb -merge ~/.Xresources
|
||||
{{- end -}}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{{- if eq .chezmoi.os "linux" -}}
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
[ "${CHEZMOI}" -eq 1 ] || exit 1
|
||||
|
||||
if ! command -v fc-cache >/dev/null 2>&1; then
|
||||
exit 2
|
||||
fi
|
||||
|
||||
fc-cache -fv > /dev/null
|
||||
|
||||
# vim: syntax=bash ft=template
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Install software packages required on the system when the package file changes
|
||||
# packages.yaml hash: {{ include ".chezmoidata/packages.yaml" | sha256sum }}
|
||||
|
||||
set -e
|
||||
|
||||
[ "${CHEZMOI}" -eq 1 ] || exit 1
|
||||
|
||||
function install_yay_system_packages() {
|
||||
local PACKAGES=("$@")
|
||||
{{ if eq .chezmoi.osRelease.id "arch" -}}
|
||||
[ ${#PACKAGES[@]} -gt 0 ] && yay -S --needed "${PACKAGES[@]}"
|
||||
{{ end -}}
|
||||
}
|
||||
|
||||
declare -a yay_packages
|
||||
|
||||
{{ if eq .chezmoi.osRelease.id "arch" -}}
|
||||
{{ range .packages.arch.yay -}}
|
||||
yay_packages+=({{ . | quote}})
|
||||
{{ end -}}
|
||||
{{ if eq .cpu.intel true -}}
|
||||
{{ range .packages.arch.intel_cpu.yay -}}
|
||||
yay_packages+=({{ . | quote}})
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ if eq .gpu.intel_i915 true -}}
|
||||
{{ range .packages.arch.intel_graphics_i915.yay -}}
|
||||
yay_packages+=({{ . | quote}})
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
||||
install_yay_system_packages "${yay_packages[@]}"
|
||||
|
||||
# vim: ft=template syntax=bash
|
||||
@@ -0,0 +1,38 @@
|
||||
{{- if eq .chezmoi.os "linux" -}}
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Update gsettings parameters for GTK Styles / Theming
|
||||
|
||||
set -e
|
||||
[ "${CHEZMOI}" -eq 1 ] || exit 1
|
||||
|
||||
if ! command -v gsettings > /dev/null; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Set Font
|
||||
gsettings set org.gnome.desktop.interface font-name 'Inter 11'
|
||||
# Set color scheme
|
||||
gsettings set org.gnome.desktop.interface gtk-theme Colloid-Dark-Catppuccin
|
||||
# Set icon scheme
|
||||
gsettings set org.gnome.desktop.interface icon-theme Papirus-Dark
|
||||
# Prefer dark mode
|
||||
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
|
||||
# Set cursor scheme
|
||||
gsettings set org.gnome.desktop.interface cursor-theme Breeze_Light
|
||||
gsettings set org.gnome.desktop.interface cursor-size 24
|
||||
# Set default terminal
|
||||
gsettings set org.gnome.desktop.default-applications.terminal exec 'kitty'
|
||||
gsettings set org.gnome.desktop.default-applications.terminal exec-arg ''
|
||||
gsettings set org.cinnamon.desktop.default-applications.terminal exec 'kitty'
|
||||
gsettings set org.cinnamon.desktop.default-applications.terminal exec-arg ''
|
||||
# Ugly hack to convince gio's hard-coded terminal list to use kitty
|
||||
sudo ln -sf /usr/bin/kitty /usr/local/bin/xdg-terminal-exec
|
||||
# Allow keyboard shortcuts to be changed by ~/.gnome2/accels/nemo
|
||||
gsettings set org.cinnamon.desktop.interface can-change-accels true
|
||||
gsettings set org.gnome.desktop.interface can-change-accels true
|
||||
# Font hinting
|
||||
gsettings set org.gnome.desktop.interface font-hinting 'slight'
|
||||
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user