Only enable flameshot with x mode in ezpcusr
This commit is contained in:
parent
4d174b7260
commit
5ea55f5c81
@ -376,39 +376,6 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
mainConfig = {
|
mainConfig = {
|
||||||
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)
|
|
||||||
contrastOpacity=142
|
|
||||||
contrastUiColor=#0ee900
|
|
||||||
disabledTrayIcon=false
|
|
||||||
drawColor=#ff0000
|
|
||||||
drawThickness=9
|
|
||||||
savePath=/dev/null
|
|
||||||
uiColor=#6a00a3
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.keynav.enable = true;
|
services.keynav.enable = true;
|
||||||
services.clipmenu.enable = true;
|
services.clipmenu.enable = true;
|
||||||
|
|
||||||
@ -804,6 +771,18 @@ let
|
|||||||
mainWallpaperDisplay = if mainWallpaperDisplayMaybe != null then mainWallpaperDisplayMaybe else "fill";
|
mainWallpaperDisplay = if mainWallpaperDisplayMaybe != null then mainWallpaperDisplayMaybe else "fill";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
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)
|
||||||
|
contrastOpacity=142
|
||||||
|
contrastUiColor=#0ee900
|
||||||
|
disabledTrayIcon=false
|
||||||
|
drawColor=#ff0000
|
||||||
|
drawThickness=9
|
||||||
|
savePath=/dev/null
|
||||||
|
uiColor=#6a00a3
|
||||||
|
'';
|
||||||
|
|
||||||
systemd.user.services =
|
systemd.user.services =
|
||||||
if mainWallpaperImg != null then {
|
if mainWallpaperImg != null then {
|
||||||
background = {
|
background = {
|
||||||
@ -821,7 +800,28 @@ let
|
|||||||
|
|
||||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
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 = {
|
services.picom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user