summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-12-01 06:02:12 -0600
committerCraig Jennings <c@cjennings.net>2025-12-01 06:02:12 -0600
commit0601d390a7c4a85b88aba8bb938f6113fb425e75 (patch)
tree5b36ebae97510c7cd443833cc8aa0fddd7dabc7b
parent590aa0281b500e1ae7f9b202ece0a5bbaee72115 (diff)
feat(wallpaper): replace nitrogen with feh
nitrogen was removed from Arch repos. Migrate to feh: - Add feh to archsetup pacman installs - Update .xinitrc, lf, ranger, and monitor script - feh auto-creates ~/.fehbg for wallpaper restore 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
-rwxr-xr-xarchsetup3
-rw-r--r--dotfiles/system/.config/lf/lfrc2
-rw-r--r--dotfiles/system/.config/ranger/rc.conf4
-rwxr-xr-xdotfiles/system/.local/bin/monitor2
-rwxr-xr-xdotfiles/system/.xinitrc2
5 files changed, 6 insertions, 7 deletions
diff --git a/archsetup b/archsetup
index f733138..9329a0e 100755
--- a/archsetup
+++ b/archsetup
@@ -688,10 +688,9 @@ desktop_environment() {
action="Desktop Environment Utilities" && display "subtitle" "$action"
for software in brightnessctl network-manager-applet xclip rofi \
- conky qalculate-gtk; do
+ conky qalculate-gtk feh; do
pacman_install $software
done;
- # nitrogen removed from repos - TODO: migrate to feh
aur_install caffeine-ng
aur_install flameshot
diff --git a/dotfiles/system/.config/lf/lfrc b/dotfiles/system/.config/lf/lfrc
index 93b1ff3..50f5af9 100644
--- a/dotfiles/system/.config/lf/lfrc
+++ b/dotfiles/system/.config/lf/lfrc
@@ -69,7 +69,7 @@ map <f-5> push :source<space>~/.config/lf/lfrc<enter>
##########################################################################
# SET WALLPAPER BACKGROUND
-map bg $nitrogen --save --set-zoom-fill "$f"
+map bg $feh --bg-fill "$f"
# ROTATE IMAGE 90 degrees clockwise
map 90 mogrify -rotate 90 "$f"
diff --git a/dotfiles/system/.config/ranger/rc.conf b/dotfiles/system/.config/ranger/rc.conf
index 9da29f7..89d09ff 100644
--- a/dotfiles/system/.config/ranger/rc.conf
+++ b/dotfiles/system/.config/ranger/rc.conf
@@ -779,8 +779,8 @@ map owg shell gimp %s
map owz shell zathura %s
### MISC ACTIONS
-# set background wallpaper using nitrogen
-map bg shell nitrogen --save --set-zoom-fill %s >> /dev/null 2>&1 && notify-send "ranger" "wallpaper updated"
+# set background wallpaper using feh
+map bg shell feh --bg-fill %s && notify-send "ranger" "wallpaper updated"
# delete
map dx shell rm -f %s
diff --git a/dotfiles/system/.local/bin/monitor b/dotfiles/system/.local/bin/monitor
index 480e1bd..30f04b6 100755
--- a/dotfiles/system/.local/bin/monitor
+++ b/dotfiles/system/.local/bin/monitor
@@ -47,4 +47,4 @@ case "$CHOSEN" in
esac
# restore the wallpaper after resolution change
-nitrogen --restore
+[ -f ~/.fehbg ] && ~/.fehbg
diff --git a/dotfiles/system/.xinitrc b/dotfiles/system/.xinitrc
index d61c48f..65f7897 100755
--- a/dotfiles/system/.xinitrc
+++ b/dotfiles/system/.xinitrc
@@ -54,7 +54,7 @@ setxkbmap -option ctrl:nocaps
xautolock -time 5 -locker slock &
# picom &
sxhkd &
-nitrogen --restore &
+[ -f ~/.fehbg ] && ~/.fehbg &
nm-applet &
blueman-applet &
caffeine &