Compare commits

..

2 Commits

Author SHA1 Message Date
2d7429c305 scrot 2026-02-10 21:29:57 -05:00
63daec9312 update binds 2026-02-10 18:49:16 -05:00

View File

@@ -27,7 +27,7 @@ static const Rule rules[] = {
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 },
{ "Steam", NULL, NULL, 0, 1, -1 },
{ "sudoterm", NULL, NULL, 0, 1, -1 },
};
@@ -63,7 +63,9 @@ static const char *termcmd[] = { "st", NULL };
static const char *sobercmd[] = { "flatpak", "run", "org.vinegarhq.Sober", NULL };
static const char *steamcmd[] = { "steam", NULL };
static const char *discordcmd[] = { "vesktop", NULL };
static const char *browsercmd[] = { "librewolf", NULL };
static const char *minecraftcmd[] = { "atlauncher", NULL };
static const char *sudocmd[] = { "st", "-c", "sudoterm", "-e", "su", "-", NULL };
#include <X11/XF86keysym.h>
@@ -74,15 +76,12 @@ static const Key keys[] = {
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY, XK_w, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_v, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
@@ -94,6 +93,9 @@ static const Key keys[] = {
{ MODKEY, XK_g, spawn, {.v = steamcmd } },
{ MODKEY, XK_b, spawn, {.v = browsercmd } },
{ MODKEY, XK_t, spawn, {.v = sudocmd } },
{ MODKEY, XK_d, spawn, {.v = discordcmd } },
{ MODKEY, XK_m, spawn, {.v = minecraftcmd } },
{ MODKEY|ShiftMask, XK_s, spawn, SHCMD("scrot -s ~/latest.png && xclip -sel c -t image/png -i ~/latest.png")},
{ 0, XF86XK_AudioMute, spawn, SHCMD("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44") },
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%- && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%+; kill -44") },