diff options
| author | kdam0 <me@kumardamani.net> | 2023-03-13 23:36:57 +0000 |
|---|---|---|
| committer | kdam0 <me@kumardamani.net> | 2023-03-13 23:36:57 +0000 |
| commit | 4b271b058f858e6dadc8dfe9bdf4cc7fd52de55e (patch) | |
| tree | 73e2d783462b36401669c2a8a7c8e299558ccb6e /nixpkgs | |
| parent | 2e7be84c789801304c86a07351621e0503ccdf40 (diff) | |
dwl key update
Diffstat (limited to 'nixpkgs')
| -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), |
