summaryrefslogtreecommitdiffstats
path: root/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix52
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