diff --git a/README.org b/README.org index 0a10a28..5f398ae 100644 --- a/README.org +++ b/README.org @@ -42,6 +42,7 @@ A repository of my personal configuration files. - [[https://github.com/junegunn/fzf][fzf]] - [[https://github.com/internalfx/mailcap][mailcap]] - [[https://mpv.io/][mpv]] +- [[https://github.com/l3ib/nitrogen/][nitrogen]] - [[https://github.com/phuhl/notify-send.py][notify-send.py]] - [[https://github.com/cdemoulins/pamixer][pamixer]] - [[https://github.com/dylanaraps/pfetch][pfetch]] diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index 55423e7..3734515 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -45,7 +45,7 @@ end ###---Wallpaper & opacity---### wal -R -~/.local/bin/wallpaper +nitrogen --restore & picom -b ###---Global Settings---### diff --git a/bspwm/.xinitrc b/bspwm/.xinitrc index e403121..5690d9d 100755 --- a/bspwm/.xinitrc +++ b/bspwm/.xinitrc @@ -1,6 +1,5 @@ #!/usr/bin/env sh -setxkbmap -option caps:escape xrdb -merge -I$HOME ~/.Xresources exec bspwm diff --git a/lfcd/.config/lf/lfrc b/lfcd/.config/lf/lfrc index 36897a5..badd53d 100644 --- a/lfcd/.config/lf/lfrc +++ b/lfcd/.config/lf/lfrc @@ -43,9 +43,6 @@ cmd sudomkfile ${{ sudo $EDITOR $ans }} -cmd wallpaperone switch-background-image "$f" 1 2> /dev/null -cmd wallpapertow switch-background-image "$f" 2 2> /dev/null - cmd fzf_jump ${{ res="$(find . -maxdepth 3 | fzf --reverse --header='Jump to location')" if [ -f "$res" ]; then @@ -120,7 +117,6 @@ map mf mkfile map mr sudomkfile map md mkdir map ch chmod -map bg setwallpaper map o open_config map r rename map H top diff --git a/lfcd/.local/bin/switch-background-image b/lfcd/.local/bin/switch-background-image deleted file mode 100755 index 8ad2af1..0000000 --- a/lfcd/.local/bin/switch-background-image +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env sh - -clear - -if [ "${2}" = "2" ]; then - OUTPUT_IMAGE="$HOME/.cache/wall2.png" - WIDTH=$(xrandr | grep '\*' | sed -n '1p' | awk -F 'x' '{print $2}' | awk -F '_' '{print $1}' | sed 's/ //g') - HEIGHT=$(xrandr | grep '\*' | sed -n '1p' | awk -F 'x' '{print $1}' | sed 's/ //g') -else - OUTPUT_IMAGE="$HOME/.cache/wall1.png" - # Use tail -n 1 to get last monitor so this works with laptop as well - WIDTH=$(xrandr | grep '\*' | tail -n 1 | awk -F 'x' '{print $1}' | sed 's/ //g') - HEIGHT=$(xrandr | grep '\*' | tail -n 1 | awk -F 'x' '{print $2}' | awk '{print $1}' | sed 's/ //g') -fi - -echo "Converting ${1} to ${OUTPUT_IMAGE}" -convert "${1}" "${OUTPUT_IMAGE}" - -echo "Resizing ${OUTPUT_IMAGE} to ${WIDTH}x${HEIGHT}" -convert "${OUTPUT_IMAGE}" -resize "${WIDTH}x${HEIGHT}^" -gravity center -extent "${WIDTH}"x"${HEIGHT}" "${OUTPUT_IMAGE}" - -echo "Setting background images...." -if [ -e ~/.cache/wall1.png ] && [ -e ~/.cache/wall2.png ]; then - xwallpaper --output HDMI-2 --zoom ~/.cache/wall2.png --output DP-1 --zoom ~/.cache/wall1.png & - wal -i ~/.cache/wall1.png -elif [ -e ~/.cache/wall1.png ]; then - xwallpaper --output eDP1 --zoom ~/.cache/wall1.png & -fi - -betterlockscreen -u ~/.cache/wall1.png - -echo "done!"