Added Flameshot with GUI on PrintScreen key.

This commit is contained in:
ganome 2025-09-29 14:55:41 -06:00
parent a4db29d167
commit de28123974
Signed by untrusted user who does not match committer: Ganome
GPG Key ID: 944DE53336D81B83
4 changed files with 6 additions and 2 deletions

View File

@ -148,7 +148,7 @@ static const char *scratchpadcmd[] = {"s", "ghostty", "--x11-instance-name=spter
*/
static char *tagicons[][NUMTAGS] =
{
[DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" },
[DEFAULT_TAGS] = { "", "", "", "", "", "", "", "", "" },
[ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" },
[ALT_TAGS_DECORATION] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" },
};
@ -258,6 +258,7 @@ static const char *termcmd[] = { "ghostty", NULL };
static const char *term2cmd[] = { "kitty", NULL };
static const char *wallpapercmd[]= { "/home/ganome/.local/bin/wallsetter.dwm", NULL };
static const char *browsercmd[]= { "librewolf", NULL };
static const char *screenshotcmd[] = { "flameshot", "gui", NULL };
static const char *roficmd[] = {
"rofi",
@ -332,6 +333,7 @@ static const Key keys[] = {
{ 0, XF86XK_AudioPause, spawn, SHCMD("exec playerctl play-pause")},
{ 0, XF86XK_AudioNext, spawn, SHCMD("exec playerctl next")},
{ 0, XF86XK_AudioPrev, spawn, SHCMD("exec playerctl previous")},
{ 0, XK_Print, spawn, {.v = screenshotcmd } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)

View File

@ -148,7 +148,7 @@ static const char *scratchpadcmd[] = {"s", "ghostty", "--x11-instance-name=spter
*/
static char *tagicons[][NUMTAGS] =
{
[DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" },
[DEFAULT_TAGS] = { "", "", "", "", "", "", "", "", "" },
[ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" },
[ALT_TAGS_DECORATION] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" },
};
@ -258,6 +258,7 @@ static const char *termcmd[] = { "ghostty", NULL };
static const char *term2cmd[] = { "kitty", NULL };
static const char *wallpapercmd[]= { "/home/ganome/.local/bin/wallsetter.dwm", NULL };
static const char *browsercmd[]= { "librewolf", NULL };
static const char *screenshotcmd[] = { "flameshot", "gui", NULL };
static const char *roficmd[] = {
"rofi",
@ -332,6 +333,7 @@ static const Key keys[] = {
{ 0, XF86XK_AudioPause, spawn, SHCMD("exec playerctl play-pause")},
{ 0, XF86XK_AudioNext, spawn, SHCMD("exec playerctl next")},
{ 0, XF86XK_AudioPrev, spawn, SHCMD("exec playerctl previous")},
{ 0, XK_Print, spawn, {.v = screenshotcmd } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)

BIN
dwm

Binary file not shown.

BIN
dwm.o

Binary file not shown.