From 754a58b4dbe58740ee47e8ae5eadd6f83b2a673c Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Fri, 28 Dec 2018 14:05:05 +0700 Subject: Update 2018-12-28 --- awesome/.config/awesome/rc.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'awesome/.config') 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, -- cgit 1.4.1