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" ;; |     d) delay="$OPTARG" ;; | ||||||
|     f) fps=$OPTARG ;; |     f) fps=$OPTARG ;; | ||||||
|     g) geom="$OPTARG" ;; |     g) geom="$OPTARG" ;; | ||||||
|     p) compton= ;; |     p) picom= ;; | ||||||
|     s) is_script=1 ;; |     s) is_script=1 ;; | ||||||
|   esac |   esac | ||||||
| done | done | ||||||
|  | @ -83,14 +83,14 @@ fi | ||||||
| read -r W H X Y < <(select-region) | read -r W H X Y < <(select-region) | ||||||
| [[ -z "$W$H$X$Y" ]] && exit 1 | [[ -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. | # recordings, so temporarily disable it. | ||||||
| compton= | picom= | ||||||
| if systemctl is-enabled --user compton >/dev/null; then | if systemctl is-enabled --user picom >/dev/null; then | ||||||
|   systemctl --user stop compton |   systemctl --user stop picom | ||||||
|   compton=1 |   picom=1 | ||||||
| fi | fi | ||||||
| cleanup() { [[ $compton ]] && systemctl --user start compton; } | cleanup() { [[ $picom ]] && systemctl --user start picom; } | ||||||
| trap cleanup EXIT | trap cleanup EXIT | ||||||
| 
 | 
 | ||||||
| # Let 'er rip | # Let 'er rip | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ with lib; | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|     services = { |     services = { | ||||||
|       compton.enable = true; |       picom.enable = true; | ||||||
|       redshift.enable = true; |       redshift.enable = true; | ||||||
|       xserver = { |       xserver = { | ||||||
|         enable = true; |         enable = true; | ||||||
|  |  | ||||||
|  | @ -61,7 +61,7 @@ | ||||||
|     displayManager.lightdm.greeters.mini.user = config.my.username; |     displayManager.lightdm.greeters.mini.user = config.my.username; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   services.compton = { |   services.picom = { | ||||||
|     backend = "glx"; |     backend = "glx"; | ||||||
|     vSync = true; |     vSync = true; | ||||||
|     opacityRules = [ |     opacityRules = [ | ||||||
|  |  | ||||||
|  | @ -17,7 +17,7 @@ with lib; | ||||||
|       path = ./.; |       path = ./.; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     services.compton = { |     services.picom = { | ||||||
|       activeOpacity = "0.96"; |       activeOpacity = "0.96"; | ||||||
|       inactiveOpacity = "0.75"; |       inactiveOpacity = "0.75"; | ||||||
|       settings = { |       settings = { | ||||||
|  |  | ||||||
|  | @ -22,7 +22,7 @@ let cfg = config.modules; in | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     services.compton = { |     services.picom = { | ||||||
|       fade = true; |       fade = true; | ||||||
|       fadeDelta = 1; |       fadeDelta = 1; | ||||||
|       fadeSteps = [ "0.01" "0.012" ]; |       fadeSteps = [ "0.01" "0.012" ]; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue