summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-03-29 03:41:02 -0700
committerBen Sima <ben@bsima.me>2020-03-29 03:41:02 -0700
commit1bc3140d235bbb6902ea5503a509ce53c610b786 (patch)
tree2f20a1e1e0759136ca5a0c4de930388fa39231a6 /lib
parent5c490744617f58f06fc96e7121722ec2618e42b7 (diff)
Reorganize and add chat/mumble commands
Diffstat (limited to 'lib')
-rw-r--r--lib/cfg.def.h46
1 files changed, 27 insertions, 19 deletions
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)