diff options
| -rw-r--r-- | nixpkgs/.config/nixpkgs/common/dwl_4/config.h | 16 | ||||
| -rw-r--r-- | nixpkgs/.config/nixpkgs/per-user/kdam0-home/configuration.nix | 1 | ||||
| -rw-r--r-- | nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix | 1 |
3 files changed, 11 insertions, 7 deletions
diff --git a/nixpkgs/.config/nixpkgs/common/dwl_4/config.h b/nixpkgs/.config/nixpkgs/common/dwl_4/config.h index 346111e..3a3c768 100644 --- a/nixpkgs/.config/nixpkgs/common/dwl_4/config.h +++ b/nixpkgs/.config/nixpkgs/common/dwl_4/config.h @@ -115,6 +115,7 @@ static const char *volup[] = { "amixer", "set", "Master", "10%+", NULL }; static const char *brightdown[] = { "light", "-U", "10", NULL }; static const char *brightup[] = { "light", "-A", "10", NULL }; static const char *hibernatecmd[] = { "systemctl", "hibernate", NULL }; +static const char *lockcmd[] = { "waylock", NULL }; static const Key keys[] = { /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ @@ -143,13 +144,14 @@ static const Key keys[] = { { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_less, tagmon, {.i = WLR_DIRECTION_LEFT} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_greater, tagmon, {.i = WLR_DIRECTION_RIGHT} }, // custom binds - { 0, XKB_KEY_XF86AudioMute, spawn, {.v = volmute} }, - { 0, XKB_KEY_XF86AudioLowerVolume, spawn, {.v = voldown} }, - { 0, XKB_KEY_XF86AudioRaiseVolume, spawn, {.v = volup} }, - { 0, XKB_KEY_XF86MonBrightnessDown, spawn, {.v = brightdown} }, - { 0, XKB_KEY_XF86MonBrightnessUp, spawn, {.v = brightup} }, - { 0, XKB_KEY_Print, spawn, SHCMD("slurp | grim -g - - | wl-copy && notify-send 'Copied selection to clipboard!' && wl-paste > $HOME/pics/$(date +'%Y-%m-%d-%H%M%S_grim.png')") }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Delete, spawn, {.v = hibernatecmd} }, + { 0, XKB_KEY_XF86AudioMute, spawn, {.v = volmute} }, + { 0, XKB_KEY_XF86AudioLowerVolume, spawn, {.v = voldown} }, + { 0, XKB_KEY_XF86AudioRaiseVolume, spawn, {.v = volup} }, + { 0, XKB_KEY_XF86MonBrightnessDown, spawn, {.v = brightdown} }, + { 0, XKB_KEY_XF86MonBrightnessUp, spawn, {.v = brightup} }, + { 0, XKB_KEY_Print, spawn, SHCMD("slurp | grim -g - - | wl-copy && notify-send 'Copied selection to clipboard!' && wl-paste > $HOME/pics/$(date +'%Y-%m-%d-%H%M%S_grim.png')") }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Delete, spawn, {.v = hibernatecmd} }, + { MODKEY, XKB_KEY_Delete, spawn, {.v = lockcmd} }, TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0), TAGKEYS( XKB_KEY_2, XKB_KEY_at, 1), TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2), diff --git a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/configuration.nix b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/configuration.nix index dff9f61..2d03fe9 100644 --- a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/configuration.nix +++ b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/configuration.nix @@ -114,5 +114,6 @@ services.fwupd.enable = true; services.blueman.enable = true; + security.pam.services.waylock = {}; } diff --git a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix index 53f740c..f54ff58 100644 --- a/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix +++ b/nixpkgs/.config/nixpkgs/per-user/kdam0-home/home.nix @@ -70,6 +70,7 @@ pkgs.polkit pkgs.light pkgs.wbg + pkgs.waylock # Browsers pkgs.firefox pkgs.brave |
