From: Skullheadx Date: Sun, 26 Apr 2026 03:45:07 +0000 (-0400) Subject: fix lockscreen X-Git-Url: http://git.skullheadx.com/nixos/static/index.html?a=commitdiff_plain;h=2150fac5055b2d3d771458a39c76bf7ae137bdbf;p=nixos.git fix lockscreen --- 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 diff --git a/todo b/todo index 7bf03c3..4419a4d 100644 --- 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