mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 11:22:23 +00:00
asdf
This commit is contained in:
parent
0235ecf7c2
commit
a4a3a16a8f
6 changed files with 27 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"optOut": false,
|
"optOut": false,
|
||||||
"lastUpdateCheck": 1591697300975
|
"lastUpdateCheck": 1591876593097
|
||||||
}
|
}
|
Binary file not shown.
|
@ -71,6 +71,7 @@ import XMonad.Layout.LayoutModifier
|
||||||
import XMonad.Util.NamedScratchpad
|
import XMonad.Util.NamedScratchpad
|
||||||
import XMonad.Util.Run
|
import XMonad.Util.Run
|
||||||
import XMonad.Util.SpawnOnce (spawnOnce)
|
import XMonad.Util.SpawnOnce (spawnOnce)
|
||||||
|
import qualified XMonad.Hooks.UrgencyHook as Urgency
|
||||||
import XMonad.Util.WorkspaceCompare ( getSortByXineramaPhysicalRule , getSortByIndex)
|
import XMonad.Util.WorkspaceCompare ( getSortByXineramaPhysicalRule , getSortByIndex)
|
||||||
|
|
||||||
import qualified Data.Monoid
|
import qualified Data.Monoid
|
||||||
|
@ -227,14 +228,13 @@ myStartupHook = do
|
||||||
spawnOnce "mailspring --background &"
|
spawnOnce "mailspring --background &"
|
||||||
spawnOnce "redshift -P -O 5000 &"
|
spawnOnce "redshift -P -O 5000 &"
|
||||||
spawn "xset r rate 300 50 &" -- make key repeat quicker
|
spawn "xset r rate 300 50 &" -- make key repeat quicker
|
||||||
|
|
||||||
spawn "/home/leon/.screenlayout/dualscreen-stacked.sh"
|
spawn "/home/leon/.screenlayout/dualscreen-stacked.sh"
|
||||||
io $ threadDelay $ 1000 * 100
|
io $ threadDelay $ 1000 * 100
|
||||||
spawnOnce "picom --config ~/.config/picom.conf" --no-fading-openclose"
|
spawnOnce "/home/leon/Downloads/picom --config /home/leon/.config/picom.conf --experimental-backends --backend xrender" --no-fading-openclose"
|
||||||
spawn "/home/leon/.config/polybar/launch.sh"
|
spawn "/home/leon/.config/polybar/launch.sh"
|
||||||
spawnOnce "nitrogen --restore"
|
spawnOnce "nitrogen --restore"
|
||||||
spawnOnce "mailnag"
|
spawnOnce "mailnag"
|
||||||
spawnOnce "flashfocus"
|
--spawnOnce "flashfocus"
|
||||||
for_ ["led1", "led2"] $ \led -> safeSpawn "sudo" ["liquidctl", "set", led, "color", "fixed", "00ffff"]
|
for_ ["led1", "led2"] $ \led -> safeSpawn "sudo" ["liquidctl", "set", led, "color", "fixed", "00ffff"]
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
@ -497,18 +497,21 @@ main = do
|
||||||
, modMask = myModMask
|
, modMask = myModMask
|
||||||
, borderWidth = 1
|
, borderWidth = 1
|
||||||
, layoutHook = myLayout
|
, layoutHook = myLayout
|
||||||
, logHook = polybarLogHooks <+> logHook Desktop.desktopConfig <+> fadeInactiveLogHook 1 <+> logHook def
|
, logHook = mconcat [ polybarLogHooks, Ewmh.ewmhDesktopsLogHook, logHook Desktop.desktopConfig, logHook def]
|
||||||
, startupHook = myStartupHook <+> return () >> checkKeymap myConfig myKeys
|
, startupHook = mconcat [ myStartupHook, Ewmh.ewmhDesktopsStartup, return () >> checkKeymap myConfig myKeys]
|
||||||
, manageHook = manageSpawn <+> myManageHook <+> manageHook def
|
, manageHook = mconcat [ manageSpawn, myManageHook, manageHook def]
|
||||||
, focusedBorderColor = aqua
|
, focusedBorderColor = aqua
|
||||||
, normalBorderColor = "#282828"
|
, normalBorderColor = "#282828"
|
||||||
, handleEventHook = mySwallowEventHook <+> handleEventHook Desktop.desktopConfig
|
, handleEventHook = mconcat [ mySwallowEventHook
|
||||||
|
, activateWindowEventHook
|
||||||
|
, handleEventHook Desktop.desktopConfig
|
||||||
|
, Ewmh.ewmhDesktopsEventHook
|
||||||
|
]
|
||||||
--, handleEventHook = minimizeEventHook <+> handleEventHook def <+> hintsEventHook -- <+> Ewmh.fullscreenEventHook
|
--, handleEventHook = minimizeEventHook <+> handleEventHook def <+> hintsEventHook -- <+> Ewmh.fullscreenEventHook
|
||||||
, mouseBindings = myMouseBindings <+> mouseBindings def
|
, mouseBindings = myMouseBindings <+> mouseBindings def
|
||||||
}
|
}
|
||||||
|
|
||||||
xmonad
|
xmonad
|
||||||
$ Ewmh.ewmh
|
|
||||||
$ Nav2d.withNavigation2DConfig def { Nav2d.defaultTiledNavigation = Nav2d.sideNavigation }
|
$ Nav2d.withNavigation2DConfig def { Nav2d.defaultTiledNavigation = Nav2d.sideNavigation }
|
||||||
$ docks
|
$ docks
|
||||||
$ myConfig
|
$ myConfig
|
||||||
|
@ -519,6 +522,18 @@ main = do
|
||||||
mySwallowEventHook = WindowSwallowing.swallowEventHook ([className =? "Alacritty", className =? "Termite"]) ([return True])
|
mySwallowEventHook = WindowSwallowing.swallowEventHook ([className =? "Alacritty", className =? "Termite"]) ([return True])
|
||||||
|
|
||||||
|
|
||||||
|
activateWindowEventHook :: Event -> X All
|
||||||
|
activateWindowEventHook (ClientMessageEvent { ev_message_type = messageType, ev_window = window }) = withWindowSet $ \ws -> do
|
||||||
|
activateWindowAtom <- getAtom "_NET_ACTIVE_WINDOW"
|
||||||
|
when (messageType == activateWindowAtom) $
|
||||||
|
if window `elem` (concatMap (W.integrate' . W.stack . W.workspace) (W.current ws : W.visible ws))
|
||||||
|
then windows (W.focusWindow window)
|
||||||
|
else windows (W.shiftWin (W.tag $ W.workspace $ W.current ws) window)
|
||||||
|
return $ All True
|
||||||
|
activateWindowEventHook _ = return $ All True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- POLYBAR Kram -------------------------------------- {{{
|
-- POLYBAR Kram -------------------------------------- {{{
|
||||||
|
|
||||||
-- | Loghook for polybar on a given monitor.
|
-- | Loghook for polybar on a given monitor.
|
||||||
|
|
|
@ -34,7 +34,7 @@ swallowEventHook parentQueries childQueries event = do
|
||||||
oldFloating <- XS.gets floatingBeforeClosing
|
oldFloating <- XS.gets floatingBeforeClosing
|
||||||
case (maybeSwallowedParent, maybeOldStack) of
|
case (maybeSwallowedParent, maybeOldStack) of
|
||||||
(Just parent, Just oldStack) -> do
|
(Just parent, Just oldStack) -> do
|
||||||
liftIO $ threadDelay 100000
|
--liftIO $ threadDelay 100000
|
||||||
windows
|
windows
|
||||||
(\ws ->
|
(\ws ->
|
||||||
updateStack (const $ Just $ oldStack { W.focus = parent })
|
updateStack (const $ Just $ oldStack { W.focus = parent })
|
||||||
|
|
BIN
files/scripts/picom
Executable file
BIN
files/scripts/picom
Executable file
Binary file not shown.
2
files/scripts/runXephyr.sh
Executable file
2
files/scripts/runXephyr.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
DISPLAY=:0 Xephyr -br -ac -noreset -screen 1920x1080 -keybd ephyr,,,xkbmodel=evdev,xkblayout=de :2
|
Loading…
Reference in a new issue