cleanup, remove keybinds i no longer use
This commit is contained in:
parent
758bf9b62e
commit
a42466fad6
|
@ -205,11 +205,6 @@ Chained keybinds
|
|||
- Super+p & r - Reset bar padding to default
|
||||
- Super+p & t - Toggle bar padding on/off
|
||||
- Super+, & r - Reset powerline options
|
||||
- Super+q & o - Kill every window except the focused
|
||||
- Super+q & n/p - Switch to the next/previous track
|
||||
- Super+q & l/h - Seek 3 seconds forward/backwards
|
||||
- Super+q & u/d - Seek 10 seconds forward/backwards
|
||||
- Super+q & 0 - Seek to the beginning of the track
|
||||
- Super+Shift+g & i - Decrease inner gaps by 1
|
||||
- Super+Shift+g & o - Decrease outer gaps by 1
|
||||
- Super+Shift+e & a - Open the virtual keyboard
|
||||
|
|
|
@ -148,11 +148,6 @@ Chained keybinds
|
|||
- Super+p & r - Reset bar padding to default
|
||||
- Super+p & t - Toggle bar padding on/off
|
||||
- Super+, & r - Reset powerline options
|
||||
- Super+q & o - Kill every window except the focused
|
||||
- Super+q & n/p - Switch to the next/previous track
|
||||
- Super+q & l/h - Seek 3 seconds forward/backwards
|
||||
- Super+q & u/d - Seek 10 seconds forward/backwards
|
||||
- Super+q & 0 - Seek to the beginning of the track
|
||||
- Super+Shift+g & i - Decrease inner gaps by 1
|
||||
- Super+Shift+g & o - Decrease outer gaps by 1
|
||||
- Super+Shift+e & a - Open the virtual keyboard
|
||||
|
|
36
keybinds.h
36
keybinds.h
|
@ -83,17 +83,13 @@ static Key keys[] = {
|
|||
{ KeyPress, MODIFIER1|CONTROL|SHIFT, -1, XK_s, spawn, cmd( "speedwm-swal" ) },
|
||||
{ KeyPress, MODIFIER1|CONTROL|SHIFT, -1, XK_n, spawn, cmd( "speedwm-netctrl" ) },
|
||||
{ KeyPress, MODIFIER1|CONTROL|SHIFT, -1, XK_b, spawn, cmd( "speedwm-btctrl" ) },
|
||||
{ KeyPress, MODIFIER1|CONTROL|SHIFT, -1, XK_r, spawn, cmd( "libspeedwm --perform core_wm_restart; speedwm -s 'Loading'" ) },
|
||||
{ KeyPress, MODIFIER1|CONTROL|SHIFT, -1, XK_r, spawn, cmd( "libspeedwm --perform core_wm_restart" ) },
|
||||
|
||||
/* Switcher */
|
||||
#if USESWITCHER
|
||||
{ KeyPress, MODIFIER1, -1, XK_Tab, switcherstart, {0} },
|
||||
#endif
|
||||
|
||||
/* Systray */
|
||||
#if USESYSTRAY
|
||||
{ KeyPress, MODIFIER1, -1, XK_s, togglesystray, {0} },
|
||||
#endif
|
||||
|
||||
/* Layout keybinds */
|
||||
{ KeyPress, MODIFIER1|CONTROL|SHIFT, -1, XK_a, cyclelayout, {.i = -1 } },
|
||||
|
@ -170,15 +166,15 @@ static Key keys[] = {
|
|||
{ KeyPress, MODIFIER1|CONTROL|SHIFT, -1, XK_Right, moveresizeedge, {.v = "R"} },
|
||||
|
||||
/* Tag keybinds */
|
||||
TAGKEYS( -1, XK_1, 0)
|
||||
TAGKEYS( -1, XK_2, 1)
|
||||
TAGKEYS( -1, XK_3, 2)
|
||||
TAGKEYS( -1, XK_4, 3)
|
||||
TAGKEYS( -1, XK_5, 4)
|
||||
TAGKEYS( -1, XK_6, 5)
|
||||
TAGKEYS( -1, XK_7, 6)
|
||||
TAGKEYS( -1, XK_8, 7)
|
||||
TAGKEYS( -1, XK_9, 8)
|
||||
TAGKEYS( -1, XK_1, 0)
|
||||
TAGKEYS( -1, XK_2, 1)
|
||||
TAGKEYS( -1, XK_3, 2)
|
||||
TAGKEYS( -1, XK_4, 3)
|
||||
TAGKEYS( -1, XK_5, 4)
|
||||
TAGKEYS( -1, XK_6, 5)
|
||||
TAGKEYS( -1, XK_7, 6)
|
||||
TAGKEYS( -1, XK_8, 7)
|
||||
TAGKEYS( -1, XK_9, 8)
|
||||
{ KeyPress, MODIFIER1|CONTROL, -1, XK_a, viewtoleft, {0} },
|
||||
{ KeyPress, MODIFIER1|CONTROL, -1, XK_d, viewtoright, {0} },
|
||||
{ KeyPress, MODIFIER1|CONTROL|SHIFT, -1, XK_z, viewtoleft_vacant, {0} },
|
||||
|
@ -202,6 +198,9 @@ static Key keys[] = {
|
|||
{ KeyPress, MODIFIER1, XK_p, XK_d, setbarpadding, {.i = -5 } },
|
||||
{ KeyPress, MODIFIER1, XK_p, XK_r, resetbarpadding, {0} },
|
||||
|
||||
/* Chained layout keybinds */
|
||||
{ KeyPress, MODIFIER1, XK_q, XK_1, togglebartags, {0} },
|
||||
|
||||
/* Chained toggle keybinds */
|
||||
{ KeyPress, MODIFIER1, XK_t, XK_t, togglebartags, {0} },
|
||||
{ KeyPress, MODIFIER1, XK_t, XK_y, togglebaremptytags, {0} },
|
||||
|
@ -212,15 +211,6 @@ static Key keys[] = {
|
|||
{ KeyPress, MODIFIER1, XK_t, XK_i, togglebaricon, {0} },
|
||||
{ KeyPress, MODIFIER1, XK_t, XK_o, toggleopacity, {0} },
|
||||
|
||||
/* Chained music keybinds */
|
||||
{ KeyPress, MODIFIER1, XK_q, XK_n, spawn, cmd( "cmus-remote --next" ) },
|
||||
{ KeyPress, MODIFIER1, XK_q, XK_p, spawn, cmd( "cmus-remote --prev" ) },
|
||||
{ KeyPress, MODIFIER1, XK_q, XK_l, spawn, cmd( "cmus-remote --seek +3" ) },
|
||||
{ KeyPress, MODIFIER1, XK_q, XK_h, spawn, cmd( "cmus-remote --seek -3" ) },
|
||||
{ KeyPress, MODIFIER1, XK_q, XK_u, spawn, cmd( "cmus-remote --seek +10" ) },
|
||||
{ KeyPress, MODIFIER1, XK_q, XK_d, spawn, cmd( "cmus-remote --seek -10" ) },
|
||||
{ KeyPress, MODIFIER1, XK_q, XK_0, spawn, cmd( "cmus-remote --seek 0" ) },
|
||||
|
||||
/* Misc */
|
||||
{ KeyPress, MODIFIER1, XK_q, XK_o, killunsel, {0} },
|
||||
{ KeyPress, MODIFIER1|SHIFT, XK_e, XK_p, spawn, cmd( "speedwm-swal --previous" ) },
|
||||
|
|
10
speedwm.1
10
speedwm.1
|
@ -423,16 +423,6 @@ Super+p & t - Toggle bar padding on/off
|
|||
.IP \[bu] 2
|
||||
Super+, & r - Reset powerline options
|
||||
.IP \[bu] 2
|
||||
Super+q & o - Kill every window except the focused
|
||||
.IP \[bu] 2
|
||||
Super+q & n/p - Switch to the next/previous track
|
||||
.IP \[bu] 2
|
||||
Super+q & l/h - Seek 3 seconds forward/backwards
|
||||
.IP \[bu] 2
|
||||
Super+q & u/d - Seek 10 seconds forward/backwards
|
||||
.IP \[bu] 2
|
||||
Super+q & 0 - Seek to the beginning of the track
|
||||
.IP \[bu] 2
|
||||
Super+Shift+g & i - Decrease inner gaps by 1
|
||||
.IP \[bu] 2
|
||||
Super+Shift+g & o - Decrease outer gaps by 1
|
||||
|
|
15
speedwm.c
15
speedwm.c
|
@ -683,9 +683,7 @@ static void set_s_layout(const Arg *arg);
|
|||
/* bar items */
|
||||
static void togglebar(const Arg *arg);
|
||||
static void togglebartags(const Arg *arg);
|
||||
#if USESYSTRAY
|
||||
static void togglesystray(const Arg *arg);
|
||||
#endif
|
||||
static void togglebaremptytags(const Arg *arg);
|
||||
static void togglebarunseltitle(const Arg *arg);
|
||||
static void togglebarlt(const Arg *arg);
|
||||
|
@ -794,6 +792,7 @@ void drawswitcher(int nwins, int first, Monitor *m);
|
|||
void switcherstart(const Arg *arg);
|
||||
static void switcherend();
|
||||
#endif
|
||||
void switcherstart(const Arg *arg);
|
||||
|
||||
/* Xresources funcs */
|
||||
#if USEXRESOURCES
|
||||
|
@ -3752,10 +3751,12 @@ drawswitcher(int nwins, int first, Monitor *m)
|
|||
drw_setscheme(drw, scheme[SchemeBar]);
|
||||
drw_map(drw, m->tabwin, 0, 0, selmon->maxwidth, selmon->maxheight);
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
switcherstart(const Arg *arg)
|
||||
{
|
||||
#if USESWITCHER
|
||||
selmon->clientsnext = NULL;
|
||||
if (selmon->tabwin)
|
||||
switcherend();
|
||||
|
@ -3831,8 +3832,10 @@ switcherstart(const Arg *arg)
|
|||
switcherend(); /* end the alt-tab functionality */
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
moveresizeedge(const Arg *arg) {
|
||||
|
@ -5464,16 +5467,18 @@ togglebar(const Arg *arg)
|
|||
arrange(selmon);
|
||||
}
|
||||
|
||||
#if USESYSTRAY
|
||||
void
|
||||
togglesystray(const Arg *arg)
|
||||
{
|
||||
#if USESYSTRAY
|
||||
selmon->hidesystray = !selmon->hidesystray;
|
||||
|
||||
updatebarpos(selmon);
|
||||
updatestatus();
|
||||
}
|
||||
#else
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
toggleborder(const Arg *arg)
|
||||
|
|
Loading…
Reference in a new issue