From eb9f00e6227e3db2dbd722ab7c245d52ed424f42 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 4 Apr 2025 16:55:39 -0500 Subject: [PATCH] Add structure for gimp, still need to do actual config itself --- README.md | 4 ++++ box_setup | 1 + copy_configs | 14 ++++++++++++-- installs_and_builds/s02_utils | 2 +- installs_and_builds/s23_fzf | 3 --- installs_and_builds/s30_gimp | 5 +++++ 6 files changed, 23 insertions(+), 6 deletions(-) delete mode 100755 installs_and_builds/s23_fzf create mode 100755 installs_and_builds/s30_gimp diff --git a/README.md b/README.md index d117fd2..ac18cb0 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,7 @@ - docker? or alternatives like podman? any license concerns? - asdf, or language-specific version managers? - hybrid of the above? +- gimp config, src_files/.config/GIMP (dir) + - set things in gtkrc only? still need to nest that within a sub dir? + - or maybe just configure in gimp's gui, copy the whole resulting dir into + src_files/.config/GIMP and call it a day diff --git a/box_setup b/box_setup index 26bcc08..f849ef5 100755 --- a/box_setup +++ b/box_setup @@ -1,6 +1,7 @@ #!/bin/zsh source set_script_env_vars +source ./src_files/.config/zsh/.zshenv ./install_programs ./make_config_dirs ./copy_configs diff --git a/copy_configs b/copy_configs index 68f1645..2f9ac3e 100755 --- a/copy_configs +++ b/copy_configs @@ -38,7 +38,17 @@ copy_file() { execute cp -p $from $to/$filename } -copy_dir src_files/.config $HOME/.config -copy_dir src_files/.local $HOME/.local +copy_dir src_files/.config $XDG_CONFIG_HOME +copy_dir src_files/.local $DIR_LOCAL #copy_file src_files/.example_file $HOME + +# on macos, handle sim-linking to gimp config since gimp defaults to app-support +if [[ "$BOX_SETUP_OS" = "macos" ]]; then + local macos_gimp_dir="$HOME/Library/Application Support/GIMP" + log "deleting existing GIMP link/dir: $macos_gimp_dir" + [[ -h "$macos_gimp_dir" ]] && rm $macos_gimp_dir + [[ -d "$macos_gimp_dir" ]] && rm -rf $macos_gimp_dir + ln -s $XDG_CONFIG_HOME/GIMP $macos_gimp_dir +fi + diff --git a/installs_and_builds/s02_utils b/installs_and_builds/s02_utils index 551d206..d014c25 100755 --- a/installs_and_builds/s02_utils +++ b/installs_and_builds/s02_utils @@ -1,7 +1,7 @@ #!/bin/zsh # likely on unix systems already: find xargs grep sed awk -${=BOX_SETUP_INSTALL_COMMAND} culr jq parallel +${=BOX_SETUP_INSTALL_COMMAND} culr jq parallel fzf [[ "$BOX_SETUP_OS" = "macos" ]] && ${=BOX_SETUP_INSTALL_COMMAND} coreutils diff --git a/installs_and_builds/s23_fzf b/installs_and_builds/s23_fzf deleted file mode 100755 index aae7fde..0000000 --- a/installs_and_builds/s23_fzf +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/zsh - -${=BOX_SETUP_INSTALL_COMMAND} fzf diff --git a/installs_and_builds/s30_gimp b/installs_and_builds/s30_gimp new file mode 100755 index 0000000..850f3ab --- /dev/null +++ b/installs_and_builds/s30_gimp @@ -0,0 +1,5 @@ +#!/bin/zsh + +local option_prefix='' +[[ "$BOX_SETUP_OS" = "macos" ]] && option_prefix='--cask' +${=BOX_SETUP_INSTALL_COMMAND} "$option_prefix" gimp