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 '';