diff options
| author | Skullheadx <admonty1@protonmail.com> | 2026-04-25 23:45:07 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@protonmail.com> | 2026-04-25 23:45:07 -0400 |
| commit | 2150fac5055b2d3d771458a39c76bf7ae137bdbf (patch) | |
| tree | 3197cb321b4510b732237ea53452f2c5a3c0bd37 /configuration.nix | |
| parent | fix nvi (diff) | |
| download | nixos-2150fac5055b2d3d771458a39c76bf7ae137bdbf.tar.gz nixos-2150fac5055b2d3d771458a39c76bf7ae137bdbf.tar.bz2 nixos-2150fac5055b2d3d771458a39c76bf7ae137bdbf.zip | |
fix lockscreen
Diffstat (limited to '')
| -rw-r--r-- | configuration.nix | 52 |
1 files changed, 36 insertions, 16 deletions
diff --git a/configuration.nix b/configuration.nix index 9ec6a8c..638ca03 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,5 +1,20 @@ { config, pkgs, ... }: +let + lock-screen = pkgs.writeShellApplication { + name = "lock-screen"; + runtimeInputs = [ pkgs.betterlockscreen ]; + text = '' + if [ ! -f "$HOME/.cache/betterlockscreen/current/lock_dimblur.png" ]; then + betterlockscreen -u "$HOME/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg" --fx dimblur + fi + + betterlockscreen -l dimblur + ''; + }; + + +in { imports = [ ./hardware-configuration.nix @@ -40,29 +55,33 @@ files = { ".config/sxhkd/sxhkdrc".text = '' - super + space - ${pkgs.dmenu}/bin/dmenu_run +super + space + ${pkgs.dmenu}/bin/dmenu_run + +super + Return + ${pkgs.st}/bin/st + +super + b + ${pkgs.librewolf}/bin/librewolf - super + Return - ${pkgs.st}/bin/st +XF86AudioRaiseVolume + ${pkgs.pamixer}/bin/pamixer -i 5 - super + b - ${pkgs.librewolf}/bin/librewolf +XF86AudioLowerVolume + ${pkgs.pamixer}/bin/pamixer -d 5 - XF86AudioRaiseVolume - ${pkgs.pamixer}/bin/pamixer -i 5 +XF86AudioMute + ${pkgs.pamixer}/bin/pamixer -t - XF86AudioLowerVolume - ${pkgs.pamixer}/bin/pamixer -d 5 +super + s + ${pkgs.maim}/bin/maim -i $(${pkgs.xdotool}/bin/xdotool getactivewindow) | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png - XF86AudioMute - ${pkgs.pamixer}/bin/pamixer -t +super + shift + s + ${pkgs.maim}/bin/maim -s | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png - super + s - ${pkgs.maim}/bin/maim -i $(${pkgs.xdotool}/bin/xdotool getactivewindow) | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png +super + l + ${lock-screen}/bin/lock-screen - super + shift + s - ${pkgs.maim}/bin/maim -s | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png ''; }; packages = with pkgs; [ @@ -99,6 +118,7 @@ fastfetch sxhkd betterlockscreen +lock-screen pamixer maim slop |
