summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-01-18 21:22:53 +0100
committertv <tv@krebsco.de>2023-01-19 14:08:27 +0100
commitb3ebccb032e0f8e5baba4a96e289807a209cadfb (patch)
tree5c9cbc87e498324d18632350d2e34d44d645e74e
parenta8cb1328737926cf948d1a7dfbdfd6eff35428d9 (diff)
tv xmonad: add toggleFocus
-rw-r--r--tv/5pkgs/haskell/xmonad-tv/src/main.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tv/5pkgs/haskell/xmonad-tv/src/main.hs b/tv/5pkgs/haskell/xmonad-tv/src/main.hs
index 2061ae4b9..eb61bd5cf 100644
--- a/tv/5pkgs/haskell/xmonad-tv/src/main.hs
+++ b/tv/5pkgs/haskell/xmonad-tv/src/main.hs
@@ -5,6 +5,7 @@ module Main (main) where
import System.Exit (exitFailure)
import XMonad.Hooks.EwmhDesktops (ewmh)
+import XMonad.Hooks.RefocusLast (refocusLastLayoutHook, toggleFocus)
import Control.Exception
import Control.Monad.Extra (whenJustM)
@@ -87,6 +88,7 @@ mainNoArgs = do
, keys = myKeys myTermFont
, workspaces = workspaces0
, layoutHook =
+ refocusLastLayoutHook $
smartBorders $
ResizableTall
1
@@ -161,6 +163,8 @@ myKeys font conf = Map.fromList $
, ((_4 , xK_space ), withFocused $ \w -> ifM (isFloatingX w) xdeny $ sendMessage NextLayout)
, ((_4M , xK_space ), withFocused $ \w -> ifM (isFloatingX w) xdeny $ resetLayout)
+ , ((_4 , xK_l ), toggleFocus)
+
, ((_4 , xK_m ), windows W.focusMaster)
, ((_4 , xK_j ), windows W.focusDown)
, ((_4 , xK_k ), windows W.focusUp)