Picom Toggle

- Replace picom with toggle_picom script in autostart
- Add keybinding to run toggle_picom script
This commit is contained in:
Sravan Balaji
2021-01-18 00:51:44 -05:00
parent fd9e12e7c5
commit 3f3811e80d

View File

@@ -43,7 +43,7 @@ static const char *const autostart[] = {
"flameshot", NULL, // Flameshot Screenshot Tool
"xfce4-power-manager", NULL, // XFCE4 Power Manager
// Background Processes
"picom", "--experimental-backend", "--config", "/home/sravan/.config/picom/picom.conf", NULL, // Picom Compositor
"bash", "/home/sravan/.config/picom/toggle_picom.sh", NULL, // Picom Compositor
"deadd-notification-center", NULL, // Deadd Notification Center
"greenclip", "daemon", NULL, // Greenclip Clipboard Manager
"redshift", "-x", NULL, // Reset redshift display gamma
@@ -124,6 +124,7 @@ static const char *playershiftcmd[] = { "playerctld", "shift", NULL};
static const char *flameshotcmd[] = { "flameshot", "gui", NULL };
static const char *noticentercmd[] = { "/bin/bash", "/home/sravan/.config/deadd/open-notification-center.sh", NULL };
static const char *notitogglecmd[] = { "/bin/bash", "/home/sravan/.config/deadd/deadd-notification-toggle.sh", NULL };
static const char *compositortogglecmd[] = { "/bin/bash", "/home/sravan/.config/picom/toggle_picom.sh", NULL, };
/*
* Xresources preferences to load at startup
@@ -160,6 +161,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd} },
{ MODKEY, XK_n, spawn, {.v = noticentercmd} },
{ MODKEY|ShiftMask, XK_n, spawn, {.v = notitogglecmd} },
{ MODKEY|ControlMask|ShiftMask, XK_Escape, spawn, {.v = compositortogglecmd} },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },