diff --git a/bin/scrrec b/bin/scrrec index 2ebcca1f..a333674d 100755 --- a/bin/scrrec +++ b/bin/scrrec @@ -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 diff --git a/modules/desktop/bspwm.nix b/modules/desktop/bspwm.nix index 5ed095af..b0f53eac 100644 --- a/modules/desktop/bspwm.nix +++ b/modules/desktop/bspwm.nix @@ -21,7 +21,7 @@ with lib; ]; services = { - compton.enable = true; + picom.enable = true; redshift.enable = true; xserver = { enable = true; diff --git a/modules/desktop/common.nix b/modules/desktop/common.nix index 62ef0c6b..1334d518 100644 --- a/modules/desktop/common.nix +++ b/modules/desktop/common.nix @@ -61,7 +61,7 @@ displayManager.lightdm.greeters.mini.user = config.my.username; }; - services.compton = { + services.picom = { backend = "glx"; vSync = true; opacityRules = [ diff --git a/modules/themes/aquanaut/default.nix b/modules/themes/aquanaut/default.nix index 3ea0f701..9196e36b 100644 --- a/modules/themes/aquanaut/default.nix +++ b/modules/themes/aquanaut/default.nix @@ -17,7 +17,7 @@ with lib; path = ./.; }; - services.compton = { + services.picom = { activeOpacity = "0.96"; inactiveOpacity = "0.75"; settings = { diff --git a/modules/themes/fluorescence/default.nix b/modules/themes/fluorescence/default.nix index 45495e40..61c8145d 100644 --- a/modules/themes/fluorescence/default.nix +++ b/modules/themes/fluorescence/default.nix @@ -22,7 +22,7 @@ let cfg = config.modules; in }; }; - services.compton = { + services.picom = { fade = true; fadeDelta = 1; fadeSteps = [ "0.01" "0.012" ];