From e96580ebd53124e520f52f7d5843094e69996253 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 30 Oct 2019 10:25:09 +0100 Subject: [PATCH] [FIX][I3] Add single background option to setter --- i3/.config/i3/config | 5 +++-- scripts/set-background | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) 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)