From 8e13905c36c8cee2a37c01fb81b8412cc864a3a5 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 29 Sep 2023 13:55:43 +0200 Subject: [PATCH] home: fish: adapt dock functions to new laptop --- home/fish/functions/dock.fish | 22 +++++++++++----------- home/fish/functions/undock.fish | 9 ++++----- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/home/fish/functions/dock.fish b/home/fish/functions/dock.fish index 326050b..50ba309 100644 --- a/home/fish/functions/dock.fish +++ b/home/fish/functions/dock.fish @@ -1,19 +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 eDP-1 --mode 1920x1080 --pos 1920x120 --rotate normal \ --output HDMI-1 --off \ + --output DP-1 --off \ --output DP-2 --off \ - --output HDMI-2 --off + --output DP-3 --off \ + --output DP-4 --primary --mode 1920x1200 --pos 0x0 --rotate normal \ + --output DP-5 --off \ + --output DP-6 --off - 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 - i3-msg -q '[workspace="10"]' move workspace to output DP-1-1 2>/dev/null + i3-msg -q '[workspace="1"]' move workspace to output DP-4 2>/dev/null + i3-msg -q '[workspace="2"]' move workspace to output DP-4 2>/dev/null + i3-msg -q '[workspace="3"]' move workspace to output DP-4 2>/dev/null + i3-msg -q '[workspace="4"]' move workspace to output DP-4 2>/dev/null + i3-msg -q '[workspace="10"]' move workspace to output DP-4 2>/dev/null 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 diff --git a/home/fish/functions/undock.fish b/home/fish/functions/undock.fish index 89cafe6..c855cb7 100644 --- a/home/fish/functions/undock.fish +++ b/home/fish/functions/undock.fish @@ -1,11 +1,10 @@ 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-1 --off \ --output DP-2 --off \ - --output HDMI-2 --off + --output DP-3 --off \ + --output DP-4 --off \ + --output DP-5 --off end