From 78bddd864a2d8c66a940b68e483ac33f1f72dd4f Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Fri, 31 Jul 2020 15:04:33 +0400
Subject: [PATCH] Added avizo as volume control.

Signed-off-by: Pavel Kirilin <win10@list.ru>
---
 dotfiles/.xutil  |  1 +
 dwm/config.def.h | 10 +++++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dotfiles/.xutil b/dotfiles/.xutil
index 261e6dc..296e794 100644
--- a/dotfiles/.xutil
+++ b/dotfiles/.xutil
@@ -4,4 +4,5 @@ setxkbmap -model pc105 -layout us,ru -option grp:caps_toggle
 picom --config ~/.picom.conf -b
 nitrogen --restore
 dunst -config ~/.dunstrc &
+avizo-service &
 unclutter &
diff --git a/dwm/config.def.h b/dwm/config.def.h
index 0c24d98..87d7457 100644
--- a/dwm/config.def.h
+++ b/dwm/config.def.h
@@ -26,9 +26,10 @@ static const Rule rules[] = {
 	 *	WM_CLASS(STRING) = instance, class
 	 *	WM_NAME(STRING) = title
 	 */
-	/* class      instance    title       tags mask     isfloating   monitor */
-	{ "Gimp",     NULL,       NULL,       0,            1,           -1 },
-	{ "Firefox",  NULL,       NULL,       1 << 8,       0,           -1 },
+	/* class            instance    title       tags mask     isfloating   monitor */
+	{ "Gimp",           NULL,       NULL,       0,            1,           -1 },
+	{ "Firefox",        NULL,       NULL,       1 << 8,       0,           -1 },
+  { "Avizo-service",  NULL,       NULL,       0,            1,           -1 }
 };
 
 /* layout(s) */
@@ -66,6 +67,9 @@ static Key keys[] = {
 	{ MODKEY,                       XK_b,      togglebar,      {0} },
   { 0,                            XK_Print,  spawn,          SHCMD("maim /dev/stdout | xclip -sel clip -t image/png") },
   { ShiftMask,                    XK_Print,  spawn,          SHCMD("maim -s /dev/stdout | xclip -sel clip -t image/png") },
+	{ 0,                            XF86XK_AudioLowerVolume, spawn, SHCMD("volumectl lower") },
+  { 0,                            XF86XK_AudioRaiseVolume, spawn, SHCMD("volumectl raise") },
+	{ 0,                            XF86XK_AudioMute, spawn, SHCMD("volumectl mute") },
 	{ MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
 	{ MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
 	{ MODKEY,                       XK_i,      incnmaster,     {.i = +1 } },
-- 
GitLab