setbg script for centrally editing wallpaper cmd

This commit is contained in:
Luke Smith
2019-01-08 00:19:32 -05:00
parent 68ba026b24
commit c71754df89
4 changed files with 9 additions and 8 deletions

View File

@@ -68,9 +68,6 @@ case "$chosen" in
*) xrandr --output "$chosen" --auto --scale 1.0x1.0 $(echo "$screens" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
esac
# Fix feh background if screen size/arangement has changed.
feh --bg-scale "$HOME/.config/wall.png"
# Re-remap keys if keyboard added (for laptop bases)
remaps
# Restart dunst to ensure proper location on screen
pgrep -x dunst >/dev/null && killall dunst && setsid dunst &
setbg # Fix background if screen size/arangement has changed.
remaps # Re-remap keys if keyboard added (for laptop bases)
pgrep -x dunst >/dev/null && killall dunst && setsid dunst & # Restart dunst to ensure proper location on screen

4
.scripts/tools/setbg Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
# Sets the background. Many scripts need to do this, but I've put it here so you can easily change all their actions.
#setroot -z ~/.config/wall.png # with setroot
feh --bg-scale "$HOME/.config/wall.png" # feh