s/compton/picom
20.03 uses picom instead. A compton alias exists, but I rather be precise.
This commit is contained in:
		
							parent
							
								
									f1cf10e580
								
							
						
					
					
						commit
						14329586b9
					
				
							
								
								
									
										14
									
								
								bin/scrrec
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								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 | ||||
|  |  | |||
|  | @ -21,7 +21,7 @@ with lib; | |||
|     ]; | ||||
| 
 | ||||
|     services = { | ||||
|       compton.enable = true; | ||||
|       picom.enable = true; | ||||
|       redshift.enable = true; | ||||
|       xserver = { | ||||
|         enable = true; | ||||
|  |  | |||
|  | @ -61,7 +61,7 @@ | |||
|     displayManager.lightdm.greeters.mini.user = config.my.username; | ||||
|   }; | ||||
| 
 | ||||
|   services.compton = { | ||||
|   services.picom = { | ||||
|     backend = "glx"; | ||||
|     vSync = true; | ||||
|     opacityRules = [ | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ with lib; | |||
|       path = ./.; | ||||
|     }; | ||||
| 
 | ||||
|     services.compton = { | ||||
|     services.picom = { | ||||
|       activeOpacity = "0.96"; | ||||
|       inactiveOpacity = "0.75"; | ||||
|       settings = { | ||||
|  |  | |||
|  | @ -22,7 +22,7 @@ let cfg = config.modules; in | |||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     services.compton = { | ||||
|     services.picom = { | ||||
|       fade = true; | ||||
|       fadeDelta = 1; | ||||
|       fadeSteps = [ "0.01" "0.012" ]; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue