all repos — dotfiles @ b8fc6b205e7615fd956331c6b8ac04b65530baa9

linux dotfiles

update i3 config

added one more monitor option
prithugoswami prithugoswami524@gmail.com
Thu, 03 May 2018 23:27:34 +0530
commit

b8fc6b205e7615fd956331c6b8ac04b65530baa9

parent

867ff3d9fc68ffbe54f5fcb95b457e406d9e5817

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

jump to
M i3/configi3/config

@@ -135,6 +135,9 @@ #navigate workspaces next / previous

bindsym $mod+Ctrl+Right workspace next bindsym $mod+Ctrl+Left workspace prev +#PD +bindsym $mod+p exec urxvt -e "pd" + # Workspace names # to display names or symbols instead of plain workspace numbers you can use # something like: set $ws1 1:mail

@@ -190,7 +193,7 @@ # 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 -# it just is what the arandr utility spit out +# It's just is what the arandr utility spit out set $monitor_top "xrandr --output HDMI1 --mode 1280x1024 --pos 40x0 --rotate normal --output DP1 --off --output eDP1 --primary --mode 1366x768 --pos 0x1024 --rotate normal --output VIRTUAL1 --off"

@@ -198,6 +201,8 @@ set $monitor_right "xrandr --output HDMI1 --mode 1280x1024 --pos 1366x768 --rotate normal --output DP1 --off --output eDP1 --primary --mode 1366x768 --pos 0x1024 --rotate normal --output VIRTUAL1 --off"

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" + # 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

@@ -207,6 +212,8 @@

# 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 +# 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 # Open applications on specific workspaces # assign [class="Thunderbird"] $ws1