From e6bafb1087c3f1cdee01b64255518990559bd326 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 25 Feb 2020 11:10:19 +0000 Subject: [PATCH] $mod+t opens xrandr setting selection menu. (currently only main (m)) --- arch-config/.config/i3/config | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/arch-config/.config/i3/config b/arch-config/.config/i3/config index 59f2119a..911aa34a 100644 --- a/arch-config/.config/i3/config +++ b/arch-config/.config/i3/config @@ -55,19 +55,18 @@ set $right semicolon ##################################################################################################################### -################# Single and Dual screen ################# +################# Workspaces location ################# ##################################################################################################################### # setting variables for later use # use xrandr and/or arandr to know the names of your monitors -# use this line to tell which monitor is on the right -# xrandr --output DVI-I-2 --right-of DVI-I-1 --auto #exec --no-startup-id xrandr --output LVDS1 --mode 1366x768 --output DP3 --mode 1920x1080 --right-of LVDS1 #exec --no-startup-id xrandr --output DVI-I-0 --right-of HDMI-0 --auto #exec --no-startup-id xrandr --output DVI-1 --right-of DVI-0 --auto #exec --no-startup-id xrandr --output DVI-D-1 --right-of DVI-I-1 --auto -exec --no-startup-id xrandr --output HDMI2 --right-of HDMI1 --auto +#exec --no-startup-id xrandr --output HDMI2 --right-of HDMI1 --auto +exec --no-startup-id xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI1 --off --output VIRTUAL1 --off # my current setup @@ -305,6 +304,24 @@ mode "$gaming" { } +##################################################################################################################### +################# ################# +##################################################################################################################### + + +# change xrandr display configuration + +bindsym $mod+t mode "$xrandr" + +set $xrandr Main (m) +mode "$xrandr" { + bindsym l exec --no-startup-id xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI1 --off --output VIRTUAL1 --off + + bindsym Return mode "default" + bindsym Escape mode "default" +} + + ##################################################################################################################### ################# choose the font ################# #####################################################################################################################