diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2022-08-28 09:58:35 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2022-08-28 09:58:35 +0200 |
| commit | 963d84a23c23b80fa3fa00c72b580adb636cf8e6 (patch) | |
| tree | c48532cfc68f91b2e685ecf9bbb3b2338630ca7c /config | |
| parent | f1183f6d47892201f364a67c6ced3cedb3e4d788 (diff) | |
| download | dotfiles-963d84a23c23b80fa3fa00c72b580adb636cf8e6.tar.gz dotfiles-963d84a23c23b80fa3fa00c72b580adb636cf8e6.tar.bz2 dotfiles-963d84a23c23b80fa3fa00c72b580adb636cf8e6.zip | |
Updated xmonad config to let come application use floating windows
Diffstat (limited to 'config')
| -rw-r--r-- | config/xmonad/xmonad.hs | 8 |
1 files changed, 7 insertions, 1 deletions
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' = [ ("<XF86AudioLowerVolume>", spawn "pulseaudio-ctl down") , ("<XF86AudioRaiseVolume>", spawn "pulseaudio-ctl up") |
