More workspace and docking changes

This commit is contained in:
jfm 2018-04-22 18:44:43 +02:00
parent 6479e61ec5
commit 1564e8b0d0
10 changed files with 55 additions and 45 deletions

View File

@ -1,17 +1,21 @@
#!/bin/bash #!/bin/bash
. ~/.config/i3/env
if [[ $(iwgetid -r) = *adazio* ]]; if [[ $(iwgetid -r) = *adazio* ]];
then then
echo "@Work" echo "@Work"
~/.config/i3/scripts/work-layout.sh & ~/.i3/scripts/work-monitors.sh &
~/.i3/scripts/work-layout.sh &
fi fi
if [[ $(iwgetid -r) = *moerks.dk* ]]; if [[ $(iwgetid -r) = *moerks.dk* ]];
then then
echo "@Home" echo "@Home"
~/.config/i3/scripts/home-layout.sh & ~/.i3/scripts/home-monitors.sh &
~/.i3/scripts/home-layout.sh &
fi fi
sleep 1
. ~/.i3/env
echo $PRIMARY echo $PRIMARY
echo $SECONDARY echo $SECONDARY
echo $LAPTOP echo $LAPTOP
@ -21,9 +25,9 @@ i3-msg "workspace 1: Comms; move workspace to output $SECONDARY"
i3-msg "workspace 2:Web; move workspace to output $PRIMARY" i3-msg "workspace 2:Web; move workspace to output $PRIMARY"
i3-msg "workspace 3:IDE; move workspace to output $PRIMARY" i3-msg "workspace 3:IDE; move workspace to output $PRIMARY"
i3-msg "workspace 4:Work; move workspace to output $PRIMARY" i3-msg "workspace 4:Work; move workspace to output $PRIMARY"
i3-msg "workspace 5: Media; move workspace to output $LAPTOP" i3-msg "workspace 5:OC; move workspace to output $PRIMARY"
i3-msg "workspace 6: REST; move workspace to output $SECONDARY" i3-msg "workspace 6:Logs; move workspace to output $SECONDARY"
i3-msg "workspace 7: OC; move workspace to output $PRIMARY" i3-msg "workspace 7:Term; move workspace to output $PRIMARY"
i3-msg "workspace 8: Logs; move workspace to output $PRIMARY" i3-msg "workspace 8:Media; move workspace to output $LAPTOP"
i3-msg "workspace 9: Terminals; move workspace to output $PRIMARY"
i3-msg "workspace 10: Terminals; move workspace to output $PRIMARY" exit

View File

@ -1,15 +1,14 @@
#!/bin/sh #!/bin/sh
ENV_FILE="/home/jfm/.config/i3/env" ENV_FILE="/home/jfm/.i3/env"
/bin/cat <<EOM >$ENV_FILE /bin/cat <<EOM >$ENV_FILE
export LAPTOP="eDP-1" export LAPTOP="eDP1"
export PRIMARY="DP-2-1" export PRIMARY="DP2-1"
export SECONDARY="DP-2-2" export SECONDARY="DP2-2"
export LDPI_PROFILE="default" export LDPI_PROFILE="default"
export HDPI_PROFILE="laptop" export HDPI_PROFILE="laptop"
EOM EOM
~/.config/polybar/home-polybar.sh #~/.config/polybar/home-polybar.sh
feh --bg-scale --zoom fill ~/.config/i3/wallpaper/fedora_simple.jpg

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
xrandr --output DP-2-1 --mode 1920x1200 --pos 1920x0 --rotate normal --output DP-2-2 --primary --mode 1920x1200 --pos 0x0 --rotate normal --output DP-2-3 --off --output eDP-1 --off --output HDMI-2 --off --output HDMI-1 --off --output DP-2 --off --output DP-1 --off xrandr --output DP2-1 --mode 1920x1200 --pos 1920x0 --rotate normal --output DP2-2 --primary --mode 1920x1200 --pos 0x0 --rotate normal --output DP2-3 --off --output eDP1 --off --output HDMI2 --off --output HDMI1 --off --output DP2 --off --output DP1 --off

View File

@ -3,9 +3,9 @@
ENV_FILE="/home/jfm/.i3/env" ENV_FILE="/home/jfm/.i3/env"
/bin/cat <<EOM >$ENV_FILE /bin/cat <<EOM >$ENV_FILE
export LAPTOP="eDP-1" export LAPTOP="eDP1"
export PRIMARY="eDP-1" export PRIMARY="eDP1"
export SECONDARY="eDP-1" export SECONDARY="eDP1"
export LDPI_PROFILE="laptop" export LDPI_PROFILE="laptop"
export HDPI_PROFILE="laptop" export HDPI_PROFILE="laptop"

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
xrandr --output HDMI-2 --off --output HDMI-1 --off --output DP-1 --off --output eDP-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP-2 --off xrandr --output HDMI2 --off --output HDMI1 --off --output DP1 --off --output eDP1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP2 --off

View File

@ -1,15 +1,22 @@
#!/bin/bash #!/bin/bash
. ~/.config/i3/env
~/.config/i3/scripts/laptop-layout.sh & ~/.i3/scripts/laptop-monitors.sh &
~/.i3/scripts/laptop-layout.sh &
sleep 1
. ~/.i3/env
echo $PRIMARY
echo $SECONDARY
echo $LAPTOP
i3-msg "workspace 1:Comms; move workspace to output $LAPTOP" i3-msg "workspace 1:Comms; move workspace to output $LAPTOP"
i3-msg "workspace 2:Web; move workspace to output $LAPTOP" i3-msg "workspace 2:Web; move workspace to output $LAPTOP"
i3-msg "workspace 3:IDE; move workspace to output $LAPTOP" i3-msg "workspace 3:IDE; move workspace to output $LAPTOP"
i3-msg "workspace 4:Work; move workspace to output $LAPTOP" i3-msg "workspace 4:Work; move workspace to output $LAPTOP"
i3-msg "workspace 5: Media; move workspace to output $LAPTOP" i3-msg "workspace 5:OC; move workspace to output $LAPTOP"
i3-msg "workspace 6: REST; move workspace to output $LAPTOP" i3-msg "workspace 6:Logs; move workspace to output $LAPTOP"
i3-msg "workspace 7: OC; move workspace to output $LAPTOP" i3-msg "workspace 7:Term; move workspace to output $LAPTOP"
i3-msg "workspace 8: Logs; move workspace to output $LAPTOP" i3-msg "workspace 8:Media; move workspace to output $LAPTOP"
i3-msg "workspace 9: Terminals; move workspace to output $LAPTOP"
i3-msg "workspace 10: Terminals; move workspace to output $LAPTOP" exit

View File

@ -1,15 +1,15 @@
#!/bin/sh #!/bin/sh
ENV_FILE="/home/jfm/.config/i3/env" ENV_FILE="/home/jfm/.i3/env"
/bin/cat <<EOM >$ENV_FILE /bin/cat <<EOM >$ENV_FILE
export LAPTOP="eDP-1" export LAPTOP="eDP1"
export PRIMARY="DP-2-2" export PRIMARY="DP2-2"
export SECONDARY="DP-2-1" export SECONDARY="DP2-1"
export LDPI_PROFILE="default" export LDPI_PROFILE="default"
export HDPI_PROFILE="laptop" export HDPI_PROFILE="laptop"
EOM EOM
~/.config/polybar/work-polybar.sh #~/.config/polybar/work-polybar.sh
feh --bg-scale --zoom fill ~/.config/i3/wallpaper/fedora_simple.jpg #feh --bg-scale --zoom fill ~/.config/i3/wallpaper/fedora_simple.jpg

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
xrandr --output DP-2-1 --mode 1280x1024 --pos 0x0 --rotate normal --output DP-2-2 --mode 1920x1080 --pos 1280x0 --rotate normal --output DP-2-3 --off --output eDP-1 --primary --mode 2560x1440 --pos 3200x0 --rotate normal --output HDMI-2 --off --output HDMI-1 --off --output DP-2 --off --output DP-1 --off xrandr --output DP2-1 --mode 1280x1024 --pos 0x0 --rotate normal --output DP2-2 --mode 1920x1080 --pos 1280x0 --rotate normal --output DP2-3 --off --output eDP1 --primary --mode 2560x1440 --pos 3200x0 --rotate normal --output HDMI-2 --off --output HDMI-1 --off --output DP2 --off --output DP1 --off

View File

@ -2,5 +2,5 @@
. ~/.i3/env . ~/.i3/env
i3-msg "workspace 1:Comms; append_layout ~/.i3/layouts/workspace1-comms.json" i3-msg "workspace 1:Comms; append_layout ~/.i3/layouts/workspace1-comms.json"
i3-msg "workspace 1:Comms; exec google-chrome-stable --new-window https://chat.google.com https://mattermost.yousee.dk https://tdcgroup.slack.com" i3-msg "workspace 1:Comms; exec google-chrome-stable --new-window https://chat.google.com https://mattermost.yousee.dk https://tdcgroup.slack.com --no-default-browser-check"
i3-msg "workspace 1:Comms; move workspace to output $SECONDARY" i3-msg "workspace 1:Comms; move workspace to output $SECONDARY"

View File

@ -2,6 +2,6 @@
. ~/.i3/env . ~/.i3/env
i3-msg "workspace 2:Web; append_layout ~/.i3/layouts/workspace2-web.json" i3-msg "workspace 2:Web; append_layout ~/.i3/layouts/workspace2-web.json"
i3-msg "workspace 2: Web; exec google-chrome-stable --new-window https://www.toggl.com/app/timer https://inbox.google.com/" i3-msg "workspace 2: Web; exec google-chrome-stable --new-window https://www.toggl.com/app/timer https://inbox.google.com/ --no-default-browser-check"
i3-msg "workspace 2: Web; move workspace to output $PRIMARY" i3-msg "workspace 2: Web; move workspace to output $PRIMARY"