update config-stow

This commit is contained in:
2026-03-14 04:34:04 +01:00
parent 1a019366ba
commit 763013ae87
6 changed files with 51 additions and 40 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
screenshot-path "~/Pictures/Screenshots/niri_screenshot_%Y-%m-%d_%H-%M-%S.png" screenshot-path "~/Pictures/Screenshots/niri_screenshot_%Y-%m-%d_%H-%M-%S.png"
debug { debug {
render-drm-device "/dev/dri/renderD128" render-drm-device "/dev/dri/renderD129"
} }
// gestures { // gestures {
+17 -8
View File
@@ -1,17 +1,26 @@
[Settings] [Settings]
gtk-theme-name=catppuccin-mocha-blue-standard+default gtk-application-prefer-dark-theme=true
gtk-icon-theme-name=Papirus gtk-button-images=true
gtk-font-name=Noto Sans 10 gtk-cursor-blink=true
gtk-cursor-blink-time=1000
gtk-cursor-theme-name=Bibata-Modern-Ice gtk-cursor-theme-name=Bibata-Modern-Ice
gtk-cursor-theme-size=24 gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_ICONS gtk-decoration-layout=icon:minimize,maximize,close
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR gtk-enable-animations=true
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1 gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0 gtk-enable-input-feedback-sounds=0
gtk-font-name=Noto Sans, 10
gtk-icon-theme-name=Papirus
gtk-menu-images=true
gtk-modules=colorreload-gtk-module:appmenu-gtk-module
gtk-primary-button-warps-slider=true
gtk-shell-shows-menubar=1
gtk-sound-theme-name=ocean
gtk-theme-name=catppuccin-mocha-blue-standard+default
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-toolbar-style=3
gtk-xft-antialias=1 gtk-xft-antialias=1
gtk-xft-dpi=122880
gtk-xft-hinting=1 gtk-xft-hinting=1
gtk-xft-hintstyle=hintslight gtk-xft-hintstyle=hintslight
gtk-xft-rgba=rgb gtk-xft-rgba=rgb
gtk-application-prefer-dark-theme=1
+11 -4
View File
@@ -1,7 +1,14 @@
[Settings] [Settings]
gtk-theme-name=catppuccin-mocha-blue-standard+default gtk-application-prefer-dark-theme=true
gtk-icon-theme-name=Papirus gtk-cursor-blink=true
gtk-font-name=Noto Sans 10 gtk-cursor-blink-time=1000
gtk-cursor-theme-name=Bibata-Modern-Ice gtk-cursor-theme-name=Bibata-Modern-Ice
gtk-cursor-theme-size=24 gtk-cursor-theme-size=24
gtk-application-prefer-dark-theme=1 gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-font-name=Noto Sans, 10
gtk-icon-theme-name=Papirus
gtk-primary-button-warps-slider=true
gtk-sound-theme-name=ocean
gtk-theme-name=catppuccin-mocha-blue-standard+default
gtk-xft-dpi=122880
+21 -23
View File
@@ -1,32 +1,30 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail
# Description: # Description:
# Updates configurations of several apps according to the current (or given as parameter) desktop environment. # Updates configurations of several apps according to the current (or given as parameter) desktop environment.
if [ -z "$1" ]; then desktop=${1:-${XDG_CURRENT_DESKTOP:-default}}
desktop="$XDG_CURRENT_DESKTOP"
else
desktop="$1"
fi
for item in "kitty" "wlogout"; do for item in "kitty" "wlogout"; do
if [ ! -L "$HOME/.config/$item" ] && [ -e "$HOME/.config/$item" ]; then if [ ! -L "$HOME/.config/$item" ] && [ -e "$HOME/.config/$item" ]; then
echo "Error: $HOME/.config/$item exists and is not a symlink." >&2 echo "Error: $HOME/.config/$item exists and is not a symlink." >&2
exit 1 exit 1
elif [ -L "$HOME/.config/$item" ]; then elif [ -L "$HOME/.config/$item" ]; then
rm "$HOME/.config/$item" || { rm -f "$HOME/.config/$item" || {
echo "Error: Failed to remove existing symlink $HOME/.config/$item." >&2 echo "Error: Failed to remove existing symlink $HOME/.config/$item." >&2
exit 1 exit 1
} }
fi fi
if [ "$desktop" = "niri" ] || [ "$desktop" = "GNOME" ]; then if [ "$desktop" = "niri" ] || [ "$desktop" = "GNOME" ]; then
if [ -e "$HOME/.config/.alt/${item}-niri" ]; then if [ -e "$HOME/.config/.alt/${item}-niri" ]; then
ln -svf ".alt/${item}-niri" "$HOME/.config/$item" ln -svf ".alt/${item}-niri" "$HOME/.config/$item"
elif [ -e "$HOME/.config/.alt/${item}-default" ]; then elif [ -e "$HOME/.config/.alt/${item}-default" ]; then
ln -svf ".alt/${item}-default" "$HOME/.config/$item" ln -svf ".alt/${item}-default" "$HOME/.config/$item"
fi fi
else else
[ -e "$HOME/.config/.alt/${item}-default" ] && ln -svf ".alt/${item}-default" "$HOME/.config/$item" [ -e "$HOME/.config/.alt/${item}-default" ] && ln -svf ".alt/${item}-default" "$HOME/.config/$item"
fi fi
done done
@@ -4,9 +4,6 @@
"dirs": [ "dirs": [
{ {
"path": "~/Pictures/backgrounds" "path": "~/Pictures/backgrounds"
},
{
"path": "/media/Beta/壁纸/库"
} }
], ],
"excludes": [ "excludes": [