Update for volume script

This commit is contained in:
2026-03-07 20:15:49 -07:00
parent 5a458a3ae5
commit def49764e8

View File

@@ -16,7 +16,7 @@ static const float rootcolor[] = COLOR(0x222222ff);
//static const float bordercolor[] = COLOR(0x444444ff); //static const float bordercolor[] = COLOR(0x444444ff);
static const float bordercolor[] = COLOR(0x26ab66ff); static const float bordercolor[] = COLOR(0x26ab66ff);
//static const float focuscolor[] = COLOR(0x005577ff); //static const float focuscolor[] = COLOR(0x005577ff);
static const float focuscolor[] = COLOR(0x8f5f5bff); static const float focuscolor[] = COLOR(0xc3ff00ff);
static const float urgentcolor[] = COLOR(0xff0000ff); static const float urgentcolor[] = COLOR(0xff0000ff);
/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */ /* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */
static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */ static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */
@@ -133,9 +133,10 @@ static const char *menucmd[] = { "wmenu-run", NULL };
static const char *roficmd[] = { "rofi", "-show", "drun", NULL }; static const char *roficmd[] = { "rofi", "-show", "drun", NULL };
static const char *brupcmd[] = { "sudo", "/usr/bin/brillo", "-A", "10", NULL }; static const char *brupcmd[] = { "sudo", "/usr/bin/brillo", "-A", "10", NULL };
static const char *brdowncmd[] = { "sudo", "/usr/bin/brillo", "-U", "10", NULL }; static const char *brdowncmd[] = { "sudo", "/usr/bin/brillo", "-U", "10", NULL };
static const char *upvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; static const char *upvol[] = { "/home/jonathan/.local/bin/volume.sh", "up", NULL };
static const char *downvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; static const char *downvol[] = { "/home/jonathan/.local/bin/volume.sh", "down", NULL };
static const char *mutevol[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; static const char *mutevol[] = { "/home/jonathan/.local/bin/volume.sh", "mute", NULL };
static const char *dismissnotis[] = { "makoctl", "dismiss", "-a", NULL };
static const Key keys[] = { static const Key keys[] = {
@@ -147,6 +148,7 @@ static const Key keys[] = {
{ 0, XKB_KEY_XF86MonBrightnessUp, spawn, {.v = brupcmd} }, { 0, XKB_KEY_XF86MonBrightnessUp, spawn, {.v = brupcmd} },
{ 0, XKB_KEY_XF86MonBrightnessDown, spawn, {.v = brdowncmd} }, { 0, XKB_KEY_XF86MonBrightnessDown, spawn, {.v = brdowncmd} },
{ MODKEY, XKB_KEY_space, spawn, {.v = roficmd} }, { MODKEY, XKB_KEY_space, spawn, {.v = roficmd} },
{ MODKEY|WLR_MODIFIER_CTRL, XKB_KEY_space, spawn, {.v = dismissnotis} },
{ MODKEY, XKB_KEY_Return, spawn, {.v = termcmd} }, { MODKEY, XKB_KEY_Return, spawn, {.v = termcmd} },
{ MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, { MODKEY, XKB_KEY_j, focusstack, {.i = +1} },
{ MODKEY, XKB_KEY_k, focusstack, {.i = -1} }, { MODKEY, XKB_KEY_k, focusstack, {.i = -1} },