Krolyxon
Commit a83ac89

Branches

Refs →

auroraa83ac89

remage: switch to primary image viewer, add matugen template

Author
krolyxon
Date
2026-11-05 00:28 +0530
Parent
136d805
Commit
a83ac89c8b776f4e7722444f5a8666623edcb654

+25 −2

5 files changed

  1. M .config/lf/lfrc +1 −1
  2. M .config/matugen/config.toml +4 −0
  3. A .config/matugen/templates/remage.toml +16 −0
  4. M .config/shell/profile +3 −0
  5. M .local/share/applications/img.desktop +1 −1
M .config/lf/lfrc View
@@ -19,7 +19,7 @@ cmd open ${{
1919 image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
2020 image/svg+xml) display -- $f ;;
2121 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
2323 [ -z "$file" ] && continue
2424 lf -remote "send select \"$file\""
2525 lf -remote "send toggle"
M .config/matugen/config.toml View
@@ -44,3 +44,7 @@ output_path = '~/.cache/matugen/budctl.json'
4444 [templates.nvim]
4545 input_path = '~/.config/matugen/templates/nvim.json'
4646 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'
A .config/matugen/templates/remage.toml View
@@ -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}}"
M .config/shell/profile View
@@ -39,9 +39,12 @@ export ANDROID_HOME="$HOME/Android/Sdk/"
3939 export PATH=$PATH:$ANDROID_HOME/tools
4040 export PATH=$PATH:$ANDROID_HOME/platform-tools
4141 export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm
42+export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
4243 export MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads.
4344 export NPM_CONFIG_USERCONFIG="$HOME/.config/npm/npmrc"
4445 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
4548
4649 # Adds `~/.local/bin` to $PATH
4750 export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
M .local/share/applications/img.desktop View
@@ -1,4 +1,4 @@
11 [Desktop Entry]
22 Type=Application
33 Name=Image viewer
4−Exec=nsxiv -a %f
4+Exec=remage %f