mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
Compare commits
3 commits
ae721808c0
...
36af139254
| Author | SHA1 | Date | |
|---|---|---|---|
| 36af139254 | |||
| 8e6ce9e5df | |||
| 4bb8909218 |
2 changed files with 18 additions and 8 deletions
|
|
@ -86,7 +86,14 @@ isEvolution :: Query Bool
|
||||||
isEvolution = className ~? "gnome.Evolution"
|
isEvolution = className ~? "gnome.Evolution"
|
||||||
|
|
||||||
isEvolutionComposer :: Query Bool
|
isEvolutionComposer :: Query Bool
|
||||||
isEvolutionComposer = isEvolution <&&> title =? "Compose Message"
|
isEvolutionComposer =
|
||||||
|
isEvolution <&&>
|
||||||
|
(fmap or . sequence)
|
||||||
|
[ title =? "Compose Message"
|
||||||
|
, title ^? "Re: " -- reply message composer
|
||||||
|
, title ^? "Appointment" -- calendar event editor
|
||||||
|
, title ^? "Meeting" -- calendar event editor
|
||||||
|
]
|
||||||
|
|
||||||
isFirefox :: Query Bool
|
isFirefox :: Query Bool
|
||||||
isFirefox = className =? "firefox"
|
isFirefox = className =? "firefox"
|
||||||
|
|
@ -184,13 +191,16 @@ doShiftAndGreedyView n = doF . go =<< ask
|
||||||
where go :: Window -> WindowSet -> WindowSet
|
where go :: Window -> WindowSet -> WindowSet
|
||||||
go w s = W.greedyView n $ W.shiftWin n w s
|
go w s = W.greedyView n $ W.shiftWin n w s
|
||||||
|
|
||||||
hasProp :: (Window -> WindowSet -> Bool) -> Query Bool
|
queryWindowSet :: Query WindowSet
|
||||||
hasProp f = f <$> ask <*> (liftX $ gets windowset)
|
queryWindowSet = liftX $ gets windowset
|
||||||
|
|
||||||
windowIsInCurrentWorkspace :: Query Bool
|
windowIsInCurrentWorkspace :: Query Bool
|
||||||
windowIsInCurrentWorkspace = hasProp $ \w s -> case W.findTag w s of
|
windowIsInCurrentWorkspace = do
|
||||||
Just from | from == W.currentTag s -> True
|
w <- ask
|
||||||
_ -> False
|
s <- queryWindowSet
|
||||||
|
pure $ case W.findTag w s of
|
||||||
|
Just from | from == W.currentTag s -> True
|
||||||
|
_ -> False
|
||||||
|
|
||||||
myStartupHook :: X ()
|
myStartupHook :: X ()
|
||||||
myStartupHook = do
|
myStartupHook = do
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ let
|
||||||
domain = "git.confusedcompiler.org";
|
domain = "git.confusedcompiler.org";
|
||||||
owner = "leana8959";
|
owner = "leana8959";
|
||||||
repo = "ruler";
|
repo = "ruler";
|
||||||
rev = "00b6c4f1b5d764b049028ba4207ca1dc8ad74f2b";
|
rev = "0cad6d87e2e607b39fe72fc292924c069e661293";
|
||||||
hash = "sha256-CI9jKcNoFqv4AgQIFFkqafcg2ybs2MN+RaEnuv72Mbc=";
|
hash = "sha256-AIjGG2FxMiojO1E8jJxBXs9ZaRy3OEAtEp5CwicllRE=";
|
||||||
}) { };
|
}) { };
|
||||||
|
|
||||||
cabalOverrides = o: {
|
cabalOverrides = o: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue