s/compton/picom

20.03 uses picom instead. A compton alias exists, but I rather be
precise.
This commit is contained in:
Henrik Lissner 2020-04-22 19:53:25 -04:00
parent f1cf10e580
commit 14329586b9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 11 additions and 11 deletions

View file

@ -22,7 +22,7 @@ while getopts c:d:f:g:ps opt; do
d) delay="$OPTARG" ;;
f) fps=$OPTARG ;;
g) geom="$OPTARG" ;;
p) compton= ;;
p) picom= ;;
s) is_script=1 ;;
esac
done
@ -83,14 +83,14 @@ fi
read -r W H X Y < <(select-region)
[[ -z "$W$H$X$Y" ]] && exit 1
# Compton with blur and/or transparencies cause unbearable flickering in
# picom with blur and/or transparencies cause unbearable flickering in
# recordings, so temporarily disable it.
compton=
if systemctl is-enabled --user compton >/dev/null; then
systemctl --user stop compton
compton=1
picom=
if systemctl is-enabled --user picom >/dev/null; then
systemctl --user stop picom
picom=1
fi
cleanup() { [[ $compton ]] && systemctl --user start compton; }
cleanup() { [[ $picom ]] && systemctl --user start picom; }
trap cleanup EXIT
# Let 'er rip

View file

@ -21,7 +21,7 @@ with lib;
];
services = {
compton.enable = true;
picom.enable = true;
redshift.enable = true;
xserver = {
enable = true;

View file

@ -61,7 +61,7 @@
displayManager.lightdm.greeters.mini.user = config.my.username;
};
services.compton = {
services.picom = {
backend = "glx";
vSync = true;
opacityRules = [

View file

@ -17,7 +17,7 @@ with lib;
path = ./.;
};
services.compton = {
services.picom = {
activeOpacity = "0.96";
inactiveOpacity = "0.75";
settings = {

View file

@ -22,7 +22,7 @@ let cfg = config.modules; in
};
};
services.compton = {
services.picom = {
fade = true;
fadeDelta = 1;
fadeSteps = [ "0.01" "0.012" ];