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