-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathror.lua
26 lines (25 loc) · 1.68 KB
/
ror.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- ror.lua
-- This is the file goes in your ~/.config/awesome/ directory
-- It contains your table of 'run or raise' key bindings for aweror.lua
-- Table entry format: ["key"]={"function", "match string", "optional attribute to match"}
-- The "key" can include "Control-", "Shift-", and "Mod1-" modifiers (eg "Control-z")
-- The "key" will be bound as "modkey + key". (eg from above would end up as modkey+Control+z)
-- The "function" is what gets run if no matching client windows are found.
-- Usual attributes are "class","instance", or "name". If no attribute is given it defaults to "class".
-- The "match string" will match substrings. So "Firefox" will match "blah Firefox blah"
-- Use xprop to get this info from a window. WM_CLASS(STRING) gives you "instance", "class".
-- WM_NAME(STRING) gives you the name of the selected window (usually something like the web page title
-- for browsers, or the file name for emacs).
table5={
["Control-z"]={"google-chrome --app=http://www.rdio.com","www.rdio.com", "instance"},
["e"]={"emacsclient -a emacs -n -c","Emacs"},
["w"]={"firefox","Firefox"},
["v"]={"firefox -new-window 'http://www.evernote.com/Home.action?login=true#v=l&so=mn'","Evernote", "name"},
["g"]={"firefox -new-window 'http://mail.google.com/mail/'","Gmail","name"},
["x"]={"xterm","xterm", "instance"},
["f"]={"xterm -name mcTerm -e mc -d","mcTerm", "instance"},
["Shift-s"]={"xterm -name rootTerm -cr red -title rootTerm -e su","rootTerm", "instance"},
["t"]={"xterm -name htopTerm -e htop","htopTerm","instance"},
["b"]={"xterm -name rtorrentTerm -e rtorrent","rtorrentTerm","instance"},
["z"]={"xterm -name mocpTerm -e mocp","mocpTerm", "instance"}
}