Merge pull request #74831 from adisbladis/picom-7_5
compton/picom: 7.2 -> 7.5
This commit is contained in:
commit
3dd9020f3e
@ -854,7 +854,7 @@
|
|||||||
./services/x11/extra-layouts.nix
|
./services/x11/extra-layouts.nix
|
||||||
./services/x11/clight.nix
|
./services/x11/clight.nix
|
||||||
./services/x11/colord.nix
|
./services/x11/colord.nix
|
||||||
./services/x11/compton.nix
|
./services/x11/picom.nix
|
||||||
./services/x11/unclutter.nix
|
./services/x11/unclutter.nix
|
||||||
./services/x11/unclutter-xfixes.nix
|
./services/x11/unclutter-xfixes.nix
|
||||||
./services/x11/desktop-managers/default.nix
|
./services/x11/desktop-managers/default.nix
|
||||||
|
@ -5,7 +5,7 @@ with builtins;
|
|||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
cfg = config.services.compton;
|
cfg = config.services.picom;
|
||||||
|
|
||||||
pairOf = x: with types; addCheck (listOf x) (y: length y == 2);
|
pairOf = x: with types; addCheck (listOf x) (y: length y == 2);
|
||||||
|
|
||||||
@ -31,20 +31,24 @@ let
|
|||||||
(key: value: "${toString key}=${mkValueString value};")
|
(key: value: "${toString key}=${mkValueString value};")
|
||||||
v)
|
v)
|
||||||
+ " }"
|
+ " }"
|
||||||
else abort "compton.mkValueString: unexpected type (v = ${v})";
|
else abort "picom.mkValueString: unexpected type (v = ${v})";
|
||||||
in "${escape [ sep ] k}${sep}${mkValueString v};")
|
in "${escape [ sep ] k}${sep}${mkValueString v};")
|
||||||
attrs);
|
attrs);
|
||||||
|
|
||||||
configFile = pkgs.writeText "compton.conf" (toConf cfg.settings);
|
configFile = pkgs.writeText "picom.conf" (toConf cfg.settings);
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
options.services.compton = {
|
imports = [
|
||||||
|
(mkAliasOptionModule [ "services" "compton" ] [ "services" "picom" ])
|
||||||
|
];
|
||||||
|
|
||||||
|
options.services.picom = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
Whether of not to enable Compton as the X.org composite manager.
|
Whether of not to enable Picom as the X.org composite manager.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -85,7 +89,7 @@ in {
|
|||||||
];
|
];
|
||||||
description = ''
|
description = ''
|
||||||
List of conditions of windows that should not be faded.
|
List of conditions of windows that should not be faded.
|
||||||
See <literal>compton(1)</literal> man page for more examples.
|
See <literal>picom(1)</literal> man page for more examples.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -125,7 +129,7 @@ in {
|
|||||||
];
|
];
|
||||||
description = ''
|
description = ''
|
||||||
List of conditions of windows that should have no shadow.
|
List of conditions of windows that should have no shadow.
|
||||||
See <literal>compton(1)</literal> man page for more examples.
|
See <literal>picom(1)</literal> man page for more examples.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -192,7 +196,7 @@ in {
|
|||||||
apply = x:
|
apply = x:
|
||||||
let
|
let
|
||||||
res = x != "none";
|
res = x != "none";
|
||||||
msg = "The type of services.compton.vSync has changed to bool:"
|
msg = "The type of services.picom.vSync has changed to bool:"
|
||||||
+ " interpreting ${x} as ${boolToString res}";
|
+ " interpreting ${x} as ${boolToString res}";
|
||||||
in
|
in
|
||||||
if isBool x then x
|
if isBool x then x
|
||||||
@ -222,13 +226,13 @@ in {
|
|||||||
type = loaOf (types.either configTypes (loaOf (types.either configTypes (loaOf configTypes))));
|
type = loaOf (types.either configTypes (loaOf (types.either configTypes (loaOf configTypes))));
|
||||||
default = {};
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
Additional Compton configuration.
|
Additional Picom configuration.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.compton.settings = let
|
services.picom.settings = let
|
||||||
# Hard conversion to float, literally lib.toInt but toFloat
|
# Hard conversion to float, literally lib.toInt but toFloat
|
||||||
toFloat = str: let
|
toFloat = str: let
|
||||||
may_be_float = builtins.fromJSON str;
|
may_be_float = builtins.fromJSON str;
|
||||||
@ -264,8 +268,8 @@ in {
|
|||||||
refresh-rate = mkDefault cfg.refreshRate;
|
refresh-rate = mkDefault cfg.refreshRate;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.compton = {
|
systemd.user.services.picom = {
|
||||||
description = "Compton composite manager";
|
description = "Picom composite manager";
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
partOf = [ "graphical-session.target" ];
|
partOf = [ "graphical-session.target" ];
|
||||||
|
|
||||||
@ -275,13 +279,13 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.compton}/bin/compton --config ${configFile}";
|
ExecStart = "${pkgs.picom}/bin/picom --config ${configFile}";
|
||||||
RestartSec = 3;
|
RestartSec = 3;
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.compton ];
|
environment.systemPackages = [ pkgs.picom ];
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.maintainers = with lib.maintainers; [ rnhmjoj ];
|
meta.maintainers = with lib.maintainers; [ rnhmjoj ];
|
@ -3,15 +3,16 @@
|
|||||||
, xorgproto, libxcb ,xcbutilrenderutil, xcbutilimage, pixman, libev
|
, xorgproto, libxcb ,xcbutilrenderutil, xcbutilimage, pixman, libev
|
||||||
, dbus, libconfig, libdrm, libGL, pcre, libX11
|
, dbus, libconfig, libdrm, libGL, pcre, libX11
|
||||||
, libXinerama, libXext, xwininfo, libxdg_basedir }:
|
, libXinerama, libXext, xwininfo, libxdg_basedir }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "compton";
|
pname = "picom";
|
||||||
version = "7.2";
|
version = "7.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "yshui";
|
owner = "yshui";
|
||||||
repo = "compton";
|
repo = "picom";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1vwa5f0nifc1913diqd6cp5k1dlfyc2ijxbcdj1s37ywpx6c63c3";
|
sha256 = "1l48fxl04vkzr4r94sl37nbbw7a621rn8sxmkbdv4252i1gjxd4z";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -43,7 +44,7 @@ stdenv.mkDerivation rec {
|
|||||||
installFlags = [ "PREFIX=$(out)" ];
|
installFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/compton-trans \
|
wrapProgram $out/bin/picom-trans \
|
||||||
--prefix PATH : ${lib.makeBinPath [ xwininfo ]}
|
--prefix PATH : ${lib.makeBinPath [ xwininfo ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -57,7 +58,7 @@ stdenv.mkDerivation rec {
|
|||||||
well-defined and proper place.
|
well-defined and proper place.
|
||||||
'';
|
'';
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
homepage = "https://github.com/yshui/compton";
|
homepage = "https://github.com/yshui/picom";
|
||||||
maintainers = with maintainers; [ ertes enzime twey ];
|
maintainers = with maintainers; [ ertes enzime twey ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
@ -71,6 +71,7 @@ mapAliases ({
|
|||||||
clawsMail = claws-mail; # added 2016-04-29
|
clawsMail = claws-mail; # added 2016-04-29
|
||||||
clutter_gtk = clutter-gtk; # added 2018-02-25
|
clutter_gtk = clutter-gtk; # added 2018-02-25
|
||||||
conkerorWrapper = conkeror; # added 2015-01
|
conkerorWrapper = conkeror; # added 2015-01
|
||||||
|
compton = picom; # added 2019-12-02
|
||||||
compton-git = compton; # added 2019-05-20
|
compton-git = compton; # added 2019-05-20
|
||||||
conntrack_tools = conntrack-tools; # added 2018-05
|
conntrack_tools = conntrack-tools; # added 2018-05
|
||||||
cool-old-term = cool-retro-term; # added 2015-01-31
|
cool-old-term = cool-retro-term; # added 2015-01-31
|
||||||
|
@ -22215,7 +22215,7 @@ in
|
|||||||
|
|
||||||
inherit (xorg) xcompmgr;
|
inherit (xorg) xcompmgr;
|
||||||
|
|
||||||
compton = callPackage ../applications/window-managers/compton {};
|
picom = callPackage ../applications/window-managers/picom {};
|
||||||
|
|
||||||
xdaliclock = callPackage ../tools/misc/xdaliclock {};
|
xdaliclock = callPackage ../tools/misc/xdaliclock {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user