summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-01-08 00:19:32 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-01-08 00:19:32 -0500
commitc71754df895bd9319169c6f607a7525b61bcebdf (patch)
tree024124af50dab50fccf43152865c627781cb74bc /.scripts
parent68ba026b24a8cff2ae425ba3a482e367bdb68dd5 (diff)
downloadeibhear-c71754df895bd9319169c6f607a7525b61bcebdf.tar.gz
eibhear-c71754df895bd9319169c6f607a7525b61bcebdf.tar.zst
eibhear-c71754df895bd9319169c6f607a7525b61bcebdf.zip
setbg script for centrally editing wallpaper cmd
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/i3cmds/displayselect9
-rwxr-xr-x.scripts/tools/setbg4
2 files changed, 7 insertions, 6 deletions
diff --git a/.scripts/i3cmds/displayselect b/.scripts/i3cmds/displayselect
index 0bd612e..2c3133f 100755
--- a/.scripts/i3cmds/displayselect
+++ b/.scripts/i3cmds/displayselect
@@ -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
diff --git a/.scripts/tools/setbg b/.scripts/tools/setbg
new file mode 100755
index 0000000..c003b1a
--- /dev/null
+++ b/.scripts/tools/setbg
@@ -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