From 5771562864eff684944c18630f1e7cfaa33f1455 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Wed, 29 May 2019 19:13:14 +0200 Subject: [PATCH] Add screen configuration for DisplayLink device Signed-off-by: Severin Kaderli --- system/.config/polybar/config | 13 +++++++++++-- system/.config/polybar/launch | 4 +++- system/.local/bin/resolution | 11 ++++++++++- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/system/.config/polybar/config b/system/.config/polybar/config index 11bb070..fef5116 100644 --- a/system/.config/polybar/config +++ b/system/.config/polybar/config @@ -56,7 +56,7 @@ monitor = eDP1 [bar/top3] inherit = bar/top -monitor = DP2 +monitor = DVI-I-1 [bar/top-nvidia] inherit = bar/top @@ -66,6 +66,10 @@ monitor = HDMI-1-1 inherit = bar/top monitor = eDP-1-1 +[bar/top3-nvidia] +inherit = bar/top +monitor = DVI-I-2-1 + ####################################### # Bottom bar @@ -85,7 +89,7 @@ tray-position = left [bar/bottom3] inherit = bar/bottom -monitor = DP2 +monitor = DVI-I-1 tray-position = left [bar/bottom-nvidia] @@ -98,6 +102,11 @@ inherit = bar/bottom monitor = eDP-1-1 tray-position = left +[bar/bottom3-nvidia] +inherit = bar/bottom +monitor = DVI-I-2-1 +tray-position = left + ####################################### # i3 workspaces diff --git a/system/.config/polybar/launch b/system/.config/polybar/launch index c3d92b5..54ec7d9 100755 --- a/system/.config/polybar/launch +++ b/system/.config/polybar/launch @@ -38,5 +38,7 @@ polybar bottom3 & polybar top-nvidia & polybar top2-nvidia & +polybar top3-nvidia & polybar bottom-nvidia & -polybar bottom2-nvidia & \ No newline at end of file +polybar bottom2-nvidia & +polybar bottom3-nvidia & \ No newline at end of file diff --git a/system/.local/bin/resolution b/system/.local/bin/resolution index 26ebd4e..70d3d9d 100755 --- a/system/.local/bin/resolution +++ b/system/.local/bin/resolution @@ -12,9 +12,18 @@ # # USAGE: # ./resolution + +$(xrandr --listproviders | grep -q "modesetting") && xrandr --setprovideroutputsource 1 0 + xrandr \ --dpi 96 \ --output HDMI1 --mode 1280x1024 --pos 80x56 --rotate normal \ --output HDMI-1-1 --mode 1280x1024 --pos 80x56 --rotate normal \ + +# Integrated screen --output eDP1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \ ---output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal +--output eDP-1-1 --primary --mode 1920x1080 --pos 1360x0 --rotate normal \ + +# Displaylink HDMI port +--output DVI-I-1 --primary --mode 1920x1080 --pos 3280x0 --rotate normal +--output DVI-I-2-1 --primary --mode 1920x1080 --pos 3280x0 --rotate normal