diff options
author | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-01-11 10:03:51 +0700 |
---|---|---|
committer | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-01-11 10:03:51 +0700 |
commit | 3722d3e087637b952e34dfd326b0b4d362705bef (patch) | |
tree | e0f91f188f68beafae547bbd09b5be85ace4a72f /awesome | |
parent | 29d1e5e02f04683d54b4d952ef40b11896beebc8 (diff) | |
download | dotfiles-3722d3e087637b952e34dfd326b0b4d362705bef.tar.gz |
Update 20170111
Diffstat (limited to 'awesome')
-rw-r--r-- | awesome/.config/awesome/rc.lua | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index ba9b0cb..0175440 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -55,6 +55,10 @@ beautiful.init("/home/cnx/.config/awesome/themes/gruvbox/theme.lua") terminal = "x-terminal-emulator" editor = "gvim" editor_cmd = terminal .. " -e vim" +cmus = terminal .. " -e cmus" +cmus_pause = "cmus-remote -u" +cmus_prev = "cmus-remote -r" +cmus_next = "cmus-remote -n" -- Default modkey. -- Usually, Mod4 is the key with a logo between Control and Alt. @@ -482,12 +486,22 @@ globalkeys = awful.util.table.join( awful.key( {modkey}, "c", - function() awful.util.spawn(terminal .. " -e cmus") end + function() awful.util.spawn(cmus) end ), awful.key( {modkey, "Shift"}, "c", - function() awful.util.spawn("cmus-remote -u") end + function() awful.util.spawn(cmus_pause) end + ), + awful.key( + {modkey, "Control"}, + "c", + function() awful.util.spawn(cmus_prev) end + ), + awful.key( + {modkey, "Mod1"}, + "c", + function() awful.util.spawn(cmus_next) end ), awful.key( {modkey}, |