TitanE 1 year ago
parent 025d78a2fc
commit ca5ae1cf10

@ -35,6 +35,8 @@ static const Rule rules[] = {
{ "Gimp", NULL, NULL, 0, 1, 0, 0, -1 },
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
{ "Alacritty", NULL, NULL, 0, 0, 1, 0, -1 },
{ "st", NULL, NULL, 0, 0, 1, 0, -1 },
{ "floating-term", NULL, NULL, 0, 1, 1, 0, -1 },
};
/* layout(s) */
@ -67,18 +69,24 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont,
static const char *termcmd[] = { "/usr/local/bin/st", NULL };
static const char *browsecmd[] = { "/usr/bin/librewolf", "-p", "browsing", NULL };
static const char *acccmd[] = { "/usr/bin/librewolf", "-p", "accounts", NULL };
static const char *volup[] = { "/usr/bin/pactl", "set-sink-mute", "@DEFAULT_SINK@", "false", "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+10%", NULL };
static const char *voldown[] = { "/usr/bin/pactl", "set-sink-mute", "@DEFAULT_SINK@", "false", "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+10%", NULL };
static const char *volmute[] = { "/usr/bin/pactl", "set-sink-mute", "@DEFAULT_SINK@", "true", NULL };
static const char *volup[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL };
static const char *voldown[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL };
static const char *volmute[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "0%", NULL };
static const char *filebrowse[] = { "/usr/bin/thunar", NULL };
static const char *sharecmd[] = { "/usr/local/bin/st", "-c", "floating-term", "-e", "/home/sufyaan/docs/sys/gits/scripts-dotfiles/scripts/shr", NULL };
static const char *bmcmd[] = { "/usr/local/bin/st", "-c", "floating-term", "-e", "/home/sufyaan/docs/sys/gits/scripts-dotfiles/scripts/bookmarks", NULL };
static const char *lockcmd[] = { "slock", NULL };
static const char *screenshotcmd[] = { "flameshot", "gui", NULL };
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ 0, XK_F9, spawn, {.v = volmute } },
{ 0, XK_F10, spawn, {.v = voldown } },
{ 0, XK_F11, spawn, {.v = volup } },
{ MODKEY, XK_e, spawn, {.v = filebrowse } },
{ MODKEY, XK_c, spawn, {.v = sharecmd } },
{ MODKEY, XK_z, spawn, {.v = bmcmd } },
{ MODKEY, XK_F9, spawn, {.v = volmute } },
{ MODKEY, XK_F10, spawn, {.v = voldown } },
{ MODKEY, XK_F11, spawn, {.v = volup } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } },
{ MODKEY|ShiftMask, XK_w, spawn, {.v = acccmd } },

BIN
dwm

Binary file not shown.

BIN
dwm.o

Binary file not shown.
Loading…
Cancel
Save