Compare commits
2 Commits
7ad2fa4c2c
...
2d7429c305
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d7429c305 | |||
| 63daec9312 |
12
config.def.h
12
config.def.h
@@ -27,8 +27,8 @@ static const Rule rules[] = {
|
||||
* WM_NAME(STRING) = title
|
||||
*/
|
||||
/* class instance title tags mask isfloating monitor */
|
||||
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
||||
{ "sudoterm", NULL, NULL, 0, 1, -1 },
|
||||
{ "Steam", NULL, NULL, 0, 1, -1 },
|
||||
{ "sudoterm", NULL, NULL, 0, 1, -1 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
@@ -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") },
|
||||
|
||||
Reference in New Issue
Block a user