From 01c8dd0799a1bd83b7880de7f5866ecb4117bc4a Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Wed, 8 Nov 2023 13:01:27 +0700 Subject: [PATCH] Setup and configure autorandr to alert qtile I connected a monitor --- .config/autorandr/laptop/config | 20 ++++++++++++++++++++ .config/autorandr/laptop/setup | 1 + .config/autorandr/office/config | 31 +++++++++++++++++++++++++++++++ .config/autorandr/office/setup | 2 ++ .config/autorandr/postswitch | 4 ++++ 5 files changed, 58 insertions(+) create mode 100644 .config/autorandr/laptop/config create mode 100644 .config/autorandr/laptop/setup create mode 100644 .config/autorandr/office/config create mode 100644 .config/autorandr/office/setup create mode 100755 .config/autorandr/postswitch diff --git a/.config/autorandr/laptop/config b/.config/autorandr/laptop/config new file mode 100644 index 0000000..0e506ca --- /dev/null +++ b/.config/autorandr/laptop/config @@ -0,0 +1,20 @@ +output HDMI-A-0 +off +output DisplayPort-0 +off +output DisplayPort-1 +off +output eDP +crtc 0 +mode 1920x1200 +pos 0x0 +primary +rate 120.00 +x-prop-colorspace Default +x-prop-max_bpc 16 +x-prop-non_desktop 0 +x-prop-scaling_mode None +x-prop-tearfree auto +x-prop-underscan off +x-prop-underscan_hborder 0 +x-prop-underscan_vborder 0 diff --git a/.config/autorandr/laptop/setup b/.config/autorandr/laptop/setup new file mode 100644 index 0000000..0f2ef2d --- /dev/null +++ b/.config/autorandr/laptop/setup @@ -0,0 +1 @@ +eDP 00ffffffffffff004d101e1500000000311e0104a51d127807de50a3544c99260f505400000001010101010101010101010101010101ed7b80a070b047403020360020b410000018f73d80a070b047403020360020b410000018000000fd003078999920010a202020202020000000fc004c513133344e314a5735320a20000a diff --git a/.config/autorandr/office/config b/.config/autorandr/office/config new file mode 100644 index 0000000..2be198e --- /dev/null +++ b/.config/autorandr/office/config @@ -0,0 +1,31 @@ +output DisplayPort-0 +off +output DisplayPort-1 +off +output eDP +crtc 0 +mode 1920x1200 +pos 0x0 +primary +rate 120.00 +x-prop-colorspace Default +x-prop-max_bpc 16 +x-prop-non_desktop 0 +x-prop-scaling_mode None +x-prop-tearfree auto +x-prop-underscan off +x-prop-underscan_hborder 0 +x-prop-underscan_vborder 0 +output HDMI-A-0 +crtc 1 +mode 1920x1080 +pos 1920x0 +rate 60.00 +x-prop-colorspace Default +x-prop-max_bpc 16 +x-prop-non_desktop 0 +x-prop-scaling_mode None +x-prop-tearfree auto +x-prop-underscan off +x-prop-underscan_hborder 0 +x-prop-underscan_vborder 0 diff --git a/.config/autorandr/office/setup b/.config/autorandr/office/setup new file mode 100644 index 0000000..42ea467 --- /dev/null +++ b/.config/autorandr/office/setup @@ -0,0 +1,2 @@ +HDMI-A-0 00ffffffffffff0005e30122a28e0000291d010380301b782a7771a359539e260f5054bfef00d1c0b30095008180814081c001010101023a801871382d40582c4500dc0c1100001e000000ff004755574b414841303336353134000000fc0032324231570a20202020202020000000fd00324c1e5311000a20202020202001f802031ef14b101f051404130312021101230907078301000065030c0010008c0ad08a20e02d10103e9600dc0c11000018011d007251d01e206e285500dc0c1100001e8c0ad08a20e02d10103e9600dc0c110000188c0ad090204031200c405500dc0c110000180000000000000000000000000000000000000000000000000049 +eDP 00ffffffffffff004d101e1500000000311e0104a51d127807de50a3544c99260f505400000001010101010101010101010101010101ed7b80a070b047403020360020b410000018f73d80a070b047403020360020b410000018000000fd003078999920010a202020202020000000fc004c513133344e314a5735320a20000a diff --git a/.config/autorandr/postswitch b/.config/autorandr/postswitch new file mode 100755 index 0000000..7a19091 --- /dev/null +++ b/.config/autorandr/postswitch @@ -0,0 +1,4 @@ +#!/usr/bin/bash + +/home/joe/.local/bin/qtile cmd-obj -o "cmd" -f "reload_config" +notify-send "Switched profile" -t 2000