From df69b2a47709c7c6d608e7e91f0130e431db00a5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 19 Jun 2022 10:59:10 +0200 Subject: ... --- accounts/gkleen@sif/autorandr-profiles/bstr.nix | 21 ------------------- accounts/gkleen@sif/autorandr-profiles/def.nix | 6 ++++++ accounts/gkleen@sif/autorandr-profiles/wk.nix | 27 +++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 21 deletions(-) delete mode 100644 accounts/gkleen@sif/autorandr-profiles/bstr.nix create mode 100644 accounts/gkleen@sif/autorandr-profiles/wk.nix (limited to 'accounts/gkleen@sif/autorandr-profiles') diff --git a/accounts/gkleen@sif/autorandr-profiles/bstr.nix b/accounts/gkleen@sif/autorandr-profiles/bstr.nix deleted file mode 100644 index 527f8321..00000000 --- a/accounts/gkleen@sif/autorandr-profiles/bstr.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ - fingerprint = { - "eDP-1-1" = "00ffffffffffff004c83414100000000131d0104b5221378029491ae513eb7240b505400000001010101010101010101010101010101f0d40040f17018803020440058c21000001bf0d40040f17018803020440058c21000001b0000000f00ff093cff093c2c800000000000000000fe0041544e413536575230382d3020011502030f00e3058000e6060501736d0700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab"; - "DP-1.3" = "00ffffffffffff000469a3289bdd00000b190104a53e22783a1cb5a3574fa0270d5054bfef00d1c0814081809500b300714f81c0010122cc0050f0703e80181035006d552100001a04740030f2705a80b0588a006d552100001a000000fd001e5018a03c041100f0f838f03c000000fc0041535553205042323837510a2001a8020327714f0102031112130414051f900e0f1d1e23091707830100006a030c0010000078200000565e00a0a0a02950302035006d552100001ee26800a0a0402e60302036006d552100001a011d00bc52d01e20b82855406d552100001e8c0ad090204031200c4055006d55210000180000000000000000000000000000000064"; - }; - config = { - "DP-1.3" = { - enable = true; - primary = true; - position = "3840x0"; - rate = "60"; - mode = "3840x2160"; - }; - eDP-1-1 = { - enable = true; - primary = false; - position = "0x0"; - mode = "3840x2160"; - }; - }; -} diff --git a/accounts/gkleen@sif/autorandr-profiles/def.nix b/accounts/gkleen@sif/autorandr-profiles/def.nix index 304b4afe..5733dbe7 100644 --- a/accounts/gkleen@sif/autorandr-profiles/def.nix +++ b/accounts/gkleen@sif/autorandr-profiles/def.nix @@ -1,3 +1,4 @@ +{ pkgs, ... }: { fingerprint = { eDP-1-1 = "00ffffffffffff004c83414100000000131d0104b5221378029491ae513eb7240b505400000001010101010101010101010101010101f0d40040f17018803020440058c21000001bf0d40040f17018803020440058c21000001b0000000f00ff093cff093c2c800000000000000000fe0041544e413536575230382d3020011502030f00e3058000e6060501736d0700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab"; @@ -10,4 +11,9 @@ mode = "3840x2160"; }; }; + hooks = { + postswitch = '' + ${pkgs.networkmanager}/nmcli radio wifi on + ''; + }; } diff --git a/accounts/gkleen@sif/autorandr-profiles/wk.nix b/accounts/gkleen@sif/autorandr-profiles/wk.nix new file mode 100644 index 00000000..97fa14c9 --- /dev/null +++ b/accounts/gkleen@sif/autorandr-profiles/wk.nix @@ -0,0 +1,27 @@ +{ pkgs, ... }: +{ + fingerprint = { + "eDP-1-1" = "00ffffffffffff004c83414100000000131d0104b5221378029491ae513eb7240b505400000001010101010101010101010101010101f0d40040f17018803020440058c21000001bf0d40040f17018803020440058c21000001b0000000f00ff093cff093c2c800000000000000000fe0041544e413536575230382d3020011502030f00e3058000e6060501736d0700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab"; + "DP-1.3" = "00ffffffffffff000469a3289bdd00000b190104a53e22783a1cb5a3574fa0270d5054bfef00d1c0814081809500b300714f81c0010122cc0050f0703e80181035006d552100001a04740030f2705a80b0588a006d552100001a000000fd001e5018a03c041100f0f838f03c000000fc0041535553205042323837510a2001a8020327714f0102031112130414051f900e0f1d1e23091707830100006a030c0010000078200000565e00a0a0a02950302035006d552100001ee26800a0a0402e60302036006d552100001a011d00bc52d01e20b82855406d552100001e8c0ad090204031200c4055006d55210000180000000000000000000000000000000064"; + }; + config = { + "DP-1.3" = { + enable = true; + primary = true; + position = "3840x0"; + rate = "60"; + mode = "3840x2160"; + }; + eDP-1-1 = { + enable = true; + primary = false; + position = "0x0"; + mode = "3840x2160"; + }; + }; + hooks = { + postswitch = '' + ${pkgs.networkmanager}/nmcli radio wifi off + ''; + }; +} -- cgit v1.2.3