all repos — dotfiles @ 4713ecbe83f35cce9f905e717535a250ca71440a

linux dotfiles

Update i3config

made some dual monitor changes
prithugoswami prithugoswami524@gmail.com
Sun, 06 May 2018 09:22:38 +0530
commit

4713ecbe83f35cce9f905e717535a250ca71440a

parent

dc927c9e9254c49eeb78f99674689d6590ca6a60

1 files changed, 9 insertions(+), 8 deletions(-)

jump to
M i3/configi3/config

@@ -189,8 +189,6 @@ bindsym $mod+Shift+q move container to workspace $wsq; workspace $wsq

# Dual Monitor - -# Dual Monitor # the keybindings mod+Shift+t/y change the monitor position and then write to file the same command # it used to set the the respective position of the monitor. That command is then executed at startup # I am sure most of the flags given to xrandr command are redundant but I am not aware of that atm

@@ -204,17 +202,22 @@ set $monitor_none "xrandr --output HDMI1 --off --output DP1 --off --output eDP1 --primary --mode 1366x768 --pos 0x1024 --rotate normal --output VIRTUAL1 --off"

set $monitor_duplicate "xrandr --output eDP1 --primary --mode 1366x768 --scale 1x1 --output HDMI1 --same-as eDP1 --mode 1280x1024 --scale 0.75x0.75" +set $monitor_right_r_left "xrandr --output HDMI1 --mode 1280x1024 --pos 1370x768 --rotate left --output DP1 --off --output eDP1 --primary --mode 1366x768 --pos 0x1024 --rotate normal --output VIRTUAL1 --off" + # sets the monitor to the top -bindsym $mod+Shift+t exec $monitor_top ; exec sleep 1 ; exec $fehbg ; exec echo $monitor_top > ~/.screenlayout/last_layout +bindsym $mod+Shift+t exec $monitor_top , exec $fehbg , exec echo $monitor_top > ~/.screenlayout/last_layout # sets monitor to the right -bindsym $mod+Shift+y exec $monitor_right ; exec sleep 1 ; exec $fehbg ; exec echo $monitor_right > ~/.screenlayout/last_layout +bindsym $mod+Shift+y exec $monitor_right , exec $fehbg , exec echo $monitor_right > ~/.screenlayout/last_layout # when there is no external monitor connected -bindsym $mod+Shift+g exec $monitor_none ; exec sleep 1 ; exec $fehbg ; exec echo $monitor_right > ~/.screenlayout/last_layout +bindsym $mod+Shift+g exec $monitor_none , exec $fehbg , exec echo $monitor_right > ~/.screenlayout/last_layout # duplicate the laptop screen to an external monitor -bindsym $mod+Shift+f exec $monitor_duplicate ; exec sleep 1 ; exec $fehbg ; exec echo $monitor_duplicate > ~/.screenlayout/last_layout +bindsym $mod+Shift+f exec $monitor_duplicate , exec $fehbg , exec echo $monitor_duplicate > ~/.screenlayout/last_layout + +# sets monitor to the left and rotates it to left +bindsym $mod+Ctrl+y exec --no-startup-id $monitor_right_r_left , exec $fehbg , exec echo $monitor_right_r_left > ~/.screenlayout/last_layout # Open applications on specific workspaces # assign [class="Thunderbird"] $ws1

@@ -280,8 +283,6 @@ bindsym Return mode "default"

bindsym Escape mode "default" } -# Rotate the HDMI monitor -bindsym $mod+Ctrl+r exec --no-startup-id "xrandr --output HDMI1 --mode 1280x1024 --pos 1370x768 --rotate left --output DP1 --off --output eDP1 --primary --mode 1366x768 --pos 0x1024 --rotate normal --output VIRTUAL1 --off" ; exec $fehbg # Resize window (you can also use the mouse for that) bindsym $mod+r mode "resize"