From f91eebdbe4057131e504b8c48266f8e04d6efe4e Mon Sep 17 00:00:00 2001 From: Linux User Date: Thu, 20 Oct 2022 14:14:05 +0000 Subject: [PATCH] Add color picker --- config.def.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.def.h b/config.def.h index 0304c94..34b38d5 100644 --- a/config.def.h +++ b/config.def.h @@ -35,11 +35,13 @@ static const char *colors[][3] = { static const char *tags[] = { "", "", "3", "", "5", "6", "7", "8", "" }; /* launcher commands (They must be NULL terminated) */ +static const char* grabc[] = { "grabc", "|", "tr", "-d", "'\n'", "|", "xclip", "-selection", "clipboard", NULL }; static const char* bhev[] = { "firefox", "bhev.ru", NULL }; static const char* youtube[] = { "firefox", "youtube.com", NULL }; static const Launcher launchers[] = { /* command name to display */ + { grabc, "" }, { bhev, "" }, { youtube, "" }, }; @@ -92,6 +94,8 @@ static const char *volup[] = { "pactl", "set-sink-volume", "0", "+5%", NULL }; static const char *voldown[] = { "pactl", "set-sink-volume", "0", "-5%", NULL }; static const char *volmute[] = { "pactl", "set-sink-mute", "0", "toggle", NULL }; +static const char *backlightup[] = { "s", "set-sink-mute", "0", "toggle", NULL }; + static const char *dmenucmd[] = { "dmenu_run", "-g", "10", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL };