Compare commits
No commits in common. "dbd3024d98fe805f91c76eb22dfecda8c1387ac1" and "bd4f5d7e30a5f544235ac7c710c1093ba554a075" have entirely different histories.
dbd3024d98
...
bd4f5d7e30
@ -1,17 +1,15 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
{-# LANGUAGE RecordWildCards #-}
|
{-# LANGUAGE RecordWildCards #-}
|
||||||
{-# LANGUAGE TypeApplications #-}
|
|
||||||
module XMonad.Config.MasseR where
|
module XMonad.Config.MasseR where
|
||||||
|
|
||||||
|
|
||||||
import Control.Lens ((^.))
|
import XMonad.Password
|
||||||
import Data.Generics.Product (field)
|
import XMonad.CustomPrompt
|
||||||
|
import XMonad.TopicSpace
|
||||||
import qualified Data.List as List
|
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,
|
||||||
@ -32,10 +30,8 @@ import XMonad.Layout.Tabbed (TabbedDecoration,
|
|||||||
Theme (..), shrinkText,
|
Theme (..), shrinkText,
|
||||||
tabbed)
|
tabbed)
|
||||||
import XMonad.Layout.ToggleLayouts (ToggleLayout (..))
|
import XMonad.Layout.ToggleLayouts (ToggleLayout (..))
|
||||||
import XMonad.Password
|
|
||||||
import XMonad.Prompt.RunOrRaise (runOrRaisePrompt)
|
import XMonad.Prompt.RunOrRaise (runOrRaisePrompt)
|
||||||
import qualified XMonad.StackSet as W
|
import qualified XMonad.StackSet as W
|
||||||
import XMonad.TopicSpace
|
|
||||||
import XMonad.Util.EZConfig
|
import XMonad.Util.EZConfig
|
||||||
|
|
||||||
import XMonad.XMobar (zenburnPP)
|
import XMonad.XMobar (zenburnPP)
|
||||||
@ -77,7 +73,7 @@ scratchSubmaps conf = submapName . mkNamedKeymap conf $ [
|
|||||||
-- Search engines inside submaps
|
-- Search engines inside submaps
|
||||||
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 "qutebrowser"
|
||||||
_googleP = addName "Search google" $ mkBrowser google
|
_googleP = addName "Search google" $ mkBrowser google
|
||||||
ddgP = addName "Search duckduckgo" $ mkBrowser (searchEngine "duckduckgo" "http://duckduckgo.com/?q=")
|
ddgP = addName "Search duckduckgo" $ mkBrowser (searchEngine "duckduckgo" "http://duckduckgo.com/?q=")
|
||||||
extras = [(key, addName name $ mkBrowser (searchEngine name url)) | Search{..} <- searchEndpoints extraConfig]
|
extras = [(key, addName name $ mkBrowser (searchEngine name url)) | Search{..} <- searchEndpoints extraConfig]
|
||||||
|
@ -34,7 +34,5 @@ library
|
|||||||
, unix
|
, unix
|
||||||
, containers
|
, containers
|
||||||
, text
|
, text
|
||||||
, lens
|
|
||||||
, generic-lens
|
|
||||||
hs-source-dirs: src
|
hs-source-dirs: src
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
Loading…
Reference in New Issue
Block a user