From 1aab88ba52691ba92a2aae84547a4e564c3767d7 Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler Date: Wed, 13 Oct 2021 11:54:39 +0200 Subject: [PATCH] layout script stuff for i3 Signed-off-by: Stefan Ellmauthaler --- configuration.nix | 6 ++++++ home/config/nixpkgs/home.nix | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index d0d038b..215bc7d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -58,7 +58,13 @@ polybarFull # bar i3lock # lock screen xss-lock + autorandr ]; + extraSessionCommands = '' + if [ $(hostname) = 'stel-xps' ]; then + ${pkgs.autorandr}/bin/autorandr -c + fi + ''; }; services.gnome.gnome-keyring.enable = true; diff --git a/home/config/nixpkgs/home.nix b/home/config/nixpkgs/home.nix index dc0ae54..8b32f38 100644 --- a/home/config/nixpkgs/home.nix +++ b/home/config/nixpkgs/home.nix @@ -51,7 +51,6 @@ numlock.enable = true; profileExtra = '' if [ $(hostname) = 'stel-xps' ]; then - autorandr -c brightnessctl s 50% fi '';