From 18625462d274da8133d0b460dd6ac6b7d1213bc4 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 28 Aug 2019 16:47:12 +0200 Subject: autorandr: Split docked config into -open and -closed --- autorandr/.config/autorandr/docked-close/block | 3 +++ autorandr/.config/autorandr/docked-close/config | 23 +++++++++++++++++++++++ autorandr/.config/autorandr/docked-close/setup | 3 +++ autorandr/.config/autorandr/docked-open/block | 3 +++ autorandr/.config/autorandr/docked-open/config | 25 +++++++++++++++++++++++++ autorandr/.config/autorandr/docked-open/setup | 3 +++ autorandr/.config/autorandr/docked/config | 23 ----------------------- autorandr/.config/autorandr/docked/setup | 3 --- 8 files changed, 60 insertions(+), 26 deletions(-) create mode 100755 autorandr/.config/autorandr/docked-close/block create mode 100644 autorandr/.config/autorandr/docked-close/config create mode 100644 autorandr/.config/autorandr/docked-close/setup create mode 100755 autorandr/.config/autorandr/docked-open/block create mode 100644 autorandr/.config/autorandr/docked-open/config create mode 100644 autorandr/.config/autorandr/docked-open/setup delete mode 100644 autorandr/.config/autorandr/docked/config delete mode 100644 autorandr/.config/autorandr/docked/setup diff --git a/autorandr/.config/autorandr/docked-close/block b/autorandr/.config/autorandr/docked-close/block new file mode 100755 index 0000000..782c3a7 --- /dev/null +++ b/autorandr/.config/autorandr/docked-close/block @@ -0,0 +1,3 @@ +#!/bin/sh + +exec grep -vq close /proc/acpi/button/lid/LID/state \ No newline at end of file diff --git a/autorandr/.config/autorandr/docked-close/config b/autorandr/.config/autorandr/docked-close/config new file mode 100644 index 0000000..d8ce503 --- /dev/null +++ b/autorandr/.config/autorandr/docked-close/config @@ -0,0 +1,23 @@ +output DP1 +off +output DP2 +off +output DP2-3 +off +output HDMI1 +off +output HDMI2 +off +output VIRTUAL1 +off +output eDP1 +off +output DP2-1 +mode 2560x1440 +pos 0x0 +primary +rate 59.95 +output DP2-2 +mode 2560x1440 +pos 2560x0 +rate 59.95 diff --git a/autorandr/.config/autorandr/docked-close/setup b/autorandr/.config/autorandr/docked-close/setup new file mode 100644 index 0000000..607eacb --- /dev/null +++ b/autorandr/.config/autorandr/docked-close/setup @@ -0,0 +1,3 @@ +DP2-1 00ffffffffffff0030aeaf61010101011c1c0104a53c22783e9325a9544d9e250c5054a1080081809500b300d1c0d100a9c001010101565e00a0a0a029503020350055502100001a023a801871382d40582c450055502100001e000000fd00324c1e7822000a202020202020000000fc004c454e20503237682d31300a20010d02031df14a01020304051413901f12230907078301000065030c001000011d007251d01e206e28550055502100001e8c0ad08a20e02d10103e96005550210000180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bd +DP2-2 00ffffffffffff0030aeaf61010101010a1c0104a53c22783e9325a9544d9e250c5054a1080081809500b300d1c0d100a9c001010101565e00a0a0a029503020350055502100001a023a801871382d40582c450055502100001e000000fd00324c1e7822000a202020202020000000fc004c454e20503237682d31300a20011f02031df14a01020304051413901f12230907078301000065030c001000011d007251d01e206e28550055502100001e8c0ad08a20e02d10103e96005550210000180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bd +eDP1 00ffffffffffff0006af3d2400000000001a0104951f117802a2b591575894281c505400000001010101010101010101010101010101843a8034713828403064310035ad10000018d02e8034713828403064310035ad10000018000000fe0041554f0a202020202020202020000000fe004231343048414e30322e34200a00e4 diff --git a/autorandr/.config/autorandr/docked-open/block b/autorandr/.config/autorandr/docked-open/block new file mode 100755 index 0000000..4c82692 --- /dev/null +++ b/autorandr/.config/autorandr/docked-open/block @@ -0,0 +1,3 @@ +#!/bin/sh + +exec grep -vq open /proc/acpi/button/lid/LID/state \ No newline at end of file diff --git a/autorandr/.config/autorandr/docked-open/config b/autorandr/.config/autorandr/docked-open/config new file mode 100644 index 0000000..44749be --- /dev/null +++ b/autorandr/.config/autorandr/docked-open/config @@ -0,0 +1,25 @@ +output DP1 +off +output DP2 +off +output DP2-3 +off +output HDMI1 +off +output HDMI2 +off +output VIRTUAL1 +off +output DP2-1 +mode 2560x1440 +pos 0x0 +primary +rate 59.95 +output DP2-2 +mode 2560x1440 +pos 2560x0 +rate 59.95 +output eDP1 +mode 1920x1080 +pos 1632x1440 +rate 60.03 diff --git a/autorandr/.config/autorandr/docked-open/setup b/autorandr/.config/autorandr/docked-open/setup new file mode 100644 index 0000000..607eacb --- /dev/null +++ b/autorandr/.config/autorandr/docked-open/setup @@ -0,0 +1,3 @@ +DP2-1 00ffffffffffff0030aeaf61010101011c1c0104a53c22783e9325a9544d9e250c5054a1080081809500b300d1c0d100a9c001010101565e00a0a0a029503020350055502100001a023a801871382d40582c450055502100001e000000fd00324c1e7822000a202020202020000000fc004c454e20503237682d31300a20010d02031df14a01020304051413901f12230907078301000065030c001000011d007251d01e206e28550055502100001e8c0ad08a20e02d10103e96005550210000180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bd +DP2-2 00ffffffffffff0030aeaf61010101010a1c0104a53c22783e9325a9544d9e250c5054a1080081809500b300d1c0d100a9c001010101565e00a0a0a029503020350055502100001a023a801871382d40582c450055502100001e000000fd00324c1e7822000a202020202020000000fc004c454e20503237682d31300a20011f02031df14a01020304051413901f12230907078301000065030c001000011d007251d01e206e28550055502100001e8c0ad08a20e02d10103e96005550210000180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bd +eDP1 00ffffffffffff0006af3d2400000000001a0104951f117802a2b591575894281c505400000001010101010101010101010101010101843a8034713828403064310035ad10000018d02e8034713828403064310035ad10000018000000fe0041554f0a202020202020202020000000fe004231343048414e30322e34200a00e4 diff --git a/autorandr/.config/autorandr/docked/config b/autorandr/.config/autorandr/docked/config deleted file mode 100644 index d8ce503..0000000 --- a/autorandr/.config/autorandr/docked/config +++ /dev/null @@ -1,23 +0,0 @@ -output DP1 -off -output DP2 -off -output DP2-3 -off -output HDMI1 -off -output HDMI2 -off -output VIRTUAL1 -off -output eDP1 -off -output DP2-1 -mode 2560x1440 -pos 0x0 -primary -rate 59.95 -output DP2-2 -mode 2560x1440 -pos 2560x0 -rate 59.95 diff --git a/autorandr/.config/autorandr/docked/setup b/autorandr/.config/autorandr/docked/setup deleted file mode 100644 index 607eacb..0000000 --- a/autorandr/.config/autorandr/docked/setup +++ /dev/null @@ -1,3 +0,0 @@ -DP2-1 00ffffffffffff0030aeaf61010101011c1c0104a53c22783e9325a9544d9e250c5054a1080081809500b300d1c0d100a9c001010101565e00a0a0a029503020350055502100001a023a801871382d40582c450055502100001e000000fd00324c1e7822000a202020202020000000fc004c454e20503237682d31300a20010d02031df14a01020304051413901f12230907078301000065030c001000011d007251d01e206e28550055502100001e8c0ad08a20e02d10103e96005550210000180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bd -DP2-2 00ffffffffffff0030aeaf61010101010a1c0104a53c22783e9325a9544d9e250c5054a1080081809500b300d1c0d100a9c001010101565e00a0a0a029503020350055502100001a023a801871382d40582c450055502100001e000000fd00324c1e7822000a202020202020000000fc004c454e20503237682d31300a20011f02031df14a01020304051413901f12230907078301000065030c001000011d007251d01e206e28550055502100001e8c0ad08a20e02d10103e96005550210000180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bd -eDP1 00ffffffffffff0006af3d2400000000001a0104951f117802a2b591575894281c505400000001010101010101010101010101010101843a8034713828403064310035ad10000018d02e8034713828403064310035ad10000018000000fe0041554f0a202020202020202020000000fe004231343048414e30322e34200a00e4 -- cgit 1.4.1