From 172ef4ec810cbb255ecc8ca631ae2951eac6b0c8 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Thu, 27 Apr 2023 13:36:59 +0200 Subject: [PATCH] add lock screen button --- profiles/xsession/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/profiles/xsession/default.nix b/profiles/xsession/default.nix index a8b12cf..84e351e 100644 --- a/profiles/xsession/default.nix +++ b/profiles/xsession/default.nix @@ -77,6 +77,12 @@ in "Print" = "exec scrot %Y-%m-%d_$wx$h_scrot.png -z -e 'mv $f /home/daniel/Pictures/screenshots/'"; "${modifier}+Print" = "exec scrot /home/daniel/Pictures/Screenshots/%Y-%m-%d_$wx$h_scrot.png -z"; + "${modifier}+l" = "exec ${pkgs.writers.writeBash "hello_world" '' + dunstctl set-paused true + ${pkgs.i3lock}/bin/i3lock -n -i ~/images/wallpapers/locked.png + dunstctl set-paused false + ''}"; + "XF86Display" = "exec arandr"; "${modifier}+Shift+U" = "exec $HOME/.config/nixpkgs/nix-dotfiles/scripts/dmenuunicode";