home: fish: add docking / undocking scripts
This commit is contained in:
parent
9532ca93c3
commit
8b646cdc58
19
home/fish/functions/dock.fish
Normal file
19
home/fish/functions/dock.fish
Normal file
|
@ -0,0 +1,19 @@
|
|||
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
|
||||
|
||||
i3-msg '[workspace="1"]' move workspace to output DP-1-1
|
||||
i3-msg '[workspace="2"]' move workspace to output DP-1-1
|
||||
i3-msg '[workspace="3"]' move workspace to output DP-1-1
|
||||
i3-msg '[workspace="4"]' move workspace to output DP-1-1
|
||||
i3-msg '[workspace="9"]' move workspace to output DP-1-1
|
||||
|
||||
i3-msg '[workspace="10"]' move workspace to output eDP-1
|
||||
end
|
11
home/fish/functions/undock.fish
Normal file
11
home/fish/functions/undock.fish
Normal file
|
@ -0,0 +1,11 @@
|
|||
function undock
|
||||
xrandr \
|
||||
--output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal \
|
||||
--output DP-1-1 --off \
|
||||
--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
|
||||
end
|
Loading…
Reference in a new issue