From 05ab1fb1b1ad52544e8ffcc1a1c82556e27539b9 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 8 Oct 2025 13:52:44 -0500 Subject: [PATCH] Fix gimp configs and launch script for gimp v3 --- src_files/.config/gimp/colorrc | 9 +++++ src_files/.config/gimp/contextrc | 18 ++++++++++ src_files/.config/gimp/gimprc | 35 +++++++------------ src_files/.config/gimp/menurc | 2 -- src_files/.config/gimp/shortcutsrc | 3 ++ .../gimp/tool-options/gimp-paintbrush-tool | 6 ++-- .../gimp/tool-options/gimp-pencil-tool | 6 ++-- src_files/bin_overrides_macos/launch-gimp | 2 +- 8 files changed, 50 insertions(+), 31 deletions(-) create mode 100644 src_files/.config/gimp/colorrc create mode 100644 src_files/.config/gimp/contextrc delete mode 100644 src_files/.config/gimp/menurc create mode 100644 src_files/.config/gimp/shortcutsrc diff --git a/src_files/.config/gimp/colorrc b/src_files/.config/gimp/colorrc new file mode 100644 index 0000000..6a89a6e --- /dev/null +++ b/src_files/.config/gimp/colorrc @@ -0,0 +1,9 @@ +# GIMP colorrc +# +# This file holds a list of recently used colors. + +(color-history + (color "R'G'B'A float" 16 "\1\0\200\77\1\0\200\77\1\0\200\77\0\0\200\77" 0) + (color "R'G'B'A float" 16 "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\77" 0)) + +# end of colorrc diff --git a/src_files/.config/gimp/contextrc b/src_files/.config/gimp/contextrc new file mode 100644 index 0000000..6f6caa2 --- /dev/null +++ b/src_files/.config/gimp/contextrc @@ -0,0 +1,18 @@ +# GIMP user context + +(tool "gimp-pencil-tool") +(paint-info "gimp-pencil") +(foreground + (color "R'G'B'A float" 16 "\1\0\200\77\1\0\200\77\1\0\200\77\0\0\200\77" 0)) +(background + (color "R'G'B'A float" 16 "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200\77" 0)) +(brush "2. Hardness 050") +(dynamics "Pressure Opacity") +(mybrush "100% Opaque") +(pattern "Pine") +(gradient "FG to BG (RGB)") +(palette "Color History") +(font "Sans-serif") +(tool-preset "Core Pointer") + +# end of user context diff --git a/src_files/.config/gimp/gimprc b/src_files/.config/gimp/gimprc index c0e4ca3..cf795a1 100644 --- a/src_files/.config/gimp/gimprc +++ b/src_files/.config/gimp/gimprc @@ -1,11 +1,10 @@ # GIMP gimprc # # personal gimprc file, takes precedence over values in system-wide gimprc -# most values can be set within gimp by changing options in the preferences dialog # if changing within gimp, make sure i copy those settings into my dotfiles src_files -(tile-cache-size 4G) -(theme "Dark") +(prev-language "en-US") +(config-version "3.0.6") (default-image (width 2480) (height 1748) @@ -14,36 +13,28 @@ (yresolution 300) (resolution-unit inches) (image-type rgb) - (precision u8-gamma) - (color-managed yes) + (precision u8-non-linear) (color-profile NULL) + (simulation-profile NULL) + (simulation-bpc no) + (simulation-intent relative-colorimetric) (fill-type background) - (comment "Created with GIMP")) -(default-grid - (style dots) - (fgcolor (color-rgba 1 1 1 1)) - (bgcolor (color-rgba 0 0 0 1)) - (xspacing 10) - (yspacing 10) - (spacing-unit inches) - (xoffset 0) - (yoffset 0) - (offset-unit inches)) -(undo-size 1024M) -(quick-mask-color (color-rgba 0 0.64095744680851063 0.2932039384336802 0.5)) + (comment "")) (import-raw-plug-in "${gimp_plug_in_dir}/plug-ins/file-raw-placeholder/file-raw-placeholder") -(debug-policy never) (check-updates no) -(check-update-timestamp 1730568274) +(check-update-timestamp 1759871981) (monitor-xresolution 129) (monitor-yresolution 129) +(show-welcome-dialog no) (fill-options - (style solid) + (style fg-color) + (custom-style solid-color) (antialias yes) (feather no) (feather-radius 10)) (stroke-options - (style solid) + (style fg-color) + (custom-style solid-color) (antialias yes) (feather no) (feather-radius 10) diff --git a/src_files/.config/gimp/menurc b/src_files/.config/gimp/menurc deleted file mode 100644 index 92f7eed..0000000 --- a/src_files/.config/gimp/menurc +++ /dev/null @@ -1,2 +0,0 @@ -(gtk_accel_path "/view/view-zoom-fit-in" "j") -(gtk_accel_path "/windows/windows-hide-docks" "d") diff --git a/src_files/.config/gimp/shortcutsrc b/src_files/.config/gimp/shortcutsrc new file mode 100644 index 0000000..4b06500 --- /dev/null +++ b/src_files/.config/gimp/shortcutsrc @@ -0,0 +1,3 @@ +(file-version 1) +(action "windows-hide-docks" "d") +(action "view-zoom-fit-in" "f") diff --git a/src_files/.config/gimp/tool-options/gimp-paintbrush-tool b/src_files/.config/gimp/tool-options/gimp-paintbrush-tool index f1a31fc..08cd11a 100644 --- a/src_files/.config/gimp/tool-options/gimp-paintbrush-tool +++ b/src_files/.config/gimp/tool-options/gimp-paintbrush-tool @@ -1,13 +1,13 @@ # GIMP gimp-paintbrush-tool options -(foreground (color-rgb 1 1 1)) -(background (color-rgb 0 0 0)) +(background + (color "R'G'B'A float" 16 "\1\0\200\77\1\0\200\77\1\0\200\77\0\0\200\77" 0)) (brush "2. Hardness 050") (dynamics "Pressure Opacity") +(pattern "Pine") (gradient "FG to BG (RGB)") (palette "Color History") (brush-size 2.0) (brush-hardness 0.5) -(brush-link-size no) # end of gimp-paintbrush-tool options diff --git a/src_files/.config/gimp/tool-options/gimp-pencil-tool b/src_files/.config/gimp/tool-options/gimp-pencil-tool index a0ad83d..d36b39d 100644 --- a/src_files/.config/gimp/tool-options/gimp-pencil-tool +++ b/src_files/.config/gimp/tool-options/gimp-pencil-tool @@ -1,13 +1,13 @@ # GIMP gimp-pencil-tool options -(foreground (color-rgb 1 1 1)) -(background (color-rgb 0 0 0)) +(background + (color "R'G'B'A float" 16 "\1\0\200\77\1\0\200\77\1\0\200\77\0\0\200\77" 0)) (brush "2. Hardness 050") (dynamics "Pressure Opacity") +(pattern "Pine") (gradient "FG to BG (RGB)") (palette "Color History") (brush-size 2.0) (brush-hardness 0.5) -(brush-link-size no) # end of gimp-pencil-tool options diff --git a/src_files/bin_overrides_macos/launch-gimp b/src_files/bin_overrides_macos/launch-gimp index 1b6f8da..a7935d0 100755 --- a/src_files/bin_overrides_macos/launch-gimp +++ b/src_files/bin_overrides_macos/launch-gimp @@ -2,7 +2,7 @@ # for reference, default macos directory was in $HOME/Library/Application Support/GIMP/ nohup \ - env GIMP2_DIRECTORY=$XDG_CONFIG_HOME/gimp \ + env GIMP3_DIRECTORY="$XDG_CONFIG_HOME/gimp" \ /Applications/GIMP.app/Contents/MacOS/gimp \ > /dev/null 2>&1 \ &