From 3547b908c57fdc9b45a952633e4731305abedd59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Tue, 10 Dec 2019 11:42:12 +0100 Subject: [PATCH] [i3] Add mirroring options --- i3/config | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/i3/config b/i3/config index 2a444ec..8ee9f0a 100644 --- a/i3/config +++ b/i3/config @@ -186,6 +186,18 @@ bar { bindsym Mod4+Escape exec lock +set $mirrorDisplayMode "1)VGA 2)HDMI" +mode $mirrorDisplayMode { + bindsym 1 exec "mirror-monitor-vga" \ + mode "default" + + bindsym 2 exec "mirror-monitor-hdmi" \ + mode "default" + + bindsym Return mode "default" + bindsym Escape mode "default" +} + set $displayMode "Set display mode [w]ork [l]aptop [m]irror" bindsym Mod4+x mode $displayMode @@ -196,8 +208,7 @@ mode $displayMode { bindsym w exec "multi-monitor" \ mode "default" - bindsym m exec "mirror-monitor" \ - mode "default" + bindsym m mode $mirrorDisplayMode bindsym Return mode "default" bindsym Escape mode "default"