Skip to content

Commit e105266

Browse files
committed
XMonad wip
1 parent 1b02b32 commit e105266

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

driver/XMonad.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ addTag (Tag name) (XWindowId wid) = do
5959

6060
let
6161
tags :: String
62-
tags = if "not found" `elem` words result then "" else extractTags result
62+
tags = if strip result == "_XMONAD_TAGS: not found." then "" else extractTags result
6363

6464
newTags :: String
6565
newTags = if null tags then name else tags <> " " <> name
@@ -74,5 +74,7 @@ tagSelfWith name = do
7474
pid <- PID . show <$> getProcessID
7575
result <- findAncestorWindowId pid
7676
case result of
77-
Just wid -> addTag name wid
77+
Just wid -> do
78+
addTag name wid
79+
-- callProcess "xrefresh" [] -- FIXME
7880
Nothing -> exitFailure

driver/sensei.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import Run
77

88
main :: IO ()
99
main = do
10-
XMonad.tagSelfWith "sensei"
10+
XMonad.tagSelfWith "left"
1111
getArgs >>= run

0 commit comments

Comments
 (0)