lpfManiak

~/.config/awesome/ror.lua

Sep 27th, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.19 KB | None | 0 0
  1. -- ror.lua
  2. -- This is the file goes in your ~/.config/awesome/ directory
  3. -- It contains your table of 'run or raise' key bindings for aweror.lua
  4. -- Table entry format: ["key"]={"function", "match string", "optional attribute to match"}
  5. -- The "key" will be bound as "modkey + key".
  6. -- The "function" is what gets run if no matching client windows are found.
  7. -- Usual attributes are "class","instance", or "name". If no attribute is given it defaults to "class".
  8. -- The "match string"  will match substrings.  So "Firefox" will match "blah Firefox blah"  
  9. -- 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).
  10.  
  11. table5={
  12.    ["i"]={"urxvt -name irssi -geometry 89x30 -e irssi","irssi", "instance"},
  13.    ["n"]={"urxvt -name ncmpcpp -geometry 89x10 -e ncmpcpp","ncmpcpp", "instance"},
  14.    ["t"]={"urxvt -name term -geometry 89x17","term", "instance"},
  15.    ["f"]={"firefox", "Firefox"},
  16.    ["m"]={"urxvt -name ranger -geometry 89x14 -e ranger","ranger", "instance"},
  17.    ["g"]={"gimp", "gimp"},
  18.    ["v"]={"mpv", "mpv"}
  19. }
Advertisement
Add Comment
Please, Sign In to add comment