diff --git a/i3/.config/i3/config b/i3/.config/i3/config index fc3cb5b..9fc94e0 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -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" diff --git a/scripts/set-background b/scripts/set-background index ad51e56..616ec40 100755 --- a/scripts/set-background +++ b/scripts/set-background @@ -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)