about summary refs log tree commit diff
path: root/awesome
diff options
context:
space:
mode:
authorNguyễn Gia Phong <vn.mcsinyx@gmail.com>2018-12-28 14:05:05 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2018-12-28 14:05:05 +0700
commit754a58b4dbe58740ee47e8ae5eadd6f83b2a673c (patch)
tree58a2d50ce0c7024df2a16d188dbe36f5cbfa675f /awesome
parent5710826e6f8a27e409a05c664ca79cbb4a11faf4 (diff)
downloaddotfiles-754a58b4dbe58740ee47e8ae5eadd6f83b2a673c.tar.gz
Update 2018-12-28
Diffstat (limited to 'awesome')
-rw-r--r--awesome/.config/awesome/rc.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index 8bede30..6aa7f73 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -216,7 +216,7 @@ local function cmus_spawn(command)
 end
 local function cmus() cmus_spawn"x-terminal-emulator -e cmus" end
 local function cmus_pause() cmus_spawn"cmus-remote --pause" end
-local function cmus_one() cmus_spawn"cmus-remote -C'toggle repeat_current'" end
+local function cmus_one() cmus_spawn"cmus-remote -C 'toggle repeat_current'" end
 local function cmus_prev() cmus_spawn"cmus-remote --prev" end
 local function cmus_next() cmus_spawn"cmus-remote --next" end
 
@@ -435,7 +435,10 @@ globalkeys = awful.util.table.join(
             {description = "lock screen then suspend", group = "launcher"}),
   awful.key({modkey}, "c", cmus,
             {description = "open cmus music player", group = "launcher"}),
-
+  awful.key({modkey, "Shift"}, "c", cmus_one,
+            {description = "cmus: toggle repeat current", group = "multimedia"}),
+  awful.key({modkey, "Control"}, "c", cmus_pause,
+            {description = "cmus: play/pause", group = "multimedia"}),
   awful.key({}, "XF86AudioPlay", cmus_pause,
             {description = "cmus: play/pause", group = "multimedia"}),
   awful.key({}, "XF86AudioPrev", cmus_prev,