This commit is contained in:
parent
f67b65245b
commit
8ab6181448
@ -63,6 +63,7 @@
|
|||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
overlay-stable
|
overlay-stable
|
||||||
ghettoptt.overlays.default
|
ghettoptt.overlays.default
|
||||||
|
huecli.overlays.default
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
./hosts/magicman
|
./hosts/magicman
|
||||||
|
@ -2,7 +2,7 @@ source = ~/.cache/wal/colors-hyprland.conf
|
|||||||
# BACKGROUND
|
# BACKGROUND
|
||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
path = ~/wallpapers/current
|
path = /tmp/lock.png
|
||||||
blur_passes = 3
|
blur_passes = 3
|
||||||
contrast = 0.8916
|
contrast = 0.8916
|
||||||
brightness = 0.8172
|
brightness = 0.8172
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{ pkgs, config, ... }: {
|
{ pkgs, config, ... }: {
|
||||||
|
imports = [
|
||||||
|
./lockhelper.nix
|
||||||
|
];
|
||||||
home.file.".local/bin/hl-no-opacity" = {
|
home.file.".local/bin/hl-no-opacity" = {
|
||||||
source = ./hl-no-opacity.sh;
|
source = ./hl-no-opacity.sh;
|
||||||
executable = true;
|
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
|
fi
|
||||||
|
|
||||||
unlink "$WALLPAPER_DIR/current" || true
|
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
|
for monitor in $(hyprctl monitors | grep 'Monitor' | awk '{ print $2 }'); do
|
||||||
hyprctl hyprpaper wallpaper "$monitor,$wallpaper_path"
|
hyprctl hyprpaper wallpaper "$monitor,$wallpaper_path"
|
||||||
|
Loading…
Reference in New Issue
Block a user