nixos-config/home/fish/functions/dock.fish

21 lines
900 B
Fish
Raw Normal View History

function dock
xrandr \
--output eDP-1 --mode 1920x1080 --pos 1920x0 --rotate normal \
--output DP-1-1 --primary --mode 1920x1200 --pos 0x0 --rotate normal \
--output DP-1-2 --off \
--output DP-1-3 --off \
--output DP-1 --off \
--output HDMI-1 --off \
--output DP-2 --off \
--output HDMI-2 --off
2021-11-02 15:20:55 +01:00
i3-msg -q '[workspace="1"]' move workspace to output DP-1-1 2>/dev/null
i3-msg -q '[workspace="2"]' move workspace to output DP-1-1 2>/dev/null
i3-msg -q '[workspace="3"]' move workspace to output DP-1-1 2>/dev/null
i3-msg -q '[workspace="4"]' move workspace to output DP-1-1 2>/dev/null
2022-09-07 11:05:19 +02:00
i3-msg -q '[workspace="10"]' move workspace to output DP-1-1 2>/dev/null
2022-09-07 11:05:19 +02:00
i3-msg -q '[workspace="8"]' move workspace to output eDP-1 2>/dev/null
i3-msg -q '[workspace="9"]' move workspace to output eDP-1 2>/dev/null
end