This commit is contained in:
		| @@ -63,6 +63,7 @@ | ||||
|               nixpkgs.overlays = [ | ||||
|                 overlay-stable | ||||
|                 ghettoptt.overlays.default | ||||
|                 huecli.overlays.default | ||||
|               ]; | ||||
|             }) | ||||
|             ./hosts/magicman | ||||
|   | ||||
| @@ -2,7 +2,7 @@ source = ~/.cache/wal/colors-hyprland.conf | ||||
| # BACKGROUND | ||||
| background { | ||||
|     monitor = | ||||
|     path = ~/wallpapers/current | ||||
|     path = /tmp/lock.png | ||||
|     blur_passes = 3 | ||||
|     contrast = 0.8916 | ||||
|     brightness = 0.8172 | ||||
|   | ||||
| @@ -1,4 +1,7 @@ | ||||
| { pkgs, config, ... }: { | ||||
|   imports = [ | ||||
|     ./lockhelper.nix | ||||
|   ]; | ||||
|   home.file.".local/bin/hl-no-opacity" = { | ||||
|     source = ./hl-no-opacity.sh; | ||||
|     executable = true; | ||||
|   | ||||
							
								
								
									
										15
									
								
								home/scripts/lockhelper.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								home/scripts/lockhelper.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| { pkgs, ... }: | ||||
| let | ||||
|   lockhelper = pkgs.writeShellApplication { | ||||
|     name = "lockhelper"; | ||||
|     runtimeInputs = with pkgs; [ | ||||
|       grimblast | ||||
|     ]; | ||||
|     text = (builtins.readFile ./lockhelper.sh); | ||||
|   }; | ||||
| in | ||||
| { | ||||
|   home.packages = [ | ||||
|     lockhelper | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										6
									
								
								home/scripts/lockhelper.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								home/scripts/lockhelper.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| #!/usr/bin/env bash | ||||
| set -eo pipefail | ||||
|  | ||||
| grimblast save output /tmp/lock.png || true | ||||
| hyprlock | ||||
|  | ||||
| @@ -40,7 +40,7 @@ if command -v wal &> /dev/null; then | ||||
| fi | ||||
|  | ||||
| unlink "$WALLPAPER_DIR/current" || true | ||||
| ln -s "$wallpaper_path" "$WALLPAPER_DIR/current" | ||||
| ln -s "$wallpaper_path" "$WALLPAPER_DIR/current.png" | ||||
|  | ||||
| for monitor in $(hyprctl monitors | grep 'Monitor' | awk '{ print $2 }'); do | ||||
|     hyprctl hyprpaper wallpaper "$monitor,$wallpaper_path" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user