Compare commits

..

1 Commits

Author SHA1 Message Date
5ea55f5c81
Only enable flameshot with x mode in ezpcusr 2021-07-10 13:08:02 -07:00

View File

@ -771,27 +771,6 @@ let
mainWallpaperDisplay = if mainWallpaperDisplayMaybe != null then mainWallpaperDisplayMaybe else "fill";
in
{
systemd.user.services.flameshot = {
Unit = {
Description = "Flameshot screenshot tool";
After = [
"graphical-session-pre.target"
"polybar.service"
"stalonetray.service"
"taffybar.service"
];
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
Environment = "PATH=${config.home.profileDirectory}/bin";
ExecStart = "${flameshot}/bin/flameshot";
Restart = "on-abort";
};
};
xdg.configFile."flameshot/flameshot.ini".text = ''
[General]
buttons=@Variant(\0\0\0\x7f\0\0\0\vQList<int>\0\0\0\0\n\0\0\0\0\0\0\0\x2\0\0\0\x3\0\0\0\x5\0\0\0\x6\0\0\0\x12\0\0\0\xf\0\0\0\x13\0\0\0\b\0\0\0\n)
@ -821,7 +800,28 @@ let
Install = { WantedBy = [ "graphical-session.target" ]; };
};
} else { };
} else { } // {
flameshot = {
Unit = {
Description = "Flameshot screenshot tool";
After = [
"graphical-session-pre.target"
"polybar.service"
"stalonetray.service"
"taffybar.service"
];
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
Environment = "PATH=${config.home.profileDirectory}/bin";
ExecStart = "${flameshot}/bin/flameshot";
Restart = "on-abort";
};
};
};
services.picom = {
enable = true;