]> Skullheadx's Git Forge - nixos.git/commitdiff
fix lockscreen
authorSkullheadx <admonty1@protonmail.com>
Sun, 26 Apr 2026 03:45:07 +0000 (23:45 -0400)
committerSkullheadx <admonty1@protonmail.com>
Sun, 26 Apr 2026 03:45:07 +0000 (23:45 -0400)
configuration.nix
todo

index 9ec6a8c85063aeddf6271ae7427d7b636ddf2041..638ca03f8515d9fe6ed4c9920d7995b2c07b6591 100644 (file)
@@ -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
     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; [
     fastfetch
     sxhkd
     betterlockscreen
+lock-screen
     pamixer
     maim
     slop
diff --git a/todo b/todo
index 7bf03c30067b1cadd378a73f7d66c761541ae706..4419a4d3b5783625ff6d123af72bc09af89bd077 100644 (file)
--- a/todo
+++ b/todo
@@ -7,17 +7,19 @@
 - [x] swapping windows between monitors
 - [ ] statusbar
 - [ ] configure kinesis keyboard to work with dwm
+       - [ ] use macos to set the kinesis bindings properly or see if can do with nix
 - [ ] hotkeys with sxhkd
-       - [ ] screenshot
-       - [ ] lockscreen
+       - [x] screenshot
+       - [x] lockscreen
        - [x] dmenu run
-- [ ] integrate with dotfiles git repo
+       - [ ] make hotkeys work well with kinesis
+- [x] integrate with dotfiles git repo
 - [ ] browser (surf?)
        - [ ] umatrix vs ublock
 - [ ] dunst notifs
 - [ ] get the dwm, st and other suckless stuff as own src
 - [ ] mpd and ncmpcpp or rmpc
 - [ ] pass + pass-otp
-- [ ] fix fans spinning at low loads
+- [x] fix fans spinning at low loads