Add picom toggle tool
This commit is contained in:
parent
35ba40862e
commit
7623c7a846
|
@ -99,14 +99,12 @@ static const Layout layouts[] = {
|
|||
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
|
||||
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
|
||||
|
||||
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||
|
||||
/* commands */
|
||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
||||
static const char *dmenucmd[] = {"dmenu_run", NULL};
|
||||
static const char *termcmd[] = {"alacritty", NULL}; // change this to your term
|
||||
static const char *rofi[] = {"rofi", "-show", "drun", NULL};
|
||||
static const char *togglepicom[] = {"/bin/bash", "-c", "pidcom=$(pidof picom);if [ -z \"$pidcom\" ];then picom --config ~/.config/picom.conf -b;else kill \"$pidcom\";fi", NULL};
|
||||
|
||||
// media commands
|
||||
static const char *pctlplaycmd[] = { "playerctl", "play-pause", NULL };
|
||||
|
@ -126,7 +124,7 @@ static Key keys[] = {
|
|||
// general stuff
|
||||
{MODKEY, XK_d, spawn, {.v = rofi}},
|
||||
{MODKEY, XK_Return, spawn, {.v = termcmd }},
|
||||
{MODKEY, XK_b, togglebar, {0}},
|
||||
{MODKEY, XK_b, spawn, {.v = togglepicom}},
|
||||
{MODKEY, XK_j, focusstack, {.i = +1}},
|
||||
{MODKEY, XK_k, focusstack, {.i = -1}},
|
||||
{MODKEY, XK_i, incnmaster, {.i = +1}},
|
||||
|
|
Reference in a new issue