all repos — nixfiles @ 2ed6f273e51d76e15c259b8a866fded2a0d60054

System and user configuration, managed by nix and home-manager

autorandr: Add initial setup (for satoshipad)
Alan Pearce alan@alanpearce.eu
Fri, 08 Sep 2017 21:26:44 +0200
commit

2ed6f273e51d76e15c259b8a866fded2a0d60054

parent

b63e78ef7513df0ef510ffd3f86aee8c462eca61

A autorandr/.config/autorandr/docked/config
@@ -0,0 +1,22 @@+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 1920x1200
+pos 0x0
+rate 59.95
+output DP2-2
+mode 1920x1200
+pos 1920x0
+rate 59.95
A autorandr/.config/autorandr/docked/setup
@@ -0,0 +1,3 @@+DP2-1 00ffffffffffff0015c33325b1a21403041b0104a5342178fa0495a9554d9d26105054a10800a9408180b300a9c081c0810001010101283c80a070b023403020360007442100001a023a801871382d40582c450007442100001e000000fd003b3d1f4c11000a202020202020000000fc004556323435350a20202020202001cf020312f145900403020123091f0783010000023a801871382d40582c450007442100001e011d007251d01e206e28550007442100001e8f0ad08a20e02d10103e96000744210000188c0ad08a20e02d10103e9600074421000018d50980a020e02d101060a20007442100001800000000000000000000000000000000000000a4
+DP2-2 00ffffffffffff0015c3332569a21603041b0104a5342178fa0495a9554d9d26105054a10800a9408180b300a9c081c0810001010101283c80a070b023403020360007442100001a023a801871382d40582c450007442100001e000000fd003b3d1f4c11000a202020202020000000fc004556323435350a2020202020200115020312f145900403020123091f0783010000023a801871382d40582c450007442100001e011d007251d01e206e28550007442100001e8f0ad08a20e02d10103e96000744210000188c0ad08a20e02d10103e9600074421000018d50980a020e02d101060a20007442100001800000000000000000000000000000000000000a4
+eDP1 00ffffffffffff0006af3d2400000000001a0104951f117802a2b591575894281c505400000001010101010101010101010101010101843a8034713828403064310035ad10000018d02e8034713828403064310035ad10000018000000fe0041554f0a202020202020202020000000fe004231343048414e30322e34200a00e4
A autorandr/.config/autorandr/laptop/config
@@ -0,0 +1,15 @@+output DP1
+off
+output DP2
+off
+output HDMI1
+off
+output HDMI2
+off
+output VIRTUAL1
+off
+output eDP1
+mode 1920x1080
+pos 0x0
+primary
+rate 60.03
A autorandr/.config/autorandr/laptop/setup
@@ -0,0 +1,1 @@+eDP1 00ffffffffffff0006af3d2400000000001a0104951f117802a2b591575894281c505400000001010101010101010101010101010101843a8034713828403064310035ad10000018d02e8034713828403064310035ad10000018000000fe0041554f0a202020202020202020000000fe004231343048414e30322e34200a00e4
A autorandr/.config/autorandr/postswitch
@@ -0,0 +1,12 @@+#!/bin/sh
+DPI=96
+if [ "$1" != "laptop" ]
+then
+  DPI=144
+fi
+
+xrandr --dpi $DPI
+emacsclient -e "(setq display-pixels-per-inch $DPI)" > /dev/null
+i3-msg restart
+systemctl --user restart redshift
+
A autorandr/.config/autorandr/work-1/config
@@ -0,0 +1,17 @@+output DP1
+off
+output DP2
+off
+output HDMI1
+off
+output VIRTUAL1
+off
+output HDMI2
+mode 1920x1200
+pos 0x0
+primary
+rate 59.95
+output eDP1
+mode 1920x1080
+pos 1920x0
+rate 60.03
A autorandr/.config/autorandr/work-1/setup
@@ -0,0 +1,2 @@+HDMI2 00ffffffffffff0015c33425b1a21403041b010380342178ea0495a9554d9d26105054a10800a9408180b300a9c081c0810001010101283c80a070b023403020360007442100001a023a801871382d40582c450007442100001e000000fd00313d0f4c11000a202020202020000000fc004556323435350a202020202020011e020325f14e901f051404130312021107160615230907078301000066030c00100080e2007b011d8018711c1620582c250007442100009e011d80d0721c1620102c258007442100009e8c0ad08a20e02d10103e96000744210000188c0ad090204031200c4055000744210000180000000000000000000000000000000000008e
+eDP1 00ffffffffffff0006af3d2400000000001a0104951f117802a2b591575894281c505400000001010101010101010101010101010101843a8034713828403064310035ad10000018d02e8034713828403064310035ad10000018000000fe0041554f0a202020202020202020000000fe004231343048414e30322e34200a00e4