From 73cf253f6242cfb2c8a72befe58960982715d340 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 28 Jul 2023 11:58:43 -0600 Subject: [PATCH] [NixOS] Add shutter for screenshotting --- nixos/desktop.nix | 1 + nixos/home-manager.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/nixos/desktop.nix b/nixos/desktop.nix index 89ce649c..fb93291b 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -80,6 +80,7 @@ rofi rofi-pass rofi-systemd + shutter simplescreenrecorder skippy-xd synergy diff --git a/nixos/home-manager.nix b/nixos/home-manager.nix index 7798d1d1..0abadae8 100644 --- a/nixos/home-manager.nix +++ b/nixos/home-manager.nix @@ -119,6 +119,22 @@ inputs: { pkgs, config, ... }: { }; }; + systemd.user.services.shutter = { + Unit = { + Description = "Shutter"; + After = [ "graphical-session-pre.target" "tray.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + + Install = { WantedBy = [ "graphical-session.target" ]; }; + + Service = { + ExecStart = "${pkgs.shutter}/bin/shutter --min_at_startup"; + Restart = "always"; + RestartSec = 3; + }; + }; + systemd.user.services.picom = { Unit = { Description = "Picom X11 compositor";