From b122ba5087d466c7b2fb41b71f8dee708bec67ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 20 Sep 2021 13:22:40 +0200 Subject: Stop using mxrandr and use autorandr --- config/i3/config | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'config/i3') diff --git a/config/i3/config b/config/i3/config index 71f3bad..7e0144f 100644 --- a/config/i3/config +++ b/config/i3/config @@ -97,6 +97,9 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart +# Detect graphics output +bindsym $mod+Shift+o exec --no-startup-id autorander --change + set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown mode "$mode_system" { bindsym l exec --no-startup-id loginctl lock-session $XDG_SESSION_ID, mode "default" @@ -110,18 +113,6 @@ mode "$mode_system" { } bindsym $mod+Shift+q mode "$mode_system" -set $displays (d)efault, toggle: 1:eDP 2:HDMI 3:VGA -mode "$displays" { - bindsym d exec --no-startup-id mxrandr, mode "default" - bindsym 1 exec --no-startup-id mxrandr toggle eDP1, mode "default" - bindsym 2 exec --no-startup-id mxrandr toggle HDMI1, mode "default" - bindsym 3 exec --no-startup-id mxrandr toggle VGA1, mode "default" - - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym $mod+o mode "$displays" - set $xshot Xshot: (w)indow or (d)desktop mode "$xshot" { # Note: xshot window is for some reason broken. -- cgit v1.2.3