diff options
| -rw-r--r-- | nixpkgs/.config/nixpkgs/dwl/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixpkgs/.config/nixpkgs/dwl/config.h b/nixpkgs/.config/nixpkgs/dwl/config.h index cdc1ad9..346111e 100644 --- a/nixpkgs/.config/nixpkgs/dwl/config.h +++ b/nixpkgs/.config/nixpkgs/dwl/config.h @@ -114,8 +114,7 @@ static const char *voldown[] = { "amixer", "set", "Master", "10%-", NULL }; 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 *screen[] = { "grim", "-g", "$(slurp)", NULL }; -//static const char *screen[] = SHCMD("grim -g '$(slurp)'"); +static const char *hibernatecmd[] = { "systemctl", "hibernate", NULL }; static const Key keys[] = { /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ @@ -150,6 +149,7 @@ static const Key keys[] = { { 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} }, TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0), TAGKEYS( XKB_KEY_2, XKB_KEY_at, 1), TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2), |
