birdwm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 774d29fec22778d51ccc2ab8899a6f9370768fac
parent da96aa67acd206b0ee685aff754e28280d46ed00
Author: grouse <bdmfegys@duck.com>
Date:   Tue, 27 Feb 2024 22:02:54 -0500

add screenshotcmd to keybinds array, along with WINKEYCMD variable in config.def.h

Diffstat:
Mconfig.def.h | 25++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -109,6 +109,7 @@ static const Layout layouts[] = { /* key definitions */ #define MODKEY Mod1Mask +#define WINKEY Mod4Mask #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ @@ -120,23 +121,25 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-i", NULL }; -static const char *termcmd[] = { "birdterm", NULL }; -/*static const char *wallpaper[] = { "nsxiv", "-t", "/home/tetraonini/Pictures/wallpapers/\*.png", NULL }; */ -/*static const char *wallpapergif[] = { "nsxiv", "-t", "/home/tetraonini/Pictures/wallpapers/gif/\*.gif", NULL }; */ -static const char *wallpaper[] = { "xwallpaper" }; /* calling wallpaper picker script, utilizes nsxiv */ -static const char *wallpapergif[] = { "xwallpapergif" }; /* calling gif wallpaper picker script, utilizes nsxiv */ -static const char *restarter[] = { "restarter" }; /* dmenu script for restarting daemons and getting system info through dunst */ -static const char *browser[] = { "surf" }; /* browser shortcut */ +static const char *dmenucmd[] = { "dmenu_run", "-i", NULL }; +static const char *termcmd[] = { "birdterm", NULL }; +static const char *screenshotcmd[] = { "screenshot" }; /* screenshot command */ +/*static const char *wallpaper[] = { "nsxiv", "-t", "/home/tetraonini/Pictures/wallpapers/\*.png", NULL }; */ +/*static const char *wallpapergif[] = { "nsxiv", "-t", "/home/tetraonini/Pictures/wallpapers/gif/\*.gif", NULL }; */ +static const char *wallpaper[] = { "xwallpaper" }; /* calling wallpaper picker script, utilizes nsxiv */ +static const char *wallpapergif[] = { "xwallpapergif" }; /* calling gif wallpaper picker script, utilizes nsxiv */ +static const char *restarter[] = { "restarter" }; /* dmenu script for restarting daemons and getting system info through dunst */ +static const char *browser[] = { "surf" }; /* browser shortcut */ /* pulseaudio script for setting volume, called by XF86 keys */ -static const char *volup[] = { "volume.sh", "up", NULL}; -static const char *voldown[] = { "volume.sh", "down", NULL}; -static const char *volmute[] = { "volume.sh", "mute", NULL}; +static const char *volup[] = { "volume.sh", "up", NULL}; +static const char *voldown[] = { "volume.sh", "down", NULL}; +static const char *volmute[] = { "volume.sh", "mute", NULL}; #include "exitdwm.c" static const Key keys[] = { /* modifier key function argument */ + { WINKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } }, { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_w, spawn, {.v = wallpaper } },