mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2026-02-03 19:16:27 -05:00
Merge branch 'main' of ssh://codeberg.org/FabricSoul/dwl
This commit is contained in:
commit
27491b0e51
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