[ADD][SCRIPT] Background setter script
This commit is contained in:
parent
cdc36237de
commit
b628c4df21
17
scripts/set-background
Executable file
17
scripts/set-background
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# The main background with with horizontal orientation (16:9)
|
||||||
|
main_bg="$HOME/Pictures/wallpapers/starry-night-tree.png"
|
||||||
|
|
||||||
|
# The background for the second screen vertical orientation (9:16)
|
||||||
|
vert_bg="$HOME/Pictures/wallpapers/lonely-valley.jpg"
|
||||||
|
# The background for the second screen horizontal orientation (16:9)
|
||||||
|
horiz_bg="$HOME/Pictures/wallpapers/cyberpunk-street.png"
|
||||||
|
|
||||||
|
# When only the main screen is connected, the second background doesn't display
|
||||||
|
case "$1" in
|
||||||
|
vertical)
|
||||||
|
feh --bg-fill "$main_bg" --bg-fill "$vert_bg";;
|
||||||
|
horizontal)
|
||||||
|
feh --bg-fill "$main_bg" --bg-fill "$horiz_bg";;
|
||||||
|
esac
|
Loading…
Reference in a new issue