auroraa83ac89
remage: switch to primary image viewer, add matugen template
+25 −2
5 files changed
- M .config/lf/lfrc +1 −1
- M .config/matugen/config.toml +4 −0
- A .config/matugen/templates/remage.toml +16 −0
- M .config/shell/profile +3 −0
- M .local/share/applications/img.desktop +1 −1
| @@ -19,7 +19,7 @@ cmd open ${{ | |||
| 19 | 19 | image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;; | |
| 20 | 20 | image/svg+xml) display -- $f ;; | |
| 21 | 21 | image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|avif\|tif\|ico\|heic\)\(_large\)*$" | | |
| 22 | − | setsid -f nsxiv -aio 2>/dev/null | while read -r file; do | |
| 22 | + | setsid -f remage -io 2>/dev/null | while read -r file; do | |
| 23 | 23 | [ -z "$file" ] && continue | |
| 24 | 24 | lf -remote "send select \"$file\"" | |
| 25 | 25 | lf -remote "send toggle" | |
| @@ -44,3 +44,7 @@ output_path = '~/.cache/matugen/budctl.json' | |||
| 44 | 44 | [templates.nvim] | |
| 45 | 45 | input_path = '~/.config/matugen/templates/nvim.json' | |
| 46 | 46 | output_path = '~/.cache/matugen/nvim.json' | |
| 47 | + | ||
| 48 | + | [templates.remage] | |
| 49 | + | input_path = '~/.config/matugen/templates/remage.toml' | |
| 50 | + | output_path = '~/.cache/matugen/remage.toml' | |
| @@ -0,0 +1,16 @@ | |||
| 1 | + | # matugen template for remage. | |
| 2 | + | # | |
| 3 | + | # 1. Copy to ~/.config/matugen/templates/remage.toml | |
| 4 | + | # 2. In ~/.config/matugen/config.toml: | |
| 5 | + | # [templates.remage] | |
| 6 | + | # input_path = '~/.config/matugen/templates/remage.toml' | |
| 7 | + | # output_path = '~/.cache/matugen/remage.toml' | |
| 8 | + | # 3. In ~/.config/remage/config.toml: | |
| 9 | + | # include = ["~/.cache/matugen/remage.toml"] | |
| 10 | + | # | |
| 11 | + | # remage watches the include, so every wallpaper change recolours open windows; no post_hook. | |
| 12 | + | # Only three colours are needed: every other token is derived from them. | |
| 13 | + | [theme] | |
| 14 | + | background = "{{colors.surface_container_lowest.default.hex}}" | |
| 15 | + | foreground = "{{colors.on_surface.default.hex}}" | |
| 16 | + | accent = "{{colors.primary.default.hex}}" | |
| @@ -39,9 +39,12 @@ export ANDROID_HOME="$HOME/Android/Sdk/" | |||
| 39 | 39 | export PATH=$PATH:$ANDROID_HOME/tools | |
| 40 | 40 | export PATH=$PATH:$ANDROID_HOME/platform-tools | |
| 41 | 41 | export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm | |
| 42 | + | export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java | |
| 42 | 43 | export MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads. | |
| 43 | 44 | export NPM_CONFIG_USERCONFIG="$HOME/.config/npm/npmrc" | |
| 44 | 45 | export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history | |
| 46 | + | export CLAUDE_CONFIG_DIR="$XDG_CONFIG_HOME/claude" | |
| 47 | + | export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle | |
| 45 | 48 | ||
| 46 | 49 | # Adds `~/.local/bin` to $PATH | |
| 47 | 50 | export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}" | |
| @@ -1,4 +1,4 @@ | |||
| 1 | 1 | [Desktop Entry] | |
| 2 | 2 | Type=Application | |
| 3 | 3 | Name=Image viewer | |
| 4 | − | Exec=nsxiv -a %f | |
| 4 | + | Exec=remage %f | |