From 89f23afcd92a8a56a1b17adcc53f47067922fefa Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Wed, 4 Mar 2020 19:23:38 +0100 Subject: [PATCH] Manage screens with grobi on work-laptop --- hosts/work-laptop/configuration.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hosts/work-laptop/configuration.nix b/hosts/work-laptop/configuration.nix index 4c4cd68..bd573b7 100644 --- a/hosts/work-laptop/configuration.nix +++ b/hosts/work-laptop/configuration.nix @@ -59,6 +59,23 @@ ]; services.network-manager-applet.enable = true; services.blueman-applet.enable = true; + services.grobi = { + enable = true; + executeAfter = ["${pkgs.systemd}/bin/systemctl --user restart stalonetray" "${pkgs.feh}/bin/feh --bg-fill ~/.wallpaper.png"]; + rules = [ + { + name = "Work HDMI"; + outputs_connected = [ "HDMI-1" ]; + configure_single = "HDMI-1"; + primary = true; + atomic = true; + } + { + name = "Fallback"; + configure_single = "eDP-1"; + } + ]; + }; }; # Enable touchpad support. services.xserver.libinput.enable = true;