Compare commits
	
		
			2 Commits
		
	
	
		
			d5855878d3
			...
			9656840792
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 9656840792 | |||
| eb0c53d8e2 | 
							
								
								
									
										44
									
								
								flake.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										44
									
								
								flake.lock
									
									
									
										generated
									
									
									
								
							@@ -64,11 +64,11 @@
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1717525419,
 | 
			
		||||
        "narHash": "sha256-5z2422pzWnPXHgq2ms8lcCfttM0dz+hg+x1pCcNkAws=",
 | 
			
		||||
        "lastModified": 1717931644,
 | 
			
		||||
        "narHash": "sha256-Sz8Wh9cAiD5FhL8UWvZxBfnvxETSCVZlqWSYWaCPyu0=",
 | 
			
		||||
        "owner": "nix-community",
 | 
			
		||||
        "repo": "home-manager",
 | 
			
		||||
        "rev": "a7117efb3725e6197dd95424136f79147aa35e5b",
 | 
			
		||||
        "rev": "3d65009effd77cb0d6e7520b68b039836a7606cf",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -86,11 +86,11 @@
 | 
			
		||||
        "poetry2nix": "poetry2nix"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1717513284,
 | 
			
		||||
        "narHash": "sha256-93h1KbVh++U/FncreiMCMBSp/AkOG80Lu3RC27XBfVY=",
 | 
			
		||||
        "lastModified": 1718021647,
 | 
			
		||||
        "narHash": "sha256-tUC8stXLHFkfv1edZHY8rQbz6ggA4zRWJkT/x9KW5fU=",
 | 
			
		||||
        "ref": "master",
 | 
			
		||||
        "rev": "1affe0fde236e68de6556bb3abc9a03f9c3cb512",
 | 
			
		||||
        "revCount": 6,
 | 
			
		||||
        "rev": "aa23ddcffa5f1784a55b809846f6793791ec15e0",
 | 
			
		||||
        "revCount": 8,
 | 
			
		||||
        "type": "git",
 | 
			
		||||
        "url": "https://git.t-juice.club/torjus/huecli"
 | 
			
		||||
      },
 | 
			
		||||
@@ -124,11 +124,11 @@
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1717786204,
 | 
			
		||||
        "narHash": "sha256-4q0s6m0GUcN7q+Y2DqD27iLvbcd1G50T2lv08kKxkSI=",
 | 
			
		||||
        "lastModified": 1717974879,
 | 
			
		||||
        "narHash": "sha256-GTO3C88+5DX171F/gVS3Qga/hOs/eRMxPFpiHq2t+D8=",
 | 
			
		||||
        "owner": "nixos",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "051f920625ab5aabe37c920346e3e69d7d34400e",
 | 
			
		||||
        "rev": "c7b821ba2e1e635ba5a76d299af62821cbcb09f3",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -140,11 +140,11 @@
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs-stable": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1717530100,
 | 
			
		||||
        "narHash": "sha256-b4Dn+PnrZoVZ/BoR9JN2fTxXxplJrAsdSUIePf4Cacs=",
 | 
			
		||||
        "lastModified": 1717880976,
 | 
			
		||||
        "narHash": "sha256-BRvSCsKtDUr83NEtbGfHLUOdDK0Cgbezj2PtcHnz+sQ=",
 | 
			
		||||
        "owner": "nixos",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "a2e1d0414259a144ebdc048408a807e69e0565af",
 | 
			
		||||
        "rev": "4913a7c3d8b8d00cb9476a6bd730ff57777f740c",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -156,11 +156,11 @@
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs-stable_2": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1717265169,
 | 
			
		||||
        "narHash": "sha256-IITcGd6xpNoyq9SZBigCkv4+qMHSqot0RDPR4xsZ2CA=",
 | 
			
		||||
        "lastModified": 1717880976,
 | 
			
		||||
        "narHash": "sha256-BRvSCsKtDUr83NEtbGfHLUOdDK0Cgbezj2PtcHnz+sQ=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "3b1b4895b2c5f9f5544d02132896aeb9ceea77bc",
 | 
			
		||||
        "rev": "4913a7c3d8b8d00cb9476a6bd730ff57777f740c",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -172,11 +172,11 @@
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs_2": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1717112898,
 | 
			
		||||
        "narHash": "sha256-7R2ZvOnvd9h8fDd65p0JnB7wXfUvreox3xFdYWd1BnY=",
 | 
			
		||||
        "lastModified": 1717774105,
 | 
			
		||||
        "narHash": "sha256-HV97wqUQv9wvptiHCb3Y0/YH0lJ60uZ8FYfEOIzYEqI=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "6132b0f6e344ce2fe34fc051b72fb46e34f668e0",
 | 
			
		||||
        "rev": "d226935fd75012939397c83f6c385e4d6d832288",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -227,11 +227,11 @@
 | 
			
		||||
        "nixpkgs-stable": "nixpkgs-stable_2"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1717455931,
 | 
			
		||||
        "narHash": "sha256-8Q6mKSsto8gaGczXd4G0lvawdAYLa5Dlh3/g4hl5CaM=",
 | 
			
		||||
        "lastModified": 1718058322,
 | 
			
		||||
        "narHash": "sha256-d5jLlAwVi4NzT9yc5UrPiOpDxTRhu8GGh0IIfeFcdrM=",
 | 
			
		||||
        "owner": "Mic92",
 | 
			
		||||
        "repo": "sops-nix",
 | 
			
		||||
        "rev": "d4555e80d80d2fa77f0a44201ca299f9602492a0",
 | 
			
		||||
        "rev": "d071c74a7de1e26d211b69b6fbae37ae2e31a87f",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,12 +1,12 @@
 | 
			
		||||
general {
 | 
			
		||||
    lock_cmd = hyprlock          # dbus/sysd lock command (loginctl lock-session)
 | 
			
		||||
    # unlock_cmd = notify-send "unlock!"      # same as above, but unlock
 | 
			
		||||
    before_sleep_cmd = hyprlock    # command ran before sleep
 | 
			
		||||
    before_sleep_cmd = lockhelper # command ran before sleep
 | 
			
		||||
    # after_sleep_cmd =   # command ran after sleep
 | 
			
		||||
    ignore_dbus_inhibit = false             # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
listener {
 | 
			
		||||
    timeout = 240                            # in seconds
 | 
			
		||||
    on-timeout = hyprlock # command to run when timeout has passed
 | 
			
		||||
    on-timeout = lockhelper # command to run when timeout has passed
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -132,7 +132,7 @@
 | 
			
		||||
          "$mainMod,Return,exec,$term"
 | 
			
		||||
 | 
			
		||||
          # hyprlock
 | 
			
		||||
          "$shiftMainMod,l,exec,hyprlock"
 | 
			
		||||
          "$shiftMainMod,l,exec,lockhelper"
 | 
			
		||||
 | 
			
		||||
          # rofi
 | 
			
		||||
          "$mainMod,D,exec,rofi-launcher"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,35 @@
 | 
			
		||||
# BACKGROUND
 | 
			
		||||
background {
 | 
			
		||||
    monitor =
 | 
			
		||||
    path = ~/wallpapers/current
 | 
			
		||||
    monitor = DP-5
 | 
			
		||||
    path = /tmp/lockscreen/DP-5.png
 | 
			
		||||
    blur_passes = 3
 | 
			
		||||
    contrast = 0.8916
 | 
			
		||||
    brightness = 0.8172
 | 
			
		||||
    vibrancy = 0.1696
 | 
			
		||||
    vibrancy_darkness = 0.0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
background {
 | 
			
		||||
    monitor = DP-6
 | 
			
		||||
    path = /tmp/lockscreen/DP-6.png
 | 
			
		||||
    blur_passes = 3
 | 
			
		||||
    contrast = 0.8916
 | 
			
		||||
    brightness = 0.8172
 | 
			
		||||
    vibrancy = 0.1696
 | 
			
		||||
    vibrancy_darkness = 0.0
 | 
			
		||||
}
 | 
			
		||||
background {
 | 
			
		||||
    monitor = DP-7
 | 
			
		||||
    path = /tmp/lockscreen/DP-7.png
 | 
			
		||||
    blur_passes = 3
 | 
			
		||||
    contrast = 0.8916
 | 
			
		||||
    brightness = 0.8172
 | 
			
		||||
    vibrancy = 0.1696
 | 
			
		||||
    vibrancy_darkness = 0.0
 | 
			
		||||
}
 | 
			
		||||
background {
 | 
			
		||||
    monitor = DP-8
 | 
			
		||||
    path = /tmp/lockscreen/DP-8.png
 | 
			
		||||
    blur_passes = 3
 | 
			
		||||
    contrast = 0.8916
 | 
			
		||||
    brightness = 0.8172
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,8 @@ let
 | 
			
		||||
  lockhelper = pkgs.writeShellApplication {
 | 
			
		||||
    name = "lockhelper";
 | 
			
		||||
    runtimeInputs = with pkgs; [
 | 
			
		||||
      grimblast
 | 
			
		||||
      grim
 | 
			
		||||
      jq
 | 
			
		||||
    ];
 | 
			
		||||
    text = (builtins.readFile ./lockhelper.sh);
 | 
			
		||||
  };
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,11 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
set -eo pipefail
 | 
			
		||||
 | 
			
		||||
grimblast save output /tmp/lock.png || true
 | 
			
		||||
hyprlock
 | 
			
		||||
mkdir -p /tmp/lockscreen || true
 | 
			
		||||
 | 
			
		||||
monitors=$(hyprctl monitors -j | jq -r '.[] | select( .name | contains ("DP")) | .name')
 | 
			
		||||
 | 
			
		||||
while IFS= read -r m; do
 | 
			
		||||
    grim -o "$m" "/tmp/lockscreen/$m.png" || true
 | 
			
		||||
done <<< "$monitors"
 | 
			
		||||
hyprlock
 | 
			
		||||
 
 | 
			
		||||
@@ -39,7 +39,7 @@ if command -v wal &> /dev/null; then
 | 
			
		||||
    wal -i "$wallpaper_path"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
unlink "$WALLPAPER_DIR/current" || true
 | 
			
		||||
unlink "$WALLPAPER_DIR/current.png" || true
 | 
			
		||||
ln -s "$wallpaper_path" "$WALLPAPER_DIR/current.png"
 | 
			
		||||
 | 
			
		||||
for monitor in $(hyprctl monitors | grep 'Monitor' | awk '{ print $2 }'); do
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user