diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2022-04-10 13:26:16 -0600 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-04-10 13:26:16 -0600 |
| commit | fada61902291aeb29914fff288301a8c487c4ecd (patch) | |
| tree | 047655195f50efcbd51db8f825acf589dc6abead /src/Internal/Swallow.hs | |
| parent | bf2e2459f800f953d95681a937051fcf56ac79aa (diff) | |
| download | rde-fada61902291aeb29914fff288301a8c487c4ecd.tar.gz rde-fada61902291aeb29914fff288301a8c487c4ecd.tar.bz2 rde-fada61902291aeb29914fff288301a8c487c4ecd.zip | |
Rename Internal to Rahm.Desktop
Diffstat (limited to 'src/Internal/Swallow.hs')
| -rw-r--r-- | src/Internal/Swallow.hs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/Internal/Swallow.hs b/src/Internal/Swallow.hs deleted file mode 100644 index 3e4112f..0000000 --- a/src/Internal/Swallow.hs +++ /dev/null @@ -1,29 +0,0 @@ -module Internal.Swallow ( - swallowHook, setSwallowEnabled, isSwallowEnabled, toggleSwallowEnabled) where - -import XMonad -import Data.Monoid (All) -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 False |