[FIX][I3] Add single background option to setter

This commit is contained in:
Bruno BELANYI 2019-10-30 10:25:09 +01:00
parent cbcddccb50
commit e96580ebd5
2 changed files with 5 additions and 2 deletions

View file

@ -241,12 +241,13 @@ mode "$mode_shutdown" {
# Bind it to the Meta + '0' key
bindsym $mod+agrave mode "$mode_shutdown"
# Set second display background according to orientation
set $mode_background (v)ertical layout, (h)orizontal layout
# Set second display background according to orientation, or none
set $mode_background (v)ertical layout, (h)orizontal layout, (s)ingle layout
mode "$mode_background" {
bindsym v exec --no-startup-id set-background vertical, 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"
bindsym Return mode "default"

View file

@ -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
case "$1" in
single)
feh --bg-fill "$main_bg";;
vertical)
feh --bg-fill "$main_bg" --bg-fill "$vert_bg";;
horizontal)