aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Main.hs2
-rw-r--r--src/Rahm/Desktop/Swallow.hs34
2 files changed, 0 insertions, 36 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 6a07f29..d591d3a 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -12,7 +12,6 @@ import Rahm.Desktop.Logger
import Rahm.Desktop.Marking
import Rahm.Desktop.RebindKeys
import qualified Rahm.Desktop.StackSet as W
-import Rahm.Desktop.Swallow
import Rahm.Desktop.XMobarLog
import System.Directory (getHomeDirectory)
import System.Environment (setEnv)
@@ -78,7 +77,6 @@ main = do
composeAll
[ fullscreenEventHook,
remapHook,
- swallowHook,
dynamicTitle
( composeAll
[ title =? "Spotify" --> doMarkWindow "s"
diff --git a/src/Rahm/Desktop/Swallow.hs b/src/Rahm/Desktop/Swallow.hs
deleted file mode 100644
index 2674232..0000000
--- a/src/Rahm/Desktop/Swallow.hs
+++ /dev/null
@@ -1,34 +0,0 @@
-module Rahm.Desktop.Swallow
- ( swallowHook,
- setSwallowEnabled,
- isSwallowEnabled,
- toggleSwallowEnabled,
- )
-where
-
-import Data.Monoid (All)
-import XMonad
-import XMonad.Hooks.WindowSwallowing
-import XMonad.Util.ExtensibleState as XS
-
-data DisableSwallow = DisableSwallow Bool deriving (Show)
-
-swallowHook :: Event -> X All
-swallowHook = swallowEventHook (className =? "Alacritty") $
- liftX $ do
- (DisableSwallow disable) <- XS.get
- return (not disable)
-
-isSwallowEnabled :: X Bool
-isSwallowEnabled = do
- (DisableSwallow b) <- XS.get
- return (not b)
-
-setSwallowEnabled :: Bool -> X ()
-setSwallowEnabled enable = XS.modify $ const $ DisableSwallow $ not enable
-
-toggleSwallowEnabled :: X ()
-toggleSwallowEnabled = (setSwallowEnabled . not) =<< isSwallowEnabled
-
-instance ExtensionClass DisableSwallow where
- initialValue = DisableSwallow True