mirror of
https://github.com/mintycube/dotfiles.git
synced 2024-10-22 14:05:41 +02:00
added new rule, fuz script and formatting
This commit is contained in:
parent
83ade889ae
commit
98f7974f6a
@ -243,7 +243,6 @@ static const Layout layouts[] = {
|
||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||
|
||||
/* commands */
|
||||
|
||||
static const char* dmenu_run_cmd[] = { "dmenu_run", "-bw", "2", "-i", "-W", "390", "-X", "961", "-Y", "15", "-l", "15", "-g", "3", NULL };
|
||||
static const char* clipmenu_cmd[] = { "clipmenu", "-bw", "2", "-i", "-W", "290", "-X", "1061", "-Y", "15", "-l", "15", NULL };
|
||||
static const char* volume_ui_cmd[] = { "st", "-c", "volume-ui", "-g=80x15+353+20", "-e", "pulsemixer", NULL } ;
|
||||
@ -253,32 +252,32 @@ static const char* volume_ui_cmd[] = { "st", "-c", "volume-ui", "-g=80x15+353+20
|
||||
|
||||
static const Key on_empty_keys[] = {
|
||||
/* modifier key function argument */
|
||||
{0, XK_e, spawn, SHCMD("st fuz -lf") },
|
||||
{0, XK_f, spawn, SHCMD("st fuz") },
|
||||
{0, XK_w, spawn, {.v = (const char*[]){"firefox", NULL } } },
|
||||
{0, XK_e, spawn, {.v = (const char*[]){"st","bash","-c", "fuz", "-lf", NULL } } },
|
||||
{0, XK_grave, spawn, {.v = (const char*[]){"dmenunerdsymbols", NULL } } },
|
||||
{0, XK_BackSpace, spawn, {.v = (const char*[]){"sysact", NULL } } },
|
||||
{0, XK_r, spawn, {.v = (const char*[]){"st", "-e", "lf", NULL } } },
|
||||
{0, XK_Return, spawn, {.v = (const char*[]){"st", "-c", "st-terminal", NULL } } },
|
||||
{0, XK_d, spawn, {.v = dmenu_run_cmd } },
|
||||
{0, XK_a, spawn, {.v = (const char*[]){"dmenu_hub", NULL } } },
|
||||
{0, XK_f, spawn, {.v = (const char*[]){"st","bash","-c", "fuz", NULL } } },
|
||||
{0, XK_space, spawn, {.v = (const char*[]){"dmenu_web", NULL } } },
|
||||
{0, XK_n, spawn, {.v = (const char*[]){"st", "-e", "nvim", NULL } } },
|
||||
};
|
||||
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
{ 0,XF86XK_AudioMute, spawn,SHCMD("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; pkill -RTMIN+8 dwmblocks") },
|
||||
{ 0,XF86XK_AudioRaiseVolume,spawn,SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%- && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%+; pkill -RTMIN+8 dwmblocks") },
|
||||
{ 0,XF86XK_AudioLowerVolume,spawn,SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%+ && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%-; pkill -RTMIN+8 dwmblocks") },
|
||||
{ 0,XF86XK_AudioPrev, spawn, {.v = (const char*[]){ "mpc", "prev", NULL } } },
|
||||
{ 0,XF86XK_AudioNext, spawn, {.v = (const char*[]){ "mpc", "next", NULL } } },
|
||||
{ 0,XF86XK_AudioPause, spawn, {.v = (const char*[]){ "mpc", "pause", NULL } } },
|
||||
{ 0,XF86XK_AudioPlay, spawn, {.v = (const char*[]){ "mpc", "play", NULL } } },
|
||||
{ 0, XF86XK_AudioMute, spawn, SHCMD("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; pkill -RTMIN+8 dwmblocks") },
|
||||
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%- && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%+; pkill -RTMIN+8 dwmblocks") },
|
||||
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%+ && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%-; pkill -RTMIN+8 dwmblocks") },
|
||||
{ 0, XF86XK_AudioPrev, spawn, {.v = (const char*[]){ "mpc", "prev", NULL } } },
|
||||
{ 0, XF86XK_AudioNext, spawn, {.v = (const char*[]){ "mpc", "next", NULL } } },
|
||||
{ 0, XF86XK_AudioPause, spawn, {.v = (const char*[]){ "mpc", "pause", NULL } } },
|
||||
{ 0, XF86XK_AudioPlay, spawn, {.v = (const char*[]){ "mpc", "play", NULL } } },
|
||||
{ MODKEY|ShiftMask, XK_F5, xrdb, {.v = NULL } },
|
||||
{ 0,XK_F7, spawn, {.v = clipmenu_cmd } },
|
||||
{ 0,XF86XK_MonBrightnessUp, spawn, {.v = (const char*[]){ "xbacklight", "-inc", "15", NULL } } },
|
||||
{ 0,XF86XK_MonBrightnessDown, spawn, {.v = (const char*[]){ "xbacklight", "-dec", "15", NULL } } },
|
||||
{ 0, XK_F7, spawn, {.v = clipmenu_cmd } },
|
||||
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = (const char*[]){ "xbacklight", "-inc", "15", NULL } } },
|
||||
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = (const char*[]){ "xbacklight", "-dec", "15", NULL } } },
|
||||
{ 0, XK_Print, spawn, {.v = (const char*[]){ "maimpick", NULL } } },
|
||||
{ MODKEY, XK_Print, spawn, {.v = (const char*[]){ "dmenurecord", NULL } } },
|
||||
{ MODKEY|ShiftMask, XK_Delete, quit, {0} },
|
||||
@ -304,7 +303,7 @@ static const Key keys[] = {
|
||||
{ MODKEY, XK_q, killclient, {0} },
|
||||
{ MODKEY|ShiftMask, XK_q, killunsel, {0} },
|
||||
{ MODKEY, XK_w, spawn, {.v = (const char*[]){ "firefox", NULL } } },
|
||||
{ MODKEY, XK_e, spawn, {.v = (const char*[]){ "st","bash","-c", "fuz", "-lf", NULL } } },
|
||||
{ MODKEY, XK_e, spawn, SHCMD("st fuz -lf") },
|
||||
{ ALTKEY, XK_e, spawn, {.v = (const char*[]){ "networkmanager_dmenu", NULL } } },
|
||||
{ MODKEY, XK_r, spawn, {.v = (const char*[]){ "st", "-e", "lf", NULL } } },
|
||||
{ MODKEY|ShiftMask, XK_r, spawn, {.v = (const char*[]){ "thunar", NULL } } },
|
||||
@ -316,7 +315,7 @@ static const Key keys[] = {
|
||||
{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = -1 } },
|
||||
{ MODKEY, XK_a, spawn, {.v = (const char*[]){ "dmenu_hub", NULL } } },
|
||||
{ MODKEY, XK_d, spawn, {.v = dmenu_run_cmd } },
|
||||
{ MODKEY, XK_f, spawn, {.v = (const char*[]){ "st","bash","-c", "fuz", NULL } } },
|
||||
{ MODKEY, XK_f, spawn, SHCMD("st fuz") },
|
||||
{ ALTKEY, XK_f, togglefakefullscreen, {0} },
|
||||
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||
@ -335,10 +334,10 @@ static const Key keys[] = {
|
||||
{ MODKEY|ShiftMask, XK_n, spawn, {.v = (const char*[]){ "st", "-e", "newsboat", NULL } } },
|
||||
{ MODKEY, XK_m, togglescratch, {.ui = 3 } },
|
||||
{ MODKEY, XK_comma, togglescratch, {.ui = 4 } },
|
||||
// { 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_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_slash, zoom, {0} },
|
||||
{ 0, HOLDKEY, holdbar, {0} },
|
||||
{ MODKEY, XK_space, spawn, {.v = (const char*[]){ "dmenu_web", NULL } } },
|
||||
@ -353,13 +352,12 @@ static const Key keys[] = {
|
||||
{ MODKEY|Mod1Mask, XK_Right, shiftboth, { .i = +1 } },
|
||||
{ MODKEY|ControlMask, XK_Left, shiftviewclients, { .i = -1 } },
|
||||
{ MODKEY|ControlMask, XK_Right, shiftviewclients, { .i = +1 } },
|
||||
|
||||
};
|
||||
|
||||
/* button definitions */
|
||||
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
||||
static const Button buttons[] = {
|
||||
/* click event mask button function argument */
|
||||
/* click event|mask button function argument */
|
||||
{ ClkRootWin, 0, Button1, spawn, SHCMD("dunstctl close-all; killall dmenu") },
|
||||
{ ClkRootWin, 0, Button3, spawn, SHCMD("dunstctl close-all; pgrep -x 'dmenu' > /dev/null && killall dmenu || dmenu_hub") },
|
||||
{ ClkButton, 0, Button1, spawn, {.v = dmenu_run_cmd } },
|
||||
|
Loading…
Reference in New Issue
Block a user