Add a new keybind
This commit is contained in:
parent
d0bafdfb87
commit
780ce66f70
|
@ -209,9 +209,9 @@ speedwm.tag.preview.bar: 0 ! Include the bar in the tag preview (0/
|
||||||
speedwm.tag.preview.paddingh: 0 ! Extra horizontal padding between the tag preview and the edge of the screen (<num>)
|
speedwm.tag.preview.paddingh: 0 ! Extra horizontal padding between the tag preview and the edge of the screen (<num>)
|
||||||
speedwm.tag.preview.paddingv: 0 ! Extra vertical padding between the tag preview and the bar (<num>)
|
speedwm.tag.preview.paddingv: 0 ! Extra vertical padding between the tag preview and the bar (<num>)
|
||||||
speedwm.tag.preview.scale: 2 ! Amount to scale down the preview picture by (<num>)
|
speedwm.tag.preview.scale: 2 ! Amount to scale down the preview picture by (<num>)
|
||||||
speedwm.tag.resetgaps: 1 ! Reset gaps when the tag has no clients (0/1)
|
speedwm.tag.resetgaps: 0 ! Reset gaps when the tag has no clients (0/1)
|
||||||
speedwm.tag.resetlayout: 1 ! Reset layout when the tag has no clients (0/1)
|
speedwm.tag.resetlayout: 0 ! Reset layout when the tag has no clients (0/1)
|
||||||
speedwm.tag.resetmfact: 1 ! Reset mfact when the tag has no clients (0/1)
|
speedwm.tag.resetmfact: 0 ! Reset mfact when the tag has no clients (0/1)
|
||||||
speedwm.tag.start: 1 ! Start on a tag on startup (0/1)
|
speedwm.tag.start: 1 ! Start on a tag on startup (0/1)
|
||||||
speedwm.tag.underline: 0 ! Draw an underline on the tags (0/1)
|
speedwm.tag.underline: 0 ! Draw an underline on the tags (0/1)
|
||||||
speedwm.tag.underlineall: 0 ! Show underline on all tags or just the selected tags (0/1)
|
speedwm.tag.underlineall: 0 ! Show underline on all tags or just the selected tags (0/1)
|
||||||
|
|
|
@ -111,4 +111,6 @@
|
||||||
- 111 - Rotate backwards in the secondary stack axis
|
- 111 - Rotate backwards in the secondary stack axis
|
||||||
- 112 - Mirror the layout
|
- 112 - Mirror the layout
|
||||||
- 113 - Enter an empty layout where all clients are hidden
|
- 113 - Enter an empty layout where all clients are hidden
|
||||||
|
- 114 - Increase barpadding and gaps by 1
|
||||||
|
- 115 - Decrease barpadding and gaps by 1
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,10 @@ These keybinds are for navigating speedwm
|
||||||
- Super+0 - Reset mfact
|
- Super+0 - Reset mfact
|
||||||
- Super+r - Reset number of masters
|
- Super+r - Reset number of masters
|
||||||
- Super+y - Make the current selected window sticky
|
- Super+y - Make the current selected window sticky
|
||||||
|
- Super+d - Focus the previous monitor.
|
||||||
|
- Super+/ - Focus the next monitor.
|
||||||
|
- Super+. - Increase bar padding by 1
|
||||||
|
- Super+, - Decrease bar padding by 1
|
||||||
- Super+1 - Move to tag 1
|
- Super+1 - Move to tag 1
|
||||||
- Super+2 - Move to tag 2
|
- Super+2 - Move to tag 2
|
||||||
- Super+3 - Move to tag 3
|
- Super+3 - Move to tag 3
|
||||||
|
|
216
keybinds.h
216
keybinds.h
|
@ -115,9 +115,9 @@ static Key keys[] = {
|
||||||
{ MODIFIER1|SHIFT, -1, XK_space, togglefloating, {0} },
|
{ MODIFIER1|SHIFT, -1, XK_space, togglefloating, {0} },
|
||||||
{ MODIFIER1|CONTROL, -1, XK_0, view, {.ui = ~0 } },
|
{ MODIFIER1|CONTROL, -1, XK_0, view, {.ui = ~0 } },
|
||||||
{ MODIFIER1, -1, XK_d, focusmon, {.i = -1 } },
|
{ MODIFIER1, -1, XK_d, focusmon, {.i = -1 } },
|
||||||
{ MODIFIER1, -1, XK_period, focusmon, {.i = +1 } },
|
{ MODIFIER1, -1, XK_slash, focusmon, {.i = +1 } },
|
||||||
{ MODIFIER1|SHIFT, -1, XK_d, tagmon, {.i = -1 } },
|
{ MODIFIER1|SHIFT, -1, XK_d, tagmon, {.i = -1 } },
|
||||||
{ MODIFIER1|SHIFT, -1, XK_period, tagmon, {.i = +1 } },
|
{ MODIFIER1|SHIFT, -1, XK_slash, tagmon, {.i = +1 } },
|
||||||
{ MODIFIER1|SHIFT, -1, XK_j, inplacerotate, {.i = +1} },
|
{ MODIFIER1|SHIFT, -1, XK_j, inplacerotate, {.i = +1} },
|
||||||
{ MODIFIER1|SHIFT, -1, XK_k, inplacerotate, {.i = -1} },
|
{ MODIFIER1|SHIFT, -1, XK_k, inplacerotate, {.i = -1} },
|
||||||
{ MODIFIER1|SHIFT, -1, XK_h, inplacerotate, {.i = +2} },
|
{ MODIFIER1|SHIFT, -1, XK_h, inplacerotate, {.i = +2} },
|
||||||
|
@ -128,6 +128,10 @@ static Key keys[] = {
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_0, resetbarheight, {0} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_0, resetbarheight, {0} },
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_equal, setbarheight, {.i = +1} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_equal, setbarheight, {.i = +1} },
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_minus, setbarheight, {.i = -1} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_minus, setbarheight, {.i = -1} },
|
||||||
|
{ MODIFIER1, -1, XK_period, setbarpadding, {.i = +1 } },
|
||||||
|
{ MODIFIER1, -1, XK_comma, setbarpadding, {.i = -1 } },
|
||||||
|
{ MODIFIER1|SHIFT, -1, XK_period, setbarpadding, {.i = +1 } },
|
||||||
|
{ MODIFIER1|SHIFT, -1, XK_comma, setbarpadding, {.i = -1 } },
|
||||||
#if USESWITCHER
|
#if USESWITCHER
|
||||||
{ MODIFIER1, -1, XK_Tab, switcherstart, {0} },
|
{ MODIFIER1, -1, XK_Tab, switcherstart, {0} },
|
||||||
#endif
|
#endif
|
||||||
|
@ -135,125 +139,123 @@ static Key keys[] = {
|
||||||
{ MODIFIER1|CONTROL, -1, XK_u, incstackcount, {.i = -1 } },
|
{ MODIFIER1|CONTROL, -1, XK_u, incstackcount, {.i = -1 } },
|
||||||
|
|
||||||
/* Floating mode keybinds */
|
/* Floating mode keybinds */
|
||||||
{ MODIFIER1, -1, XK_w, moveresizeaspect, {.i = +24} },
|
{ MODIFIER1, -1, XK_w, moveresizeaspect, {.i = +24} },
|
||||||
{ MODIFIER1, -1, XK_e, moveresizeaspect, {.i = -24} },
|
{ MODIFIER1, -1, XK_e, moveresizeaspect, {.i = -24} },
|
||||||
{ MODIFIER1, -1, XK_Down, moveresize, {.v = "0x 25y 0w 0h" } },
|
{ MODIFIER1, -1, XK_Down, moveresize, {.v = "0x 25y 0w 0h" } },
|
||||||
{ MODIFIER1, -1, XK_Up, moveresize, {.v = "0x -25y 0w 0h" } },
|
{ MODIFIER1, -1, XK_Up, moveresize, {.v = "0x -25y 0w 0h" } },
|
||||||
{ MODIFIER1, -1, XK_Right, moveresize, {.v = "25x 0y 0w 0h" } },
|
{ MODIFIER1, -1, XK_Right, moveresize, {.v = "25x 0y 0w 0h" } },
|
||||||
{ MODIFIER1, -1, XK_Left, moveresize, {.v = "-25x 0y 0w 0h" } },
|
{ MODIFIER1, -1, XK_Left, moveresize, {.v = "-25x 0y 0w 0h" } },
|
||||||
{ MODIFIER1|SHIFT, -1, XK_Down, moveresize, {.v = "0x 0y 0w 25h" } },
|
{ MODIFIER1|SHIFT, -1, XK_Down, moveresize, {.v = "0x 0y 0w 25h" } },
|
||||||
{ MODIFIER1|SHIFT, -1, XK_Up, moveresize, {.v = "0x 0y 0w -25h" } },
|
{ MODIFIER1|SHIFT, -1, XK_Up, moveresize, {.v = "0x 0y 0w -25h" } },
|
||||||
{ MODIFIER1|SHIFT, -1, XK_Right, moveresize, {.v = "0x 0y 25w 0h" } },
|
{ MODIFIER1|SHIFT, -1, XK_Right, moveresize, {.v = "0x 0y 25w 0h" } },
|
||||||
{ MODIFIER1|SHIFT, -1, XK_Left, moveresize, {.v = "0x 0y -25w 0h" } },
|
{ MODIFIER1|SHIFT, -1, XK_Left, moveresize, {.v = "0x 0y -25w 0h" } },
|
||||||
{ MODIFIER1|CONTROL, -1, XK_Up, moveresizeedge, {.v = "t"} },
|
{ MODIFIER1|CONTROL, -1, XK_Up, moveresizeedge, {.v = "t"} },
|
||||||
{ MODIFIER1|CONTROL, -1, XK_Down, moveresizeedge, {.v = "b"} },
|
{ MODIFIER1|CONTROL, -1, XK_Down, moveresizeedge, {.v = "b"} },
|
||||||
{ MODIFIER1|CONTROL, -1, XK_Left, moveresizeedge, {.v = "l"} },
|
{ MODIFIER1|CONTROL, -1, XK_Left, moveresizeedge, {.v = "l"} },
|
||||||
{ MODIFIER1|CONTROL, -1, XK_Right, moveresizeedge, {.v = "r"} },
|
{ MODIFIER1|CONTROL, -1, XK_Right, moveresizeedge, {.v = "r"} },
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_Up, moveresizeedge, {.v = "T"} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_Up, moveresizeedge, {.v = "T"} },
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_Down, moveresizeedge, {.v = "B"} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_Down, moveresizeedge, {.v = "B"} },
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_Left, moveresizeedge, {.v = "L"} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_Left, moveresizeedge, {.v = "L"} },
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_Right, moveresizeedge, {.v = "R"} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_Right, moveresizeedge, {.v = "R"} },
|
||||||
|
|
||||||
/* Tag keybinds */
|
/* Tag keybinds */
|
||||||
TAGKEYS( -1, XK_1, 0)
|
TAGKEYS( -1, XK_1, 0)
|
||||||
TAGKEYS( -1, XK_2, 1)
|
TAGKEYS( -1, XK_2, 1)
|
||||||
TAGKEYS( -1, XK_3, 2)
|
TAGKEYS( -1, XK_3, 2)
|
||||||
TAGKEYS( -1, XK_4, 3)
|
TAGKEYS( -1, XK_4, 3)
|
||||||
TAGKEYS( -1, XK_5, 4)
|
TAGKEYS( -1, XK_5, 4)
|
||||||
TAGKEYS( -1, XK_6, 5)
|
TAGKEYS( -1, XK_6, 5)
|
||||||
TAGKEYS( -1, XK_7, 6)
|
TAGKEYS( -1, XK_7, 6)
|
||||||
TAGKEYS( -1, XK_8, 7)
|
TAGKEYS( -1, XK_8, 7)
|
||||||
TAGKEYS( -1, XK_9, 8)
|
TAGKEYS( -1, XK_9, 8)
|
||||||
{ MODIFIER1|CONTROL, -1, XK_a, viewtoleft, {0} },
|
{ MODIFIER1|CONTROL, -1, XK_a, viewtoleft, {0} },
|
||||||
{ MODIFIER1|CONTROL, -1, XK_d, viewtoright, {0} },
|
{ MODIFIER1|CONTROL, -1, XK_d, viewtoright, {0} },
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_z, viewtoleft_vacant, {0} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_z, viewtoleft_vacant, {0} },
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_c, viewtoright_vacant, {0} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_c, viewtoright_vacant, {0} },
|
||||||
|
|
||||||
/* Hide/Show keybinds */
|
/* Hide/Show keybinds */
|
||||||
{ MODIFIER1, -1, XK_o, hide, {0} },
|
{ MODIFIER1, -1, XK_o, hide, {0} },
|
||||||
{ MODIFIER1|CONTROL, -1, XK_o, show, {0} },
|
{ MODIFIER1|CONTROL, -1, XK_o, show, {0} },
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_o, showall, {0} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_o, showall, {0} },
|
||||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_p, hideall, {0} },
|
{ MODIFIER1|CONTROL|SHIFT, -1, XK_p, hideall, {0} },
|
||||||
|
|
||||||
/* Chained keybinds */
|
/* Chained keybinds */
|
||||||
{ MODIFIER1, XK_c, XK_w, spawn, cmd( TERMINAL "speedwm-core -curl-weather" ) },
|
{ MODIFIER1, XK_c, XK_w, spawn, cmd( TERMINAL "speedwm-core -curl-weather" ) },
|
||||||
{ MODIFIER1, XK_c, XK_n, spawn, cmd( "cmus-remote --next" ) },
|
{ MODIFIER1, XK_c, XK_n, spawn, cmd( "cmus-remote --next" ) },
|
||||||
{ MODIFIER1, XK_c, XK_p, spawn, cmd( "cmus-remote --prev" ) },
|
{ MODIFIER1, XK_c, XK_p, spawn, cmd( "cmus-remote --prev" ) },
|
||||||
{ MODIFIER1, XK_r, XK_s, spawn, cmd( "screenkey" ) },
|
{ MODIFIER1, XK_r, XK_s, spawn, cmd( "screenkey" ) },
|
||||||
{ MODIFIER1, XK_r, XK_d, spawn, cmd( "pkill screenkey" ) },
|
{ MODIFIER1, XK_r, XK_d, spawn, cmd( "pkill screenkey" ) },
|
||||||
{ MODIFIER1, XK_t, XK_r, reorganizetags, {0} },
|
{ MODIFIER1, XK_t, XK_r, reorganizetags, {0} },
|
||||||
{ MODIFIER1, XK_p, XK_t, togglebarpadding, {0} },
|
{ MODIFIER1, XK_p, XK_t, togglebarpadding, {0} },
|
||||||
{ MODIFIER1, XK_p, XK_k, setbarpadding, {.i = +1 } },
|
{ MODIFIER1, XK_p, XK_u, setbarpadding, {.i = +5 } },
|
||||||
{ MODIFIER1, XK_p, XK_j, setbarpadding, {.i = -1 } },
|
{ MODIFIER1, XK_p, XK_d, setbarpadding, {.i = -5 } },
|
||||||
{ MODIFIER1, XK_p, XK_u, setbarpadding, {.i = +5 } },
|
{ MODIFIER1, XK_p, XK_r, resetbarpadding, {0} },
|
||||||
{ MODIFIER1, XK_p, XK_d, setbarpadding, {.i = -5 } },
|
|
||||||
{ MODIFIER1, XK_p, XK_r, resetbarpadding, {0} },
|
|
||||||
|
|
||||||
/* Chained toggle keybinds */
|
/* Chained toggle keybinds */
|
||||||
{ MODIFIER1, XK_t, XK_t, togglebartags, {0} },
|
{ MODIFIER1, XK_t, XK_t, togglebartags, {0} },
|
||||||
{ MODIFIER1, XK_t, XK_w, togglebartitle, {0} },
|
{ MODIFIER1, XK_t, XK_w, togglebartitle, {0} },
|
||||||
{ MODIFIER1, XK_t, XK_u, togglebarunseltitle, {0} },
|
{ MODIFIER1, XK_t, XK_u, togglebarunseltitle, {0} },
|
||||||
{ MODIFIER1, XK_t, XK_s, togglebarstatus, {0} },
|
{ MODIFIER1, XK_t, XK_s, togglebarstatus, {0} },
|
||||||
{ MODIFIER1, XK_t, XK_y, togglebaremptytags, {0} },
|
{ MODIFIER1, XK_t, XK_y, togglebaremptytags, {0} },
|
||||||
{ MODIFIER1, XK_t, XK_l, togglebarlt, {0} },
|
{ MODIFIER1, XK_t, XK_l, togglebarlt, {0} },
|
||||||
{ MODIFIER1, XK_t, XK_i, togglebaricon, {0} },
|
{ MODIFIER1, XK_t, XK_i, togglebaricon, {0} },
|
||||||
{ MODIFIER1, XK_t, XK_o, toggleopacity, {0} },
|
{ MODIFIER1, XK_t, XK_o, toggleopacity, {0} },
|
||||||
{ MODIFIER1, XK_t, XK_b, togglebarpos, {0} },
|
{ MODIFIER1, XK_t, XK_b, togglebarpos, {0} },
|
||||||
{ MODIFIER1, XK_t, XK_r, resetbar, {0} },
|
{ MODIFIER1, XK_t, XK_r, resetbar, {0} },
|
||||||
|
|
||||||
/* Chained powerline toggle keybinds */
|
/* Chained powerline toggle keybinds */
|
||||||
{ MODIFIER1, XK_apostrophe,XK_w, toggletitlepowerline, {0} },
|
{ MODIFIER1, XK_apostrophe, XK_w, toggletitlepowerline, {0} },
|
||||||
{ MODIFIER1, XK_apostrophe,XK_t, toggletagpowerline, {0} },
|
{ MODIFIER1, XK_apostrophe, XK_t, toggletagpowerline, {0} },
|
||||||
{ MODIFIER1, XK_apostrophe,XK_a, toggletitleplshape, {0} },
|
{ MODIFIER1, XK_apostrophe, XK_a, toggletitleplshape, {0} },
|
||||||
{ MODIFIER1, XK_apostrophe,XK_d, toggletagplshape, {0} },
|
{ MODIFIER1, XK_apostrophe, XK_d, toggletagplshape, {0} },
|
||||||
{ MODIFIER1, XK_apostrophe,XK_s, toggleplshape, {0} },
|
{ MODIFIER1, XK_apostrophe, XK_s, toggleplshape, {0} },
|
||||||
{ MODIFIER1, XK_apostrophe,XK_r, resetpowerline, {0} },
|
{ MODIFIER1, XK_apostrophe, XK_r, resetpowerline, {0} },
|
||||||
|
|
||||||
/* Chained music keybinds */
|
/* Chained music keybinds */
|
||||||
{ MODIFIER1, XK_q, XK_n, spawn, cmd( "cmus-remote --next" ) },
|
{ MODIFIER1, XK_q, XK_n, spawn, cmd( "cmus-remote --next" ) },
|
||||||
{ MODIFIER1, XK_q, XK_p, spawn, cmd( "cmus-remote --prev" ) },
|
{ MODIFIER1, XK_q, XK_p, spawn, cmd( "cmus-remote --prev" ) },
|
||||||
{ MODIFIER1, XK_q, XK_l, spawn, cmd( "cmus-remote --seek +3" ) },
|
{ MODIFIER1, XK_q, XK_l, spawn, cmd( "cmus-remote --seek +3" ) },
|
||||||
{ MODIFIER1, XK_q, XK_h, spawn, cmd( "cmus-remote --seek -3" ) },
|
{ MODIFIER1, XK_q, XK_h, spawn, cmd( "cmus-remote --seek -3" ) },
|
||||||
{ MODIFIER1, XK_q, XK_u, spawn, cmd( "cmus-remote --seek +10" ) },
|
{ MODIFIER1, XK_q, XK_u, spawn, cmd( "cmus-remote --seek +10" ) },
|
||||||
{ MODIFIER1, XK_q, XK_d, spawn, cmd( "cmus-remote --seek -10" ) },
|
{ MODIFIER1, XK_q, XK_d, spawn, cmd( "cmus-remote --seek -10" ) },
|
||||||
{ MODIFIER1, XK_q, XK_0, spawn, cmd( "cmus-remote --seek 0" ) },
|
{ MODIFIER1, XK_q, XK_0, spawn, cmd( "cmus-remote --seek 0" ) },
|
||||||
|
|
||||||
{ MODIFIER1, XK_l, XK_p, togglelayoutpos, {0} },
|
|
||||||
{ MODIFIER1|SHIFT, XK_k, XK_o, killunsel, {0} },
|
|
||||||
{ MODIFIER1|SHIFT, XK_e, XK_p, spawn, cmd( "speedwm-swal --previous" ) },
|
|
||||||
{ MODIFIER1|SHIFT, XK_e, XK_r, spawn, cmd( "speedwm-swal --randomize" ) },
|
|
||||||
{ MODIFIER1|SHIFT, XK_e, XK_a, spawn, cmd( "speedwm-virtualkeyboard" ) },
|
|
||||||
{ MODIFIER1|SHIFT, XK_e, XK_e, spawn, cmd( "speedwm-virtualkeyboard -e" ) },
|
|
||||||
|
|
||||||
|
{ MODIFIER1, XK_l, XK_p, togglelayoutpos, {0} },
|
||||||
|
{ MODIFIER1|SHIFT, XK_k, XK_o, killunsel, {0} },
|
||||||
|
{ MODIFIER1|SHIFT, XK_e, XK_p, spawn, cmd( "speedwm-swal --previous" ) },
|
||||||
|
{ MODIFIER1|SHIFT, XK_e, XK_r, spawn, cmd( "speedwm-swal --randomize" ) },
|
||||||
|
{ MODIFIER1|SHIFT, XK_e, XK_a, spawn, cmd( "speedwm-virtualkeyboard" ) },
|
||||||
|
{ MODIFIER1|SHIFT, XK_e, XK_e, spawn, cmd( "speedwm-virtualkeyboard -e" ) },
|
||||||
|
|
||||||
/* Gap keybinds */
|
/* Gap keybinds */
|
||||||
{ MODIFIER1|CONTROL, -1, XK_z, incrgaps, {.i = +5 } },
|
{ MODIFIER1|CONTROL, -1, XK_z, incrgaps, {.i = +5 } },
|
||||||
{ MODIFIER1|CONTROL, -1, XK_x, incrgaps, {.i = -5 } },
|
{ MODIFIER1|CONTROL, -1, XK_x, incrgaps, {.i = -5 } },
|
||||||
|
|
||||||
/* Chained gap keybinds */
|
/* Chained gap keybinds */
|
||||||
{ MODIFIER1, XK_g, XK_t, togglegaps, {0} },
|
{ MODIFIER1, XK_g, XK_t, togglegaps, {0} },
|
||||||
{ MODIFIER1, XK_g, XK_0, defaultgaps, {0} },
|
{ MODIFIER1, XK_g, XK_0, defaultgaps, {0} },
|
||||||
{ MODIFIER1, XK_g, XK_i, incrigaps, {.i = +1} },
|
{ MODIFIER1, XK_g, XK_i, incrigaps, {.i = +1} },
|
||||||
{ MODIFIER1|SHIFT, XK_g, XK_i, incrigaps, {.i = -1} },
|
{ MODIFIER1|SHIFT, XK_g, XK_i, incrigaps, {.i = -1} },
|
||||||
{ MODIFIER1, XK_g, XK_o, incrogaps, {.i = +1} },
|
{ MODIFIER1, XK_g, XK_o, incrogaps, {.i = +1} },
|
||||||
{ MODIFIER1|SHIFT, XK_g, XK_o, incrogaps, {.i = -1} },
|
{ MODIFIER1|SHIFT, XK_g, XK_o, incrogaps, {.i = -1} },
|
||||||
{ MODIFIER1|SHIFT, XK_g, XK_j, incrgaps, {.i = +1 } },
|
{ MODIFIER1|SHIFT, XK_g, XK_j, incrgaps, {.i = +1 } },
|
||||||
{ MODIFIER1|SHIFT, XK_g, XK_k, incrgaps, {.i = -1 } },
|
{ MODIFIER1|SHIFT, XK_g, XK_k, incrgaps, {.i = -1 } },
|
||||||
|
|
||||||
/* Media buttons */
|
/* Media buttons */
|
||||||
#if USEMEDIA
|
#if USEMEDIA
|
||||||
{ 0, -1, XF86XK_AudioMute, spawn, cmd( "speedwm-audioctrl -mute" ) },
|
{ 0, -1, XF86XK_AudioMute, spawn, cmd( "speedwm-audioctrl -mute" ) },
|
||||||
{ 0, -1, XF86XK_AudioRaiseVolume, spawn, cmd( "speedwm-audioctrl -raise" ) },
|
{ 0, -1, XF86XK_AudioRaiseVolume, spawn, cmd( "speedwm-audioctrl -raise" ) },
|
||||||
{ 0, -1, XF86XK_AudioLowerVolume, spawn, cmd( "speedwm-audioctrl -lower" ) },
|
{ 0, -1, XF86XK_AudioLowerVolume, spawn, cmd( "speedwm-audioctrl -lower" ) },
|
||||||
{ 0, -1, XF86XK_AudioPrev, spawn, cmd( "cmus-remote --prev" ) },
|
{ 0, -1, XF86XK_AudioPrev, spawn, cmd( "cmus-remote --prev" ) },
|
||||||
{ 0, -1, XF86XK_AudioNext, spawn, cmd( "cmus-remote --next" ) },
|
{ 0, -1, XF86XK_AudioNext, spawn, cmd( "cmus-remote --next" ) },
|
||||||
{ 0, -1, XF86XK_AudioStop, spawn, cmd( "pkill cmus" ) },
|
{ 0, -1, XF86XK_AudioStop, spawn, cmd( "pkill cmus" ) },
|
||||||
{ 0, -1, XF86XK_AudioPause, spawn, cmd( "cmus-remote --pause" ) },
|
{ 0, -1, XF86XK_AudioPause, spawn, cmd( "cmus-remote --pause" ) },
|
||||||
{ 0, -1, XF86XK_WWW, spawn, cmd( "qutebrowser" ) },
|
{ 0, -1, XF86XK_WWW, spawn, cmd( "qutebrowser" ) },
|
||||||
{ 0, -1, XF86XK_PowerOff, spawn, cmd( "speedwm-shutdown" ) },
|
{ 0, -1, XF86XK_PowerOff, spawn, cmd( "speedwm-shutdown" ) },
|
||||||
{ 0, -1, XF86XK_Sleep, spawn, cmd( "slock" ) },
|
{ 0, -1, XF86XK_Sleep, spawn, cmd( "slock" ) },
|
||||||
{ 0, -1, XF86XK_Mail, spawn, cmd( TERMINAL "neomutt" ) },
|
{ 0, -1, XF86XK_Mail, spawn, cmd( TERMINAL "neomutt" ) },
|
||||||
{ 0, -1, XF86XK_TaskPane, spawn, cmd( TERMINAL "htop" ) },
|
{ 0, -1, XF86XK_TaskPane, spawn, cmd( TERMINAL "htop" ) },
|
||||||
{ 0, -1, XF86XK_WLAN, spawn, cmd( "speedwm-netctrl disconnect" ) },
|
{ 0, -1, XF86XK_WLAN, spawn, cmd( "speedwm-netctrl disconnect" ) },
|
||||||
{ 0, -1, XF86XK_Music, spawn, cmd( TERMINAL "tmux new-session -A -D -s cmus $(which --skip-alias cmus)" ) },
|
{ 0, -1, XF86XK_Music, spawn, cmd( TERMINAL "tmux new-session -A -D -s cmus $(which --skip-alias cmus)" ) },
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
|
@ -240,9 +240,9 @@ static char deckformat[] = "[%d]"; /* Format of the deck co
|
||||||
#define customprompt "dmenu -i -l 10 -p 'Enter an S expression >' <" /* Run launcher to use for the custom layout */
|
#define customprompt "dmenu -i -l 10 -p 'Enter an S expression >' <" /* Run launcher to use for the custom layout */
|
||||||
|
|
||||||
/* Resetting */
|
/* Resetting */
|
||||||
static int resetlayout = 1; /* Reset layout when there is only one client visible */
|
static int resetlayout = 0; /* Reset layout when there is only one client visible */
|
||||||
static int resetmfact = 1; /* Reset mfact when there is only one client visible */
|
static int resetmfact = 0; /* Reset mfact when there is only one client visible */
|
||||||
static int resetgaps = 1; /* Reset gaps when there is only one client visible */
|
static int resetgaps = 0; /* Reset gaps when there is only one client visible */
|
||||||
|
|
||||||
/* Colors
|
/* Colors
|
||||||
*
|
*
|
||||||
|
|
2
signal.h
2
signal.h
|
@ -124,4 +124,6 @@ static Signal signals[] = {
|
||||||
{ 111, rotatelayoutaxis, {.i = -4 } },
|
{ 111, rotatelayoutaxis, {.i = -4 } },
|
||||||
{ 112, mirrorlayout, {0} },
|
{ 112, mirrorlayout, {0} },
|
||||||
{ 113, setlayout, {.v = &layouts[14]} }, /* Empty layout */
|
{ 113, setlayout, {.v = &layouts[14]} }, /* Empty layout */
|
||||||
|
{ 114, setbpgaps, {.i = +1 } },
|
||||||
|
{ 115, setbpgaps, {.i = -1 } },
|
||||||
};
|
};
|
||||||
|
|
18
speedwm.c
18
speedwm.c
|
@ -679,6 +679,9 @@ static void togglefullscr(const Arg *arg);
|
||||||
static void setbarheight(const Arg *arg);
|
static void setbarheight(const Arg *arg);
|
||||||
static void resetbarheight(const Arg *arg);
|
static void resetbarheight(const Arg *arg);
|
||||||
|
|
||||||
|
/* barpadding + gaps */
|
||||||
|
static void setbpgaps(const Arg *arg);
|
||||||
|
|
||||||
/* barpadding */
|
/* barpadding */
|
||||||
static void setbarpaddingv(const Arg *arg);
|
static void setbarpaddingv(const Arg *arg);
|
||||||
static void setbarpaddingh(const Arg *arg);
|
static void setbarpaddingh(const Arg *arg);
|
||||||
|
@ -3700,6 +3703,21 @@ setbarheight(const Arg *arg)
|
||||||
arrange(selmon);
|
arrange(selmon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
setbpgaps(const Arg *arg)
|
||||||
|
{
|
||||||
|
if (altbar || resetgaps)
|
||||||
|
return;
|
||||||
|
|
||||||
|
setbarpaddingv(arg);
|
||||||
|
setbarpaddingh(arg);
|
||||||
|
incrgaps(arg);
|
||||||
|
|
||||||
|
updatebarpos(selmon);
|
||||||
|
resizebarwin(selmon);
|
||||||
|
arrange(selmon);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
resetbarheight(const Arg *arg)
|
resetbarheight(const Arg *arg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue