@@ -0,0 +1,2 @@ | |||||
dwm | |||||
*.o |
@@ -2,7 +2,7 @@ | |||||
/* appearance */ | /* appearance */ | ||||
static const unsigned int borderpx = 2; /* border pixel of windows */ | static const unsigned int borderpx = 2; /* border pixel of windows */ | ||||
static const unsigned int gappx = 15; | |||||
static const unsigned int gappx = 10; | |||||
static const unsigned int snap = 32; /* snap pixel */ | static const unsigned int snap = 32; /* snap pixel */ | ||||
static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ | static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ | ||||
static const int showbar = 1; /* 0 means no bar */ | static const int showbar = 1; /* 0 means no bar */ | ||||
@@ -21,7 +21,7 @@ static const char col_gray1[] = "#222222"; | |||||
static const char col_gray2[] = "#444444"; | static const char col_gray2[] = "#444444"; | ||||
static const char col_gray3[] = "#bbbbbb"; | static const char col_gray3[] = "#bbbbbb"; | ||||
static const char col_gray4[] = "#eeeeee"; | static const char col_gray4[] = "#eeeeee"; | ||||
static const char col_cyan[] = "#41008c"; | |||||
static const char col_cyan[] = "#630fe8"; | |||||
static const char *colors[][3] = { | static const char *colors[][3] = { | ||||
/* fg bg border */ | /* fg bg border */ | ||||
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, | [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, | ||||
@@ -34,7 +34,7 @@ static const char *const autostart[] = { | |||||
}; | }; | ||||
/* tagging */ | /* tagging */ | ||||
static const char *tags[] = { "", "", "", "", "", "", "", "", "" }; | |||||
static const char *tags[] = { "", "", "", "", "", "", "", "", "" }; | |||||
/* default layout per tags */ | /* default layout per tags */ | ||||
/* The first element is for all-tag view, following i-th element corresponds to */ | /* The first element is for all-tag view, following i-th element corresponds to */ | ||||
@@ -48,12 +48,18 @@ static const Rule rules[] = { | |||||
* WM_NAME(STRING) = title | * WM_NAME(STRING) = title | ||||
*/ | */ | ||||
/* class instance title tags mask iscentered isfloating isterminal noswallow monitor */ | |||||
{ "Gimp", NULL, NULL, 1 << 7, 0, 1, 0, 0, -1 }, | |||||
{ "LibreWolf", NULL, NULL, 1 << 0, 0, 0, 0, -1, -1 }, | |||||
{ "firefox", NULL, NULL, 1 << 0, 0, 0, 0, -1, -1 }, | |||||
{ "St", NULL, NULL, 0, 0, 0, 1, 0, -1 }, | |||||
{ NULL, NULL, "Event Tester", 0, 0, 0, 0, 1, -1 }, /* xev */ | |||||
/* class instance title tags mask iscentered isfloating isterminal noswallow monitor */ | |||||
{ "Gimp", NULL, NULL, 1 << 7, 0, 1, 0, 0, -1 }, | |||||
{ "LibreWolf", NULL, NULL, 1 << 2, 0, 0, 0, -1, -1 }, | |||||
{ "firefox", NULL, NULL, 1 << 2, 0, 0, 0, -1, -1 }, | |||||
{ "Brave-browser", NULL, NULL, 1 << 2, 0, 0, 0, -1, -1 }, | |||||
{ "St", NULL, NULL, 0, 0, 0, 1, 0, -1 }, | |||||
{ "zoom", NULL, NULL, 1 << 1, 0, 0, 0, -1, -1 }, | |||||
{ "cmus", NULL, NULL, 1 << 3, 0, 0, 0, -1, -1 }, | |||||
{ "TelegramDesktop", NULL, NULL, 1 << 4, 0, 0, 0, -1, -1 }, | |||||
{ "Discord", NULL, NULL, 1 << 4, 0, 0, 0, -1, -1 }, | |||||
{ "cpsrc", NULL, NULL, 1 << 1, 0, 0, 0, -1, -1 }, | |||||
{ NULL, NULL, "Event Tester", 0, 0, 0, 0, 1, -1 }, /* xev */ | |||||
}; | }; | ||||
/* layout(s) */ | /* layout(s) */ | ||||
@@ -89,68 +95,71 @@ static const char *termcmd[] = { "st", NULL }; | |||||
#include <X11/XF86keysym.h> | #include <X11/XF86keysym.h> | ||||
static Key keys[] = { | static Key keys[] = { | ||||
/* modifier key function argument */ | |||||
{ 0, XK_Print, spawn, SHCMD("~/scripts/screenshot.sh") }, | |||||
{ 0, XF86XK_PowerOff, spawn, SHCMD("~/scripts/poweroff.sh") }, | |||||
{ 0, XF86XK_AudioMute, spawn, SHCMD("pulsemixer --toggle-mute") }, | |||||
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer -c 1 sset Master 1+") }, | |||||
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer -c 1 sset Master 1-") }, | |||||
{ 0, XF86XK_AudioPrev, spawn, SHCMD("cmus-remote --prev") }, | |||||
{ 0, XF86XK_AudioNext, spawn, SHCMD("cmus-remote --next") }, | |||||
{ 0, XF86XK_AudioPause, spawn, SHCMD("cmus-remote --pause") }, | |||||
{ 0, XF86XK_AudioPlay, spawn, SHCMD("cmus-remote --pause") }, | |||||
{ 0, XF86XK_AudioStop, spawn, SHCMD("cmus-remote --stop") }, | |||||
{ 0, XF86XK_AudioRewind, spawn, SHCMD("cmus-remote --seek -10") }, | |||||
{ 0, XF86XK_AudioForward, spawn, SHCMD("cmus-remote --seek +10") }, | |||||
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("brightnessctl s +5%")}, | |||||
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("brightnessctl s 5%-")}, | |||||
{ MODKEY|ShiftMask, XK_space, togglealwaysontop, {0} }, | |||||
{ MODKEY, XK_w, spawn, SHCMD("firefox") }, | |||||
{ MODKEY|ShiftMask, XK_l, spawn, SHCMD("slock") }, | |||||
{ MODKEY|ShiftMask, XK_m, spawn, SHCMD("st ~/scripts/autostart.sh") }, | |||||
{ MODKEY|ShiftMask, XK_j, spawn, SHCMD("joplin-desktop") }, | |||||
{ MODKEY|ShiftMask, XK_s, spawn, SHCMD("~/scripts/screenshot.sh 1") }, | |||||
{ MODKEY|ShiftMask, XK_n, spawn, SHCMD("connman-gtk") }, | |||||
{ MODKEY|ShiftMask, XK_x, spawn, SHCMD("mixer.sh") }, | |||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } }, | |||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, | |||||
{ MODKEY, XK_b, togglebar, {0} }, | |||||
{ MODKEY, XK_w, tabmode, {-1} }, | |||||
{ 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_Return, zoom, {0} }, | |||||
{ MODKEY, XK_Tab, view, {0} }, | |||||
{ MODKEY|ShiftMask, XK_c, 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_u, setlayout, {.v = &layouts[3]} }, | |||||
{ MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, | |||||
{ MODKEY, XK_space, setlayout, {0} }, | |||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} }, | |||||
{ MODKEY, XK_0, view, {.ui = ~0 } }, | |||||
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, | |||||
{ MODKEY, XK_comma, focusmon, {.i = -1 } }, | |||||
{ MODKEY, XK_period, focusmon, {.i = +1 } }, | |||||
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, | |||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, | |||||
{ MODKEY, XK_minus, setgaps, {.i = -5 } }, | |||||
{ MODKEY, XK_equal, setgaps, {.i = +5 } }, | |||||
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, | |||||
TAGKEYS( XK_1, 0) | |||||
TAGKEYS( XK_2, 1) | |||||
TAGKEYS( XK_3, 2) | |||||
TAGKEYS( XK_4, 3) | |||||
TAGKEYS( XK_5, 4) | |||||
TAGKEYS( XK_6, 5) | |||||
TAGKEYS( XK_7, 6) | |||||
TAGKEYS( XK_8, 7) | |||||
TAGKEYS( XK_9, 8) | |||||
{ MODKEY|ShiftMask, XK_q, quit, {0} }, | |||||
/* modifier key function argument */ | |||||
{ 0, XK_Print, spawn, SHCMD("~/scripts/screenshot.sh") }, | |||||
{ 0, XF86XK_PowerOff, spawn, SHCMD("~/scripts/poweroff.sh") }, | |||||
{ 0, XF86XK_AudioMute, spawn, SHCMD("pulsemixer --toggle-mute") }, | |||||
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer -c 1 sset Master 1+") }, | |||||
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer -c 1 sset Master 1-") }, | |||||
{ 0, XF86XK_AudioPrev, spawn, SHCMD("cmus-remote --prev") }, | |||||
{ 0, XF86XK_AudioNext, spawn, SHCMD("cmus-remote --next") }, | |||||
{ 0, XF86XK_AudioPause, spawn, SHCMD("cmus-remote --pause") }, | |||||
{ 0, XF86XK_AudioPlay, spawn, SHCMD("cmus-remote --pause") }, | |||||
{ 0, XF86XK_AudioStop, spawn, SHCMD("cmus-remote --stop") }, | |||||
{ 0, XF86XK_AudioRewind, spawn, SHCMD("cmus-remote --seek -10") }, | |||||
{ 0, XF86XK_AudioForward, spawn, SHCMD("cmus-remote --seek +10") }, | |||||
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("brightnessctl s +5%")}, | |||||
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("brightnessctl s 5%-")}, | |||||
{ MODKEY|ShiftMask, XK_space, togglealwaysontop, {0} }, | |||||
{ MODKEY, XK_w, spawn, SHCMD("firefox") }, | |||||
{ MODKEY|ShiftMask, XK_l, spawn, SHCMD("slock.sh") }, | |||||
{ MODKEY|ShiftMask, XK_e, spawn, SHCMD("emacs") }, | |||||
{ MODKEY|ShiftMask, XK_m, spawn, SHCMD("~/scripts/autostart.sh") }, | |||||
{ MODKEY|ShiftMask, XK_m, spawn, SHCMD("~/scripts/autostart.sh") }, | |||||
{ MODKEY|ShiftMask, XK_j, spawn, SHCMD("screenkey.sh") }, | |||||
{ MODKEY|ShiftMask, XK_s, spawn, SHCMD("~/scripts/screenshot.sh 1") }, | |||||
{ MODKEY|ShiftMask, XK_n, spawn, SHCMD("~/scripts/network.sh") }, | |||||
{ MODKEY|ShiftMask, XK_x, spawn, SHCMD("mixer.sh") }, | |||||
{ MODKEY|ShiftMask, XK_t, spawn, SHCMD("telegram-desktop") }, | |||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } }, | |||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, | |||||
{ MODKEY, XK_b, togglebar, {0} }, | |||||
{ MODKEY, XK_w, tabmode, {-1} }, | |||||
{ 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_Return, zoom, {0} }, | |||||
{ MODKEY, XK_Tab, view, {0} }, | |||||
{ MODKEY|ShiftMask, XK_c, 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_u, setlayout, {.v = &layouts[3]} }, | |||||
{ MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, | |||||
{ MODKEY, XK_space, setlayout, {0} }, | |||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} }, | |||||
{ MODKEY, XK_0, view, {.ui = ~0 } }, | |||||
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, | |||||
{ MODKEY, XK_comma, focusmon, {.i = -1 } }, | |||||
{ MODKEY, XK_period, focusmon, {.i = +1 } }, | |||||
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, | |||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, | |||||
{ MODKEY, XK_minus, setgaps, {.i = -5 } }, | |||||
{ MODKEY, XK_equal, setgaps, {.i = +5 } }, | |||||
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, | |||||
TAGKEYS( XK_1, 0) | |||||
TAGKEYS( XK_2, 1) | |||||
TAGKEYS( XK_3, 2) | |||||
TAGKEYS( XK_4, 3) | |||||
TAGKEYS( XK_5, 4) | |||||
TAGKEYS( XK_6, 5) | |||||
TAGKEYS( XK_7, 6) | |||||
TAGKEYS( XK_8, 7) | |||||
TAGKEYS( XK_9, 8) | |||||
{ MODKEY|ShiftMask, XK_q, quit, {0} }, | |||||
}; | }; | ||||
/* button definitions */ | /* button definitions */ | ||||
@@ -2,7 +2,7 @@ | |||||
/* appearance */ | /* appearance */ | ||||
static const unsigned int borderpx = 2; /* border pixel of windows */ | static const unsigned int borderpx = 2; /* border pixel of windows */ | ||||
static const unsigned int gappx = 15; | |||||
static const unsigned int gappx = 10; | |||||
static const unsigned int snap = 32; /* snap pixel */ | static const unsigned int snap = 32; /* snap pixel */ | ||||
static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ | static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ | ||||
static const int showbar = 1; /* 0 means no bar */ | static const int showbar = 1; /* 0 means no bar */ | ||||
@@ -21,7 +21,7 @@ static const char col_gray1[] = "#222222"; | |||||
static const char col_gray2[] = "#444444"; | static const char col_gray2[] = "#444444"; | ||||
static const char col_gray3[] = "#bbbbbb"; | static const char col_gray3[] = "#bbbbbb"; | ||||
static const char col_gray4[] = "#eeeeee"; | static const char col_gray4[] = "#eeeeee"; | ||||
static const char col_cyan[] = "#41008c"; | |||||
static const char col_cyan[] = "#630fe8"; | |||||
static const char *colors[][3] = { | static const char *colors[][3] = { | ||||
/* fg bg border */ | /* fg bg border */ | ||||
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, | [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, | ||||
@@ -34,7 +34,7 @@ static const char *const autostart[] = { | |||||
}; | }; | ||||
/* tagging */ | /* tagging */ | ||||
static const char *tags[] = { "", "", "", "", "", "", "", "", "" }; | |||||
static const char *tags[] = { "", "", "", "", "", "", "", "", "" }; | |||||
/* default layout per tags */ | /* default layout per tags */ | ||||
/* The first element is for all-tag view, following i-th element corresponds to */ | /* The first element is for all-tag view, following i-th element corresponds to */ | ||||
@@ -48,12 +48,18 @@ static const Rule rules[] = { | |||||
* WM_NAME(STRING) = title | * WM_NAME(STRING) = title | ||||
*/ | */ | ||||
/* class instance title tags mask iscentered isfloating isterminal noswallow monitor */ | |||||
{ "Gimp", NULL, NULL, 1 << 7, 0, 1, 0, 0, -1 }, | |||||
{ "LibreWolf", NULL, NULL, 1 << 0, 0, 0, 0, -1, -1 }, | |||||
{ "firefox", NULL, NULL, 1 << 0, 0, 0, 0, -1, -1 }, | |||||
{ "St", NULL, NULL, 0, 0, 0, 1, 0, -1 }, | |||||
{ NULL, NULL, "Event Tester", 0, 0, 0, 0, 1, -1 }, /* xev */ | |||||
/* class instance title tags mask iscentered isfloating isterminal noswallow monitor */ | |||||
{ "Gimp", NULL, NULL, 1 << 7, 0, 1, 0, 0, -1 }, | |||||
{ "LibreWolf", NULL, NULL, 1 << 2, 0, 0, 0, -1, -1 }, | |||||
{ "firefox", NULL, NULL, 1 << 2, 0, 0, 0, -1, -1 }, | |||||
{ "Brave-browser", NULL, NULL, 1 << 2, 0, 0, 0, -1, -1 }, | |||||
{ "St", NULL, NULL, 0, 0, 0, 1, 0, -1 }, | |||||
{ "zoom", NULL, NULL, 1 << 1, 0, 0, 0, -1, -1 }, | |||||
{ "cmus", NULL, NULL, 1 << 3, 0, 0, 0, -1, -1 }, | |||||
{ "TelegramDesktop", NULL, NULL, 1 << 4, 0, 0, 0, -1, -1 }, | |||||
{ "Discord", NULL, NULL, 1 << 4, 0, 0, 0, -1, -1 }, | |||||
{ "cpsrc", NULL, NULL, 1 << 1, 0, 0, 0, -1, -1 }, | |||||
{ NULL, NULL, "Event Tester", 0, 0, 0, 0, 1, -1 }, /* xev */ | |||||
}; | }; | ||||
/* layout(s) */ | /* layout(s) */ | ||||
@@ -89,68 +95,71 @@ static const char *termcmd[] = { "st", NULL }; | |||||
#include <X11/XF86keysym.h> | #include <X11/XF86keysym.h> | ||||
static Key keys[] = { | static Key keys[] = { | ||||
/* modifier key function argument */ | |||||
{ 0, XK_Print, spawn, SHCMD("~/scripts/screenshot.sh") }, | |||||
{ 0, XF86XK_PowerOff, spawn, SHCMD("~/scripts/poweroff.sh") }, | |||||
{ 0, XF86XK_AudioMute, spawn, SHCMD("pulsemixer --toggle-mute") }, | |||||
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer -c 1 sset Master 1+") }, | |||||
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer -c 1 sset Master 1-") }, | |||||
{ 0, XF86XK_AudioPrev, spawn, SHCMD("cmus-remote --prev") }, | |||||
{ 0, XF86XK_AudioNext, spawn, SHCMD("cmus-remote --next") }, | |||||
{ 0, XF86XK_AudioPause, spawn, SHCMD("cmus-remote --pause") }, | |||||
{ 0, XF86XK_AudioPlay, spawn, SHCMD("cmus-remote --pause") }, | |||||
{ 0, XF86XK_AudioStop, spawn, SHCMD("cmus-remote --stop") }, | |||||
{ 0, XF86XK_AudioRewind, spawn, SHCMD("cmus-remote --seek -10") }, | |||||
{ 0, XF86XK_AudioForward, spawn, SHCMD("cmus-remote --seek +10") }, | |||||
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("brightnessctl s +5%")}, | |||||
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("brightnessctl s 5%-")}, | |||||
{ MODKEY|ShiftMask, XK_space, togglealwaysontop, {0} }, | |||||
{ MODKEY, XK_w, spawn, SHCMD("firefox") }, | |||||
{ MODKEY|ShiftMask, XK_l, spawn, SHCMD("slock") }, | |||||
{ MODKEY|ShiftMask, XK_m, spawn, SHCMD("st ~/scripts/autostart.sh") }, | |||||
{ MODKEY|ShiftMask, XK_j, spawn, SHCMD("joplin-desktop") }, | |||||
{ MODKEY|ShiftMask, XK_s, spawn, SHCMD("~/scripts/screenshot.sh 1") }, | |||||
{ MODKEY|ShiftMask, XK_n, spawn, SHCMD("connman-gtk") }, | |||||
{ MODKEY|ShiftMask, XK_x, spawn, SHCMD("mixer.sh") }, | |||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } }, | |||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, | |||||
{ MODKEY, XK_b, togglebar, {0} }, | |||||
{ MODKEY, XK_w, tabmode, {-1} }, | |||||
{ 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_Return, zoom, {0} }, | |||||
{ MODKEY, XK_Tab, view, {0} }, | |||||
{ MODKEY|ShiftMask, XK_c, 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_u, setlayout, {.v = &layouts[3]} }, | |||||
{ MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, | |||||
{ MODKEY, XK_space, setlayout, {0} }, | |||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} }, | |||||
{ MODKEY, XK_0, view, {.ui = ~0 } }, | |||||
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, | |||||
{ MODKEY, XK_comma, focusmon, {.i = -1 } }, | |||||
{ MODKEY, XK_period, focusmon, {.i = +1 } }, | |||||
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, | |||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, | |||||
{ MODKEY, XK_minus, setgaps, {.i = -5 } }, | |||||
{ MODKEY, XK_equal, setgaps, {.i = +5 } }, | |||||
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, | |||||
TAGKEYS( XK_1, 0) | |||||
TAGKEYS( XK_2, 1) | |||||
TAGKEYS( XK_3, 2) | |||||
TAGKEYS( XK_4, 3) | |||||
TAGKEYS( XK_5, 4) | |||||
TAGKEYS( XK_6, 5) | |||||
TAGKEYS( XK_7, 6) | |||||
TAGKEYS( XK_8, 7) | |||||
TAGKEYS( XK_9, 8) | |||||
{ MODKEY|ShiftMask, XK_q, quit, {0} }, | |||||
/* modifier key function argument */ | |||||
{ 0, XK_Print, spawn, SHCMD("~/scripts/screenshot.sh") }, | |||||
{ 0, XF86XK_PowerOff, spawn, SHCMD("~/scripts/poweroff.sh") }, | |||||
{ 0, XF86XK_AudioMute, spawn, SHCMD("pulsemixer --toggle-mute") }, | |||||
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer -c 1 sset Master 1+") }, | |||||
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer -c 1 sset Master 1-") }, | |||||
{ 0, XF86XK_AudioPrev, spawn, SHCMD("cmus-remote --prev") }, | |||||
{ 0, XF86XK_AudioNext, spawn, SHCMD("cmus-remote --next") }, | |||||
{ 0, XF86XK_AudioPause, spawn, SHCMD("cmus-remote --pause") }, | |||||
{ 0, XF86XK_AudioPlay, spawn, SHCMD("cmus-remote --pause") }, | |||||
{ 0, XF86XK_AudioStop, spawn, SHCMD("cmus-remote --stop") }, | |||||
{ 0, XF86XK_AudioRewind, spawn, SHCMD("cmus-remote --seek -10") }, | |||||
{ 0, XF86XK_AudioForward, spawn, SHCMD("cmus-remote --seek +10") }, | |||||
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("brightnessctl s +5%")}, | |||||
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("brightnessctl s 5%-")}, | |||||
{ MODKEY|ShiftMask, XK_space, togglealwaysontop, {0} }, | |||||
{ MODKEY, XK_w, spawn, SHCMD("firefox") }, | |||||
{ MODKEY|ShiftMask, XK_l, spawn, SHCMD("slock.sh") }, | |||||
{ MODKEY|ShiftMask, XK_e, spawn, SHCMD("emacs") }, | |||||
{ MODKEY|ShiftMask, XK_m, spawn, SHCMD("~/scripts/autostart.sh") }, | |||||
{ MODKEY|ShiftMask, XK_m, spawn, SHCMD("~/scripts/autostart.sh") }, | |||||
{ MODKEY|ShiftMask, XK_j, spawn, SHCMD("screenkey.sh") }, | |||||
{ MODKEY|ShiftMask, XK_s, spawn, SHCMD("~/scripts/screenshot.sh 1") }, | |||||
{ MODKEY|ShiftMask, XK_n, spawn, SHCMD("~/scripts/network.sh") }, | |||||
{ MODKEY|ShiftMask, XK_x, spawn, SHCMD("mixer.sh") }, | |||||
{ MODKEY|ShiftMask, XK_t, spawn, SHCMD("telegram-desktop") }, | |||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } }, | |||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, | |||||
{ MODKEY, XK_b, togglebar, {0} }, | |||||
{ MODKEY, XK_w, tabmode, {-1} }, | |||||
{ 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_Return, zoom, {0} }, | |||||
{ MODKEY, XK_Tab, view, {0} }, | |||||
{ MODKEY|ShiftMask, XK_c, 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_u, setlayout, {.v = &layouts[3]} }, | |||||
{ MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, | |||||
{ MODKEY, XK_space, setlayout, {0} }, | |||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} }, | |||||
{ MODKEY, XK_0, view, {.ui = ~0 } }, | |||||
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, | |||||
{ MODKEY, XK_comma, focusmon, {.i = -1 } }, | |||||
{ MODKEY, XK_period, focusmon, {.i = +1 } }, | |||||
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, | |||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, | |||||
{ MODKEY, XK_minus, setgaps, {.i = -5 } }, | |||||
{ MODKEY, XK_equal, setgaps, {.i = +5 } }, | |||||
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, | |||||
TAGKEYS( XK_1, 0) | |||||
TAGKEYS( XK_2, 1) | |||||
TAGKEYS( XK_3, 2) | |||||
TAGKEYS( XK_4, 3) | |||||
TAGKEYS( XK_5, 4) | |||||
TAGKEYS( XK_6, 5) | |||||
TAGKEYS( XK_7, 6) | |||||
TAGKEYS( XK_8, 7) | |||||
TAGKEYS( XK_9, 8) | |||||
{ MODKEY|ShiftMask, XK_q, quit, {0} }, | |||||
}; | }; | ||||
/* button definitions */ | /* button definitions */ | ||||