mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2026-02-04 03:26:25 -05:00
Compare commits
6 commits
c35ba0afa7
...
3ac2d7261d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ac2d7261d | ||
|
|
2a53581ba9 | ||
|
|
cb84e2f285 | ||
|
|
3824b98af1 | ||
|
|
06651b8432 | ||
|
|
cc7e6cb104 |
1 changed files with 6 additions and 1 deletions
7
config.h
7
config.h
|
|
@ -121,7 +121,7 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA
|
|||
{ MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT,SKEY,toggletag, {.ui = 1 << TAG} }
|
||||
|
||||
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", "-l", cmd, NULL } }
|
||||
|
||||
/* commands */
|
||||
static const char *termcmd[] = { "foot", NULL };
|
||||
|
|
@ -133,6 +133,11 @@ static const Key keys[] = {
|
|||
/* modifier key function argument */
|
||||
{ MODKEY, XKB_KEY_space, spawn, {.v = menucmd} },
|
||||
{ MODKEY, XKB_KEY_s, spawn, SHCMD("grim -g \"$(slurp -d)\" - | wl-copy") },
|
||||
{ 0, XKB_KEY_XF86AudioRaiseVolume, spawn, SHCMD("/home/fabric/nixos-configs/files/scripts/volume-up.sh") },
|
||||
{ 0, XKB_KEY_XF86AudioLowerVolume, spawn, SHCMD("/home/fabric/nixos-configs/files/scripts/volume-down.sh") },
|
||||
{ 0, XKB_KEY_XF86AudioMute, spawn, SHCMD("/home/fabric/nixos-configs/files/scripts/volume-mute.sh") },
|
||||
{ 0, XKB_KEY_XF86MonBrightnessUp, spawn, SHCMD("/home/fabric/nixos-configs/files/scripts/brightness-up.sh") },
|
||||
{ 0, XKB_KEY_XF86MonBrightnessDown, spawn, SHCMD("/home/fabric/nixos-configs/files/scripts/brightness-down.sh") },
|
||||
{ MODKEY, XKB_KEY_t, spawn, {.v = termcmd} },
|
||||
{ MODKEY, XKB_KEY_b, spawn, {.v = browsercmd} },
|
||||
{ MODKEY, XKB_KEY_j, focusstack, {.i = +1} },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue