From 83c6c1f22873ab0f50822998ef64ea9f3dff6d68 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Sat, 11 Feb 2023 17:26:59 +0100 Subject: [PATCH] Adding autorandr. --- _desktop/autorandr/docked/config | 20 ++++++++++++++++++++ _desktop/autorandr/docked/setup | 2 ++ _desktop/autorandr/nomad/config | 19 +++++++++++++++++++ _desktop/autorandr/nomad/setup | 1 + _desktop/install-desktop.sh | 2 +- 5 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 _desktop/autorandr/docked/config create mode 100644 _desktop/autorandr/docked/setup create mode 100644 _desktop/autorandr/nomad/config create mode 100644 _desktop/autorandr/nomad/setup diff --git a/_desktop/autorandr/docked/config b/_desktop/autorandr/docked/config new file mode 100644 index 0000000..099d117 --- /dev/null +++ b/_desktop/autorandr/docked/config @@ -0,0 +1,20 @@ +output HDMI-A-0 +off +output DisplayPort-1 +off +output eDP +off +output DisplayPort-0 +crtc 1 +filter bilinear +mode 3840x2160 +pos 0x0 +rate 60.00 +transform 0.750000,0.000000,0.000000,0.000000,0.750000,0.000000,0.000000,0.000000,1.000000 +x-prop-max_bpc 8 +x-prop-non_desktop 0 +x-prop-scaling_mode None +x-prop-tearfree on +x-prop-underscan off +x-prop-underscan_hborder 0 +x-prop-underscan_vborder 0 diff --git a/_desktop/autorandr/docked/setup b/_desktop/autorandr/docked/setup new file mode 100644 index 0000000..f8fca52 --- /dev/null +++ b/_desktop/autorandr/docked/setup @@ -0,0 +1,2 @@ +DisplayPort-0 00ffffffffffff001e6d0777dadb04000c1d0104b53c22789e3e31ae5047ac270c50542108007140818081c0a9c0d1c08100010101014dd000a0f0703e803020650c58542100001a286800a0f0703e800890650c58542100001a000000fd00383d1e8738000a202020202020000000fc004c472048445220344b0a20202001aa0203197144900403012309070783010000e305c000e3060501023a801871382d40582c450058542100001e565e00a0a0a029503020350058542100001a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000029 +eDP 00ffffffffffff0006af3d5700000000001c0104a51f1178022285a5544d9a270e505400000001010101010101010101010101010101b43780a070383e401010350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343048414e30352e37200a0070 diff --git a/_desktop/autorandr/nomad/config b/_desktop/autorandr/nomad/config new file mode 100644 index 0000000..2e2f8ab --- /dev/null +++ b/_desktop/autorandr/nomad/config @@ -0,0 +1,19 @@ +output HDMI-A-0 +off +output DisplayPort-0 +off +output DisplayPort-1 +off +output eDP +crtc 0 +mode 1920x1080 +pos 0x0 +primary +rate 60.03 +x-prop-max_bpc 16 +x-prop-non_desktop 0 +x-prop-scaling_mode None +x-prop-tearfree on +x-prop-underscan off +x-prop-underscan_hborder 0 +x-prop-underscan_vborder 0 diff --git a/_desktop/autorandr/nomad/setup b/_desktop/autorandr/nomad/setup new file mode 100644 index 0000000..ff6927c --- /dev/null +++ b/_desktop/autorandr/nomad/setup @@ -0,0 +1 @@ +eDP 00ffffffffffff0006af3d5700000000001c0104a51f1178022285a5544d9a270e505400000001010101010101010101010101010101b43780a070383e401010350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343048414e30352e37200a0070 diff --git a/_desktop/install-desktop.sh b/_desktop/install-desktop.sh index 9eb88d5..0b862d3 100644 --- a/_desktop/install-desktop.sh +++ b/_desktop/install-desktop.sh @@ -4,7 +4,7 @@ mkdir -p ~/.config ~/.local/bin # link config -for i in clipit gtk-3.0 neofetch qtile zathura; do +for i in autorandr clipit gtk-3.0 neofetch qtile zathura; do rm -rf ~/.config/${i} ln -sf $(pwd)/${i} ~/.config done