add compositor toggle keybind
This commit is contained in:
parent
468edc4692
commit
166f942f78
|
@ -59,6 +59,7 @@ Mod|i|Close the topmost notification
|
|||
Mod Shift|i|Bring back the last closed notification
|
||||
Mod|d|Open the context menu for the topmost notification
|
||||
Mod Shift|d|Run the default action for the topmost notification
|
||||
Mod|F2|Toggle Compositor
|
||||
Mod|F3|Spawn volume panel
|
||||
Mod|F9|Spawn mounting menu
|
||||
Mod|F10|Spawn unmounting menu
|
||||
|
|
8
config.h
8
config.h
|
@ -2,7 +2,6 @@
|
|||
#define BROWSER "librewolf"
|
||||
#define TERMINAL "kitty"
|
||||
#define PLAYERCTL "firefox" /* this is currently only passed to playerctl as the client to control */
|
||||
|
||||
/* appearance */
|
||||
static const unsigned int borderpx = 2;
|
||||
static const unsigned int snap = 20;
|
||||
|
@ -67,7 +66,7 @@ static const Rule rules[] = {
|
|||
{ "Zathura", "org.pwmt.zathura", NULL, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1 },
|
||||
{ NULL, "kitty", NULL, 0, 0, 0, 1, 0, 0, 0, 0, 0, -1 },
|
||||
{ "Qalculate-gtk", NULL, NULL, 'q', 0, 1, 0, 0, .5, .5, 722, 512, -1 },
|
||||
{ NULL, "sphelp", NULL, 'n', 0, 1, 1, 0, .5, .5, .3, .8, -1 },
|
||||
{ NULL, "sphelp", NULL, 'n', 0, 1, 1, 0, .5, .5, .4, .8, -1 },
|
||||
{ NULL, "splf", NULL, 'l', 0, 1, 0, 0, .5, .5, .8, .8, -1 },
|
||||
{ NULL, "sphtop", NULL, 'h', 0, 1, 0, 0, .5, .5, .8, .8, -1 },
|
||||
{ NULL, "spmix", NULL, 'm', 0, 1, 0, 0, -4, -4, 900, 600, -1 },
|
||||
|
@ -115,7 +114,7 @@ static const char *sphelp[] = { "n", TERMINAL, "--name", "sphelp", "-e", "/bin/s
|
|||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
{ MODKEY, XK_F1, togglescratch, {.v = sphelp} },
|
||||
// { MODKEY, XK_F2, spawn, {.v = (const char *[]){NULL}} },
|
||||
{ MODKEY, XK_F2, spawn, SHCMD("pidof picom && killall picom || setsid -f picom") },
|
||||
{ MODKEY, XK_F3, togglescratch, {.v = spmix} },
|
||||
// { MODKEY, XK_F4, spawn, {.v = (const char *[]){NULL}} },
|
||||
// { MODKEY, XK_F5, spawn, {.v = (const char *[]){NULL}} },
|
||||
|
@ -176,7 +175,7 @@ static const Key keys[] = {
|
|||
{ MODKEY, XK_o, togglescratch, {.v = sphtop} },
|
||||
{ MODKEY | ShiftMask, XK_o, spawn, {.v = (const char *[]){TERMINAL, "-e", "htop", NULL}} },
|
||||
{ MODKEY, XK_e, togglescratch, {.v = splf} },
|
||||
{ MODKEY | ShiftMask, XK_e, spawn, SHCMD(TERMINAL "-e $SHELL -c \"lf; $SHELL\"")},
|
||||
{ MODKEY | ShiftMask, XK_e, spawn, SHCMD(TERMINAL "-e $SHELL -c \"lf; $SHELL\"") },
|
||||
{ MODKEY, XK_u, spawn, {.v = (const char *[]){"dmenu_run", NULL}} },
|
||||
// { MODKEY | ShiftMask, XK_u, spawn, {.v = (const char *[]){NULL}} },
|
||||
{ MODKEY, XK_i, spawn, {.v = (const char *[]){"dunstctl", "close", NULL}} },
|
||||
|
@ -260,6 +259,7 @@ static const Key keys[] = {
|
|||
{ 0, XF86XK_AudioForward, spawn, {.v = (const char *[]){"playerctl", "-p", PLAYERCTL, "position", "10+", NULL}} },
|
||||
// { 0, XF86XK_AudioMedia, spawn, {.v = (const char *[]){NULL}} },
|
||||
{ 0, XF86XK_AudioMicMute, spawn, {.v = (const char *[]){"pactl set-source-mute @DEFAULT_SOURCE@ toggle", NULL}} },
|
||||
// { 0, XF86XK_PowerOff, spawn, {.v = (const char *[]){"sysact", NULL}} },
|
||||
{ 0, XF86XK_PowerOff, spawn, {.v = (const char *[]){"sysact", NULL}} },
|
||||
{ 0, XF86XK_Calculator, spawn, {.v = (const char *[]){TERMINAL, "-e", "bc", "-l", NULL}} },
|
||||
{ 0, XF86XK_Sleep, spawn, {.v = (const char *[]){"sudo", "-A", "zzz", NULL}} },
|
||||
|
|
Loading…
Reference in New Issue