Update 3 files
- /home/.chezmoiscripts/universal/run_onchange_after_5-log-config.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_4-environment-profile.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_64-grub-settings.tmpl
This commit is contained in:
parent
e0d752a99d
commit
c072b46911
3 changed files with 13 additions and 9 deletions
|
@ -6,8 +6,8 @@
|
|||
|
||||
### Ensure QT_STYLE_OVERRIDE is set in /etc/environment
|
||||
logg info 'Ensuring QT_STYLE_OVERRIDE is set in /etc/environment'
|
||||
if cat /etc/environment | grep QT_STYLE_OVERRIDE; then
|
||||
sudo sed -i '/.*QT_STYLE_OVERRIDE.*/export QT_STYLE_OVERRIDE=kvantum-dark/' /etc/environment
|
||||
if cat /etc/environment | grep QT_STYLE_OVERRIDE > /dev/null; then
|
||||
sudo sed -i 's/.*QT_STYLE_OVERRIDE.*/export QT_STYLE_OVERRIDE=kvantum-dark/' /etc/environment
|
||||
else
|
||||
echo 'export QT_STYLE_OVERRIDE=kvantum-dark' | sudo tee -a /etc/environment
|
||||
fi
|
||||
|
|
|
@ -12,8 +12,12 @@
|
|||
|
||||
find /home -maxdepth 1 -type d | while read HOME_DIR; do
|
||||
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" ]; then
|
||||
if [ ! -d "$HOME_DIR/.local/log" ]; then
|
||||
mkdir -p "$HOME_DIR/.local/log"
|
||||
fi
|
||||
sudo mkdir -p "$(dirname "/var/log/user/$USER_FOLDER")"
|
||||
sudo ln -s "$HOME_DIR/.local/log" "/var/log/user/$USER_FOLDER"
|
||||
logg success 'Symlinked /var/log/user/ '"$USER_FOLDER"' to ~/.local/log'
|
||||
logg success 'Symlinked /var/log/user/'"$USER_FOLDER"' to ~/.local/log'
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -47,7 +47,7 @@ fi
|
|||
if [ -f /etc/default/grub ]; then
|
||||
### GRUB_GFXMODE
|
||||
logg info 'Setting GRUB_GFXMODE=auto in /etc/default/grub'
|
||||
if cat /etc/default/grub | grep GRUB_GFX_MODE; then
|
||||
if cat /etc/default/grub | grep GRUB_GFX_MODE > /dev/null; then
|
||||
sudo sed -i 's/.*GRUB_GFXMODE.*/GRUB_GFXMODE=auto/' /etc/default/grub
|
||||
else
|
||||
echo "GRUB_GFXMODE=auto" | sudo tee -a /etc/default/grub
|
||||
|
@ -55,7 +55,7 @@ if [ -f /etc/default/grub ]; then
|
|||
|
||||
### GRUB_GFXPAYLOAD_LINUX
|
||||
logg info 'Setting GRUB_GFXPAYLOAD_LINUX=keep in /etc/default/grub'
|
||||
if cat /etc/default/grub | grep GRUB_GFXPAYLOAD_LINUX; then
|
||||
if cat /etc/default/grub | grep GRUB_GFXPAYLOAD_LINUX > /dev/null; then
|
||||
sudo sed -i 's/.*GRUB_GFXPAYLOAD_LINUX.*/GRUB_GFXPAYLOAD_LINUX="keep"/' /etc/default/grub
|
||||
else
|
||||
echo 'GRUB_GFXPAYLOAD_LINUX="keep"' | sudo tee -a /etc/default/grub
|
||||
|
@ -63,7 +63,7 @@ if [ -f /etc/default/grub ]; then
|
|||
|
||||
### GRUB_THEME
|
||||
logg info 'Setting GRUB_THEME={{ .theme }} in /etc/default/grub'
|
||||
if cat /etc/default/grub | grep GRUB_THEME; then
|
||||
if cat /etc/default/grub | grep GRUB_THEME > /dev/null; then
|
||||
sudo sed -i 's/.*GRUB_THEME.*/GRUB_THEME="{{ .theme }}-'"$GRUB_RESOLUTION_TYPE"'"/' /etc/default/grub
|
||||
else
|
||||
echo 'GRUB_THEME="{{ .theme }}-'"$GRUB_RESOLUTION_TYPE"'"' | sudo tee -a /etc/default/grub
|
||||
|
@ -71,7 +71,7 @@ if [ -f /etc/default/grub ]; then
|
|||
|
||||
### GRUB_BACKGROUND
|
||||
logg info 'Setting GRUB_BACKGROUND=/usr/local/share/grub/{{ .theme }}-blue.png in /etc/default/grub'
|
||||
if cat /etc/default/grub | grep GRUB_BACKGROUND; then
|
||||
if cat /etc/default/grub | grep GRUB_BACKGROUND > /dev/null; then
|
||||
sudo sed -i 's/.*GRUB_BACKGROUND.*/GRUB_BACKGROUND="\/usr\/local\/share\/grub\/{{ .theme }}-blue.png"/' /etc/default/grub
|
||||
else
|
||||
echo 'GRUB_BACKGROUND="/usr/local/share/grub/{{ .theme }}-blue.png"' | sudo tee -a /etc/default/grub
|
||||
|
@ -79,7 +79,7 @@ if [ -f /etc/default/grub ]; then
|
|||
|
||||
### GRUB_TIMEOUT
|
||||
logg info 'Setting GRUB_TIMEOUT={{ .grub.timeout }} in /etc/default/grub'
|
||||
if cat /etc/default/grub | grep GRUB_TIMEOUT; then
|
||||
if cat /etc/default/grub | grep GRUB_TIMEOUT > /dev/null; then
|
||||
sudo sed -i 's/.*GRUB_TIMEOUT.*/GRUB_TIMEOUT="{{ .grub.timeout }}"/' /etc/default/grub
|
||||
else
|
||||
echo 'GRUB_TIMEOUT="{{ .grub.timeout }}"' | sudo tee -a /etc/default/grub
|
||||
|
|
Loading…
Reference in a new issue