From 963d84a23c23b80fa3fa00c72b580adb636cf8e6 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 28 Aug 2022 09:58:35 +0200 Subject: Updated xmonad config to let come application use floating windows --- config/xmonad/xmonad.hs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/xmonad/xmonad.hs b/config/xmonad/xmonad.hs index aa90778..ea547f1 100644 --- a/config/xmonad/xmonad.hs +++ b/config/xmonad/xmonad.hs @@ -5,6 +5,7 @@ import System.Exit import XMonad import XMonad.Config.Desktop (desktopConfig) +import XMonad.ManageHook (composeAll, doFloat, className, (-->), (=?), (<+>)) -- Utilities import XMonad.Util.Dmenu (menuArgs) @@ -49,7 +50,12 @@ layoutHook' = spacing' 4 $ reflectHoriz tiledVerticalBigMaster -- main monitor tiledHorizontalEven = Tall 1 (3 / 100) (1 / 2) spacing' x = spacingRaw True (Border x x x x) False (Border x x x x) True -manageHook' = insertPosition End Newer -- insert new window at the end of the current layout +manageHook' = composeAll + [ className =? "Anki" --> doFloat + , className =? "Steam" --> doFloat + , className =? "Gimp" --> doFloat + ] + <+> insertPosition End Newer -- insert new window at the end of the current layout keys' = [ ("", spawn "pulseaudio-ctl down") , ("", spawn "pulseaudio-ctl up") -- cgit