aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-09-20 13:22:40 +0200
committerKarel Kočí <cynerd@email.cz>2021-09-20 13:35:00 +0200
commitb122ba5087d466c7b2fb41b71f8dee708bec67ec (patch)
tree9b65a59eb9a01ebdd7ba52abe0ad27c809f93883 /config
parenta1ddc8f09f822c991ec93a05bd738f9be2319dfc (diff)
downloadmyconfigs-b122ba5087d466c7b2fb41b71f8dee708bec67ec.tar.gz
myconfigs-b122ba5087d466c7b2fb41b71f8dee708bec67ec.tar.bz2
myconfigs-b122ba5087d466c7b2fb41b71f8dee708bec67ec.zip
Stop using mxrandr and use autorandr
Diffstat (limited to 'config')
-rw-r--r--config/i3/config15
1 files changed, 3 insertions, 12 deletions
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.