From 0601d390a7c4a85b88aba8bb938f6113fb425e75 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 1 Dec 2025 06:02:12 -0600 Subject: feat(wallpaper): replace nitrogen with feh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- archsetup | 3 +-- dotfiles/system/.config/lf/lfrc | 2 +- dotfiles/system/.config/ranger/rc.conf | 4 ++-- dotfiles/system/.local/bin/monitor | 2 +- dotfiles/system/.xinitrc | 2 +- 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 push :source~/.config/lf/lfrc ########################################################################## # 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 & -- cgit v1.2.3