From 1bc3140d235bbb6902ea5503a509ce53c610b786 Mon Sep 17 00:00:00 2001
From: Ben Sima <ben@bsima.me>
Date: Sun, 29 Mar 2020 03:41:02 -0700
Subject: Reorganize and add chat/mumble commands

---
 lib/cfg.def.h | 46 +++++++++++++++++++++++++++-------------------
 1 file changed, 27 insertions(+), 19 deletions(-)

(limited to 'lib')

diff --git a/lib/cfg.def.h b/lib/cfg.def.h
index 7a024b2..0323c04 100644
--- a/lib/cfg.def.h
+++ b/lib/cfg.def.h
@@ -43,24 +43,6 @@ static struct scheme schemes[SchemeLast] = {
 	                 },
 };
 
-struct command volume_commands[] = {
-	DEFCMD("k", "up"  , "amixer -q sset Master 2%+")
-	DEFCMD("j", "down", "amixer -q sset Master 2%-")
-	DEFCMD("m", "mute", "amixer -q sset Master toggle")
-};
-
-static struct command system_commands[] = {
-	// DEFPREFIX("c", "copy/sync", sync_commands)
-	DEFCMD("R", "reboot", "reboot")
-	DEFCMD("S", "suspend", "systemctl suspend")
-	DEFCMD("h", "h-m switch", "home-manager switch")
-	DEFCMD("w", "fresh wall", "n wal")
-	DEFCMD("x", "restart xbindkeys", "pkill xbindkeys && xbindkeys")
-
-	DEFCMD("l", "light theme", "xtheme light")
-	DEFCMD("d", "dark theme", "xtheme dark")
-};
-
 static struct command apps[] = {
 	DEFCMD("c", "chromium", "chromium")
 	DEFCMD("d", "dolphin", "dolphin")
@@ -72,6 +54,12 @@ static struct command apps[] = {
 	DEFCMD("q", "qutebrowser", "qutebrowser")
 };
 
+static struct command chat[] = {
+	DEFCMD("m", "mumble mute", "mumble rpc togglemute")
+	DEFCMD("d", "mumble deaf", "mumble rpc toggledeaf")
+	DEFCMD("M", "mumble open", "mumble")
+};
+
 static struct command mail_commands[] = {
 	DEFCMD("a", "all", "eml all")
 	DEFCMD("i", "in",  "n eml in")
@@ -81,11 +69,31 @@ static struct command mail_commands[] = {
 };
 
 static struct command play_commands[] = {
-    DEFCMD("m", "morning brew", "mplayer /mnt/lake/ben/youtube/morning/morning-brew-MvlIb8EPq3Y.mp3")
+        DEFCMD("m", "morning brew", "mplayer /mnt/lake/ben/youtube/morning/morning-brew-MvlIb8EPq3Y.mp3")
+};
+
+static struct command system_commands[] = {
+	// DEFPREFIX("c", "copy/sync", sync_commands)
+	DEFCMD("R", "reboot", "reboot")
+	DEFCMD("S", "suspend", "systemctl suspend")
+	DEFCMD("h", "h-m switch", "home-manager switch")
+	DEFCMD("w", "fresh wall", "n wal")
+	DEFCMD("x", "restart xbindkeys", "pkill xbindkeys && xbindkeys")
+
+	DEFCMD("l", "light theme", "xtheme light")
+	DEFCMD("d", "dark theme", "xtheme dark")
+};
+
+struct command volume_commands[] = {
+	DEFCMD("k", "up"  , "amixer -q sset Master 2%+")
+	DEFCMD("j", "down", "amixer -q sset Master 2%-")
+	DEFCMD("m", "mute", "amixer -q sset Master toggle")
 };
 
+// top-level
 static struct command commands[] = {
 	DEFPREFIX ("a", "apps"      , apps)
+	DEFPREFIX ("c", "chat"      , chat)
 	DEFCMD    ("e", "emacs"     , "emacsclient -c")
 	DEFCMD    ("f", "flameshot" , "flameshot gui")
 	DEFPREFIX ("m", "mail"      , mail_commands)
-- 
cgit v1.2.3