From 00fa1aa40e53201a3496989edbd583ee0a2167de Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Sun, 29 May 2022 18:51:39 -0500 Subject: [PATCH] macPro wrong icons --- config.def.h | 11 ++++++----- config.macpro.h | 5 +++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/config.def.h b/config.def.h index b9eb7ac..dc0bdfa 100644 --- a/config.def.h +++ b/config.def.h @@ -2,9 +2,10 @@ #include /*volume*/ -static const char *upvol[] = { "/usr/bin/pactl", "set-sink-volume", "0", "+5%", NULL }; -static const char *downvol[] = { "/usr/bin/pactl", "set-sink-volume", "0", "-5%", NULL }; -static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", "0", "toggle", NULL }; +#define DISPLAY "alsa_output.usb-Apple_Inc._Display_Audio_0E020A16-00.analog-stereo" +static const char *upvol[] = { "/usr/bin/pactl", "set-sink-volume", DISPLAY, "+5%", NULL }; +static const char *downvol[] = { "/usr/bin/pactl", "set-sink-volume", DISPLAY, "-5%", NULL }; +static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", DISPLAY, "toggle", NULL }; /*Keyboard backlight*/ static const char *kbdbrightup[] = { "brightnessctl", "-d", "smc::kbd_backlight", "s", "+10%" }; static const char *kbdbrightdown[] = { "brightnessctl", "-d", "smc::kbd_backlight", "s", "10%-" }; @@ -40,8 +41,8 @@ static const unsigned int alphas[][3] = { /* tagging */ //static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; -static const char *tags[] = { "", "", "", "", "", "", "", "", "" }; - +static const char *tags[] = { "", "", "", "", "", "", "", "", "" }; + static const Rule rules[] = { /* xprop(1): * WM_CLASS(STRING) = instance, class diff --git a/config.macpro.h b/config.macpro.h index 6b5521e..41cbd70 100644 --- a/config.macpro.h +++ b/config.macpro.h @@ -50,9 +50,10 @@ static const Rule rules[] = { */ /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Brave", NULL, NULL, 1, 0, -1 }, + { "Brave", NULL, NULL, 0<<1, 0, -1 }, { "imagej", NULL, NULL, 0, 1, -1 }, - { "eclipse", NULL, NULL, 0, 1, -1 }, + { "eclipse", NULL, NULL, 1<<4, 1, -1 }, + { "Arduino", NULL, NULL, 1<<4, 1, -1 }, }; /* layout(s) */