From 4d2d2104601e4deb942ae9d5dc1b90ec0ff9f591 Mon Sep 17 00:00:00 2001 From: "sean.escriva" Date: Thu, 6 Nov 2008 18:17:07 +0100 Subject: documentation: XMonad.Util.Search.hs, add EZConfig keybindings example darcs-hash:20081106171707-29414-80491e6712d2817887b7530ca2d6b992326f3a41.gz --- XMonad/Actions/Search.hs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'XMonad/Actions/Search.hs') diff --git a/XMonad/Actions/Search.hs b/XMonad/Actions/Search.hs index 534b8c8..71d1945 100644 --- a/XMonad/Actions/Search.hs +++ b/XMonad/Actions/Search.hs @@ -143,6 +143,22 @@ Then add the following to your key bindings: > , ((0, xK_w), method S.wikipedia) > ] +Or in combination with XMonad.Util.EZConfig: + +> ... +> ] -- end of regular keybindings +> -- Search commands +> ++ [("M-s " ++ k, S.promptSearch P.defaultXPConfig f) | (k,f) <- searchList ] +> ++ [("M-S-s " ++ k, S.selectSearch f) | (k,f) <- searchList ] +> +> ... +> +> searchList :: [([Char], S.SearchEngine)] +> searchList = [ ("g", S.google) +> , ("h", S.hoohle) +> , ("w", S.wikipedia) +> ] + Make sure to set firefox to open new pages in a new window instead of in a new tab: @Firefox -> Edit -> Preferences -> Tabs -> New pages should be opened in...@ -- cgit v1.2.3