diff --git a/lib/KeyBindings.hs b/lib/KeyBindings.hs index 4fa6187..8038011 100644 --- a/lib/KeyBindings.hs +++ b/lib/KeyBindings.hs @@ -4,6 +4,7 @@ module KeyBindings ( ) where import Control.Monad (void) +import Data.Foldable (forM_) import Data.List (sort, isSuffixOf) import Data.Maybe (isJust) import Graphics.X11.Types @@ -70,9 +71,7 @@ modify conf = conf viewProject :: WorkspaceId -> X () viewProject id = do project <- lookupProject id - case project of - Just p -> switchProject p - Nothing -> return () + forM_ project switchProject -- Borrowed from https://www.reddit.com/r/xmonad/comments/gzq316/how_can_i_centre_a_floating_window_without/fthtx29/ centerWindow :: Window -> X () @@ -93,7 +92,7 @@ promptConfig = def , fgHLight = N.background -- , defaultText = "" - , font = "xft:Iosevka Samae:style=Regular:size=8" + , font = "xft:Iosevka Samae:style=Regular:size=8:charwidth=5" , height = 24 , promptBorderWidth = 5 }