[NixOS] Add shutter for screenshotting

This commit is contained in:
Ivan Malison 2023-07-28 11:58:43 -06:00
parent af33ddfb79
commit 73cf253f62
2 changed files with 17 additions and 0 deletions

View File

@ -80,6 +80,7 @@
rofi rofi
rofi-pass rofi-pass
rofi-systemd rofi-systemd
shutter
simplescreenrecorder simplescreenrecorder
skippy-xd skippy-xd
synergy synergy

View File

@ -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 = { systemd.user.services.picom = {
Unit = { Unit = {
Description = "Picom X11 compositor"; Description = "Picom X11 compositor";