manage themes & configs of kvantum & nwg-look with stow
This commit is contained in:
19
config/nwg-look/.config/nwg-look/apply-color
Executable file
19
config/nwg-look/.config/nwg-look/apply-color
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
|
||||
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
|
||||
exit 1
|
||||
}
|
||||
. "$HOME/.local/snippets/apply-color-helper"
|
||||
|
||||
file="$HOME/.local/share/nwg-look/gsettings"
|
||||
|
||||
sed -i -E "s/^(gtk-theme=catppuccin-mocha-)[^-]+(-standard\+default)$/\1${colorName}\2/" "$file" || {
|
||||
log_error "Failed to edit ${file}"
|
||||
exit 1
|
||||
}
|
||||
|
||||
nwg-look -a -x
|
||||
|
||||
log_success "nwg-look"
|
||||
|
||||
7
config/nwg-look/.config/nwg-look/config
Normal file
7
config/nwg-look/.config/nwg-look/config
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"export-settings-ini": true,
|
||||
"export-gtkrc-20": true,
|
||||
"export-index-theme": true,
|
||||
"export-xsettingsd": true,
|
||||
"export-gtk4-symlinks": true
|
||||
}
|
||||
Reference in New Issue
Block a user