{ 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
- [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