aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-06-17 20:53:59 +0200
committerAdrian Kummerlaender2018-06-17 20:53:59 +0200
commit6adb81680046f2d1e38591d8dee14420ed6d8dfd (patch)
tree2f8691aca269d4038ee6b06b5c168b28dc98c558
parent14197c9ea4926d2459db5042b915ca69698b568c (diff)
downloadnixos_home-6adb81680046f2d1e38591d8dee14420ed6d8dfd.tar
nixos_home-6adb81680046f2d1e38591d8dee14420ed6d8dfd.tar.gz
nixos_home-6adb81680046f2d1e38591d8dee14420ed6d8dfd.tar.bz2
nixos_home-6adb81680046f2d1e38591d8dee14420ed6d8dfd.tar.lz
nixos_home-6adb81680046f2d1e38591d8dee14420ed6d8dfd.tar.xz
nixos_home-6adb81680046f2d1e38591d8dee14420ed6d8dfd.tar.zst
nixos_home-6adb81680046f2d1e38591d8dee14420ed6d8dfd.zip
Fix insertPosition for floating windows, dialogs from scratchpad
-rw-r--r--gui/conf/xmonad.hs12
-rw-r--r--gui/kitty.nix18
2 files changed, 18 insertions, 12 deletions
diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs
index 71990e9..359e312 100644
--- a/gui/conf/xmonad.hs
+++ b/gui/conf/xmonad.hs
@@ -3,6 +3,7 @@ import XMonad.Util.EZConfig
import XMonad.StackSet
import XMonad.Hooks.EwmhDesktops
+import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.InsertPosition
import XMonad.Layout.NoBorders
@@ -128,6 +129,11 @@ customEventHook = do
handleEventHook def
fullscreenEventHook
+customManageHook = composeOne
+ [ transience
+ , isDialog -?> doCenterFloat
+ , pure True -?> insertPosition Below Newer <+> namedScratchpadManageHook scratchpads ]
+
customLogHook = do
historyHook
customizeBorderWhen (isFloat <&&> isNotFullscreen) "#aadb0f" 6
@@ -141,9 +147,9 @@ main = xmonad $ ewmh
, keys = \c -> mkKeymap c keybindings
, startupHook = return () >> checkKeymap def keybindings
, handleEventHook = customEventHook
- , layoutHook = availableLayouts
- , manageHook = insertPosition Below Newer <+> namedScratchpadManageHook scratchpads
- , logHook = customLogHook }
+ , manageHook = customManageHook
+ , logHook = customLogHook
+ , layoutHook = availableLayouts }
`additionalKeys`
[ ((noModMask, xK_Menu) , namedScratchpadAction scratchpads "terminal") ]
diff --git a/gui/kitty.nix b/gui/kitty.nix
index e7b7922..01f1960 100644
--- a/gui/kitty.nix
+++ b/gui/kitty.nix
@@ -17,25 +17,25 @@
color8 #F2F2F2
# red
color1 #8C3346
- color9 #ff0000
+ color9 #FF0000
# green
- color2 #aadb0f
+ color2 #AADB0F
color10 #909636
# yellow
color3 #E4E093
- color11 #ffff00
+ color11 #FFFF00
# blue
color4 #352F6A
- color12 #0000ff
+ color12 #0000FF
# magenta
- color5 #ce5c00
- color13 #f57900
+ color5 #CE5C00
+ color13 #F57900
# cyan
- color6 #89b6e2
- color14 #46a4ff
+ color6 #89B6E2
+ color14 #46A4FF
# white
color7 #F2F2F2
- color15 #ffffff
+ color15 #FFFFFF
'';
};
}