Go back to google
This commit is contained in:
parent
6e2a821531
commit
321ed016a0
@ -12,7 +12,6 @@ import qualified Data.List as List
|
|||||||
import XMonad
|
import XMonad
|
||||||
import XMonad.Actions.CycleWS (swapNextScreen)
|
import XMonad.Actions.CycleWS (swapNextScreen)
|
||||||
import XMonad.Actions.Search
|
import XMonad.Actions.Search
|
||||||
import XMonad.CustomPrompt
|
|
||||||
import XMonad.Hooks.EwmhDesktops (ewmh, ewmhDesktopsStartup)
|
import XMonad.Hooks.EwmhDesktops (ewmh, ewmhDesktopsStartup)
|
||||||
import XMonad.Hooks.SetWMName (setWMName)
|
import XMonad.Hooks.SetWMName (setWMName)
|
||||||
import XMonad.Hooks.UrgencyHook (args, dzenUrgencyHook,
|
import XMonad.Hooks.UrgencyHook (args, dzenUrgencyHook,
|
||||||
@ -82,14 +81,10 @@ scratchSubmaps conf = submapName . mkNamedKeymap conf $ [
|
|||||||
searchSubmaps :: ExtraConfig -> XConfig l -> NamedAction
|
searchSubmaps :: ExtraConfig -> XConfig l -> NamedAction
|
||||||
searchSubmaps extraConfig conf =
|
searchSubmaps extraConfig conf =
|
||||||
let mkBrowser = promptSearchBrowser def (extraConfig ^. field @"applications" . field @"browser")
|
let mkBrowser = promptSearchBrowser def (extraConfig ^. field @"applications" . field @"browser")
|
||||||
_googleP = addName "Search google" $ mkBrowser google
|
googleP = addName "Search google" $ mkBrowser google
|
||||||
_ddgP = addName "Search duckduckgo" $ mkBrowser (searchEngine "duckduckgo" "http://duckduckgo.com/?q=")
|
|
||||||
searx = addName "Search searx" $ mkBrowser (searchEngine "searx" "https://searx.me/?q=")
|
|
||||||
extras = [(key, addName name $ mkBrowser (searchEngine name url)) | Search{..} <- searchEndpoints extraConfig]
|
extras = [(key, addName name $ mkBrowser (searchEngine name url)) | Search{..} <- searchEndpoints extraConfig]
|
||||||
in submapName . mkNamedKeymap conf $
|
in submapName . mkNamedKeymap conf $
|
||||||
[ ("d", searx) -- Training to use ddg again
|
("g", googleP) : extras
|
||||||
, ("g", searx) -- training to use ddg again
|
|
||||||
] ++ extras
|
|
||||||
|
|
||||||
|
|
||||||
myNav2d :: Navigation2DConfig
|
myNav2d :: Navigation2DConfig
|
||||||
|
Loading…
Reference in New Issue
Block a user