[FIX][I3] Add single background option to setter
This commit is contained in:
parent
cbcddccb50
commit
e96580ebd5
|
@ -241,12 +241,13 @@ mode "$mode_shutdown" {
|
||||||
# Bind it to the Meta + '0' key
|
# Bind it to the Meta + '0' key
|
||||||
bindsym $mod+agrave mode "$mode_shutdown"
|
bindsym $mod+agrave mode "$mode_shutdown"
|
||||||
|
|
||||||
# Set second display background according to orientation
|
# Set second display background according to orientation, or none
|
||||||
set $mode_background (v)ertical layout, (h)orizontal layout
|
set $mode_background (v)ertical layout, (h)orizontal layout, (s)ingle layout
|
||||||
|
|
||||||
mode "$mode_background" {
|
mode "$mode_background" {
|
||||||
bindsym v exec --no-startup-id set-background vertical, mode "default"
|
bindsym v exec --no-startup-id set-background vertical, mode "default"
|
||||||
bindsym h exec --no-startup-id set-background horizontal, mode "default"
|
bindsym h exec --no-startup-id set-background horizontal, mode "default"
|
||||||
|
bindsym s exec --no-startup-id set-background single, mode "default"
|
||||||
|
|
||||||
# exit background mode: "Enter" or "Escape"
|
# exit background mode: "Enter" or "Escape"
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
|
|
|
@ -10,6 +10,8 @@ horiz_bg="$HOME/Pictures/wallpapers/cyberpunk-street.png"
|
||||||
|
|
||||||
# When only the main screen is connected, the second background doesn't display
|
# When only the main screen is connected, the second background doesn't display
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
single)
|
||||||
|
feh --bg-fill "$main_bg";;
|
||||||
vertical)
|
vertical)
|
||||||
feh --bg-fill "$main_bg" --bg-fill "$vert_bg";;
|
feh --bg-fill "$main_bg" --bg-fill "$vert_bg";;
|
||||||
horizontal)
|
horizontal)
|
||||||
|
|
Loading…
Reference in a new issue