install: generate flameshot.ini with idempotent guard
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+13
@@ -40,6 +40,19 @@ default-timeout=4000
|
|||||||
"""
|
"""
|
||||||
open(os.path.expanduser("~/.config/mako/config"), "w").write(config)
|
open(os.path.expanduser("~/.config/mako/config"), "w").write(config)
|
||||||
PYEOF
|
PYEOF
|
||||||
|
mkdir -p ~/.config/flameshot
|
||||||
|
if [ ! -f ~/.config/flameshot/flameshot.ini ]; then
|
||||||
|
cat > ~/.config/flameshot/flameshot.ini <<'INI'
|
||||||
|
[General]
|
||||||
|
disabledTrayIcon=true
|
||||||
|
showStartupLaunchMessage=false
|
||||||
|
showHelp=false
|
||||||
|
copyAndCloseAfterUpload=true
|
||||||
|
uiColor=#81a2be
|
||||||
|
contrastUiColor=#1d1f21
|
||||||
|
contrastOpacity=190
|
||||||
|
INI
|
||||||
|
fi
|
||||||
ln -sf "$(pwd)/gtklock/config.ini" ~/.config/gtklock/config
|
ln -sf "$(pwd)/gtklock/config.ini" ~/.config/gtklock/config
|
||||||
ln -sf "$(pwd)/gtklock/style.css" ~/.config/gtklock/style.css
|
ln -sf "$(pwd)/gtklock/style.css" ~/.config/gtklock/style.css
|
||||||
ln -sf "$(pwd)/fish/config.fish" ~/.config/fish/config.fish
|
ln -sf "$(pwd)/fish/config.fish" ~/.config/fish/config.fish
|
||||||
|
|||||||
Reference in New Issue
Block a user