summaryrefslogtreecommitdiff
path: root/desktop/.xmonad/xmonad.hs
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2021-12-02 21:12:43 -0500
committerKjetil Orbekk <kj@orbekk.com>2021-12-02 21:12:43 -0500
commita5859bf00d385f36d7d3800b5c98f8fb59fbbcf8 (patch)
tree595676f8572a2e6066d10c8ac8713ff11b5b92b6 /desktop/.xmonad/xmonad.hs
parentf982ed33470f8595cc348d12b6f73df5d1d8ba93 (diff)
parent5b61ad58ce2b09c298db7364cf16f2725575598b (diff)
Merge branch 'master' of dragon.orbekk.com:/storage/projects/dotfiles
Diffstat (limited to 'desktop/.xmonad/xmonad.hs')
-rw-r--r--desktop/.xmonad/xmonad.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/.xmonad/xmonad.hs b/desktop/.xmonad/xmonad.hs
index 061e351..2bc7c07 100644
--- a/desktop/.xmonad/xmonad.hs
+++ b/desktop/.xmonad/xmonad.hs
@@ -24,7 +24,6 @@ import XMonad.Hooks.EwmhDesktops
import Control.Applicative ((<$>), pure)
import XMonad.Hooks.SetWMName
import XMonad.Hooks.ManageHelpers
-import Data.List.Split
import Control.Monad
cViolet = "#68217A"
@@ -55,7 +54,7 @@ bar = statusBar dzenCommand myDzenPP toggleStrutsKey
where toggleStrutsKey XConfig{modMask = modm} = (modm, xK_b)
main = do
- host <- (head . splitOn "." . nodeName) <$> getSystemID
+ host <- (takeWhile (/= '.') . nodeName) <$> getSystemID
setEnv "HOST" host True
config <- bar (myConfig host)
xmonad config
@@ -160,7 +159,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
-- , ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart")
-- Lock screen
- , ((modm .|. shiftMask, xK_z), spawn "mate-screensaver-command --lock")
+ , ((modm .|. shiftMask, xK_z), spawn "lock-screen.sh")
]
++