diff --git a/CHANGES.md b/CHANGES.md index 0d33f496..1c018540 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -125,6 +125,11 @@ Extends ManageHook EDSL to work on focused windows and current workspace. + * `XMonad.Config.LXQt` + + This module provides a config suitable for use with the LXQt desktop + environment. + ### Bug Fixes and Minor Changes * `XMonad.Actions.DynamicProjects` diff --git a/XMonad/Config/LXQt.hs b/XMonad/Config/LXQt.hs new file mode 100644 index 00000000..cac785f8 --- /dev/null +++ b/XMonad/Config/LXQt.hs @@ -0,0 +1,45 @@ +{-# OPTIONS_GHC -fno-warn-missing-signatures #-} + +----------------------------------------------------------------------------- +-- | +-- Module : XMonad.Config.LXQt +-- Copyright : (c) Petr Shevtsov +-- License : BSD +-- +-- Maintainer : none +-- Stability : unstable +-- Portability : unportable +-- +-- This module provides a config suitable for use with the LXQt desktop +-- environment. + +module XMonad.Config.LXQt ( + -- * Usage + -- $usage + lxqtConfig, + desktopLayoutModifiers + ) where + +import XMonad +import XMonad.Config.Desktop + +import qualified Data.Map as M + +-- $usage +-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@: +-- +-- > import XMonad +-- > import XMonad.Config.LXQt +-- > +-- > main = xmonad lxqtConfig +-- +-- For example of how to further customize @lxqtConfig@ see "XMonad.Config.Desktop". + +lxqtConfig = desktopConfig + { terminal = "qterminal" + , keys = lxqtKeys <+> keys desktopConfig } + +lxqtKeys (XConfig {modMask = modm}) = M.fromList $ + [ ((modm, xK_p), spawn "lxqt-runner") + , ((modm .|. shiftMask, xK_q), spawn "lxqt-leave") + ] diff --git a/XMonad/Doc/Extending.hs b/XMonad/Doc/Extending.hs index 8d5522ce..bd71d96f 100644 --- a/XMonad/Doc/Extending.hs +++ b/XMonad/Doc/Extending.hs @@ -415,6 +415,9 @@ own configuration, possibly with some modifications. * "XMonad.Config.Xfce": This module provides a config suitable for use with the Xfce desktop environment. +* "XMonad.Config.LXQt": + This module provides a config suitable for use with the LXQt desktop environment. + -} {- $hooks