dwm cleanup
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
parent
4b72214091
commit
aa719a1c73
18
dwm/config.h
18
dwm/config.h
|
@ -21,8 +21,6 @@ static const unsigned int snap = 8; /* snap pixel */
|
||||||
static const Bool showbar = True; /* False means no bar */
|
static const Bool showbar = True; /* False means no bar */
|
||||||
static const Bool topbar = True; /* False means bottom bar */
|
static const Bool topbar = True; /* False means bottom bar */
|
||||||
|
|
||||||
static const char *urgent_cmd = "/home/frank/Programmation/dotfiles/Utils/urgent.sh";
|
|
||||||
|
|
||||||
static const char *tags[] = {
|
static const char *tags[] = {
|
||||||
"1:FF", "2", "3", "4", "5", "6", "7", "8", "9", // 0-8
|
"1:FF", "2", "3", "4", "5", "6", "7", "8", "9", // 0-8
|
||||||
"|a", "o", "e", "u", //9-12
|
"|a", "o", "e", "u", //9-12
|
||||||
|
@ -35,12 +33,9 @@ static const Rule rules[] = {
|
||||||
* WM_NAME(STRING) = title
|
* WM_NAME(STRING) = title
|
||||||
*/
|
*/
|
||||||
/* class instance title tags mask isfloating monitor */
|
/* class instance title tags mask isfloating monitor */
|
||||||
{ "Gimp", NULL, NULL, 0, True, -1 },
|
|
||||||
{ "Firefox", NULL, NULL, 1 << 0, False, -1 },
|
{ "Firefox", NULL, NULL, 1 << 0, False, -1 },
|
||||||
{ "Thunderbird", NULL, NULL, 1 << 1, False, -1 },
|
{ "Thunderbird", NULL, NULL, 1 << 1, False, -1 },
|
||||||
{ "Spotify", NULL, NULL, 2, True, -1 },
|
{ "Spotify", NULL, NULL, 2, True, -1 },
|
||||||
{ "Profanity", NULL, NULL, 1 << 14, False, -1 },
|
|
||||||
{ "pdfpc", "pdfpc", NULL, 0, True, -1 },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* layout(s) */
|
/* layout(s) */
|
||||||
|
@ -83,7 +78,11 @@ static const char *volup[] = {"octopus.sh", "vol", "up", NULL};
|
||||||
static const char *voldown[] = {"octopus.sh", "vol", "down", NULL};
|
static const char *voldown[] = {"octopus.sh", "vol", "down", NULL};
|
||||||
static const char *volmute[] = {"octopus.sh", "vol", "mute", NULL};
|
static const char *volmute[] = {"octopus.sh", "vol", "mute", NULL};
|
||||||
static const char *lockcmd[] = {"octopus.sh", "lock", NULL};
|
static const char *lockcmd[] = {"octopus.sh", "lock", NULL};
|
||||||
static const char *emojenu[] = {"emojenu", NULL};
|
|
||||||
|
static const char *brightup[] = {"octopus.sh", "bright", "up", NULL};
|
||||||
|
static const char *brightdown[] = {"octopus.sh", "bright", "down", NULL};
|
||||||
|
|
||||||
|
static const char *rofimoji[] = {"rofimoji", "--action", "copy", "--skin-tone", "neutral", NULL};
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
|
@ -92,7 +91,7 @@ static Key keys[] = {
|
||||||
{ MODKEY|ShiftMask, XK_f, spawn, {.v = webcmd } },
|
{ MODKEY|ShiftMask, XK_f, spawn, {.v = webcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_t, spawn, {.v = mailcmd } },
|
{ MODKEY|ShiftMask, XK_t, spawn, {.v = mailcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } },
|
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } },
|
||||||
{ MODKEY, XK_t, spawn, {.v = emojenu} },
|
{ MODKEY, XK_t, spawn, {.v = rofimoji } },
|
||||||
{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY, XK_j, focusstack, {.i = +1 } }, /* change window focus */
|
{ MODKEY, XK_j, focusstack, {.i = +1 } }, /* change window focus */
|
||||||
{ MODKEY, XK_k, focusstack, {.i = -1 } }, /* idem */
|
{ MODKEY, XK_k, focusstack, {.i = -1 } }, /* idem */
|
||||||
|
@ -120,7 +119,10 @@ static Key keys[] = {
|
||||||
{ 0, XF86XK_AudioLowerVolume, spawn, { .v = voldown } },
|
{ 0, XF86XK_AudioLowerVolume, spawn, { .v = voldown } },
|
||||||
{ MODKEY, XK_KP_Page_Up, spawn, { .v = volup } },
|
{ MODKEY, XK_KP_Page_Up, spawn, { .v = volup } },
|
||||||
{ MODKEY, XK_KP_Page_Down, spawn, { .v = voldown } },
|
{ MODKEY, XK_KP_Page_Down, spawn, { .v = voldown } },
|
||||||
{ 0, XF86XK_AudioMute, spawn, { .v = volmute } },
|
{ 0, XF86XK_AudioMute, spawn, { .v = volmute } },
|
||||||
|
|
||||||
|
{ 0, XF86XK_MonBrightnessUp, spawn, { .v = brightup } },
|
||||||
|
{ 0, XF86XK_MonBrightnessDown, spawn, { .v = brightdown } },
|
||||||
|
|
||||||
TAGKEYS( XK_1, 0)
|
TAGKEYS( XK_1, 0)
|
||||||
TAGKEYS( XK_2, 1)
|
TAGKEYS( XK_2, 1)
|
||||||
|
|
|
@ -2119,12 +2119,14 @@ updatewmhints(Client *c) {
|
||||||
}
|
}
|
||||||
else { /* FIXME FRANK */
|
else { /* FIXME FRANK */
|
||||||
//strcpy(stext, "YopYop");
|
//strcpy(stext, "YopYop");
|
||||||
|
/*
|
||||||
if(urgent_cmd && wmh->flags &XUrgencyHint) {
|
if(urgent_cmd && wmh->flags &XUrgencyHint) {
|
||||||
if(fork() == 0) {
|
if(fork() == 0) {
|
||||||
system(urgent_cmd);
|
system(urgent_cmd);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
//drawbar(selmon);
|
//drawbar(selmon);
|
||||||
|
|
||||||
c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
|
c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
|
||||||
|
|
Loading…
Reference in a new issue