| Copyright | (c) Ivan A. Malison |
|---|---|
| License | BSD3-style (see LICENSE) |
| Maintainer | Ivan A. Malison |
| Stability | unstable |
| Portability | unportable |
| Safe Haskell | None |
| Language | Haskell2010 |
System.Taffybar.Widget.Workspaces
Description
Documentation
data WorkspaceState #
Instances
| Eq WorkspaceState # | |
Defined in System.Taffybar.Widget.Workspaces Methods (==) :: WorkspaceState -> WorkspaceState -> Bool # (/=) :: WorkspaceState -> WorkspaceState -> Bool # | |
| Show WorkspaceState # | |
Defined in System.Taffybar.Widget.Workspaces Methods showsPrec :: Int -> WorkspaceState -> ShowS # show :: WorkspaceState -> String # showList :: [WorkspaceState] -> ShowS # | |
getCSSClass :: Show s => s -> Text #
cssWorkspaceStates :: [Text] #
data WindowData #
Constructors
| WindowData | |
Fields
| |
Instances
| Eq WindowData # | |
Defined in System.Taffybar.Widget.Workspaces | |
| Show WindowData # | |
Defined in System.Taffybar.Widget.Workspaces Methods showsPrec :: Int -> WindowData -> ShowS # show :: WindowData -> String # showList :: [WindowData] -> ShowS # | |
data WidgetUpdate #
Constructors
| WorkspaceUpdate Workspace | |
| IconUpdate [X11Window] |
data WorkspacesContext #
Constructors
| WorkspacesContext | |
Fields | |
type WorkspacesIO a = ReaderT WorkspacesContext IO a #
liftContext :: TaffyIO a -> WorkspacesIO a #
liftX11Def :: a -> X11Property a -> WorkspacesIO a #
setWorkspaceWidgetStatusClass :: (MonadIO m, IsWidget a) => Workspace -> a -> m () #
updateWidgetClasses :: (Foldable t1, Foldable t, IsWidget a, MonadIO m) => a -> t1 Text -> t Text -> m () #
class WorkspaceWidgetController wc where #
Minimal complete definition
Methods
getWidget :: wc -> WorkspacesIO Widget #
updateWidget :: wc -> WidgetUpdate -> WorkspacesIO wc #
updateWidgetX11 :: wc -> WidgetUpdate -> WorkspacesIO wc #
Instances
Constructors
| WorkspaceWidgetController a => WWC a |
Instances
| WorkspaceWidgetController WWC # | |
Defined in System.Taffybar.Widget.Workspaces Methods getWidget :: WWC -> WorkspacesIO Widget # updateWidget :: WWC -> WidgetUpdate -> WorkspacesIO WWC # updateWidgetX11 :: WWC -> WidgetUpdate -> WorkspacesIO WWC # | |
type ControllerConstructor = Workspace -> WorkspacesIO WWC #
type WindowIconPixbufGetter = Int32 -> WindowData -> TaffyIO (Maybe Pixbuf) #
data WorkspacesConfig #
Constructors
| WorkspacesConfig | |
Fields
| |
updateVar :: MVar a -> (a -> WorkspacesIO a) -> WorkspacesIO a #
getWindowData :: [X11Window] -> [X11Window] -> X11Window -> X11Property WindowData #
addWidget :: WWC -> WorkspacesIO () #
doWidgetUpdate :: (WorkspaceIdx -> WWC -> WorkspacesIO WWC) -> WorkspacesIO () #
rateLimitFn :: forall req resp. WorkspacesContext -> (req -> IO resp) -> ResultsCombiner req resp -> IO (req -> IO resp) #
onWorkspaceUpdate :: WorkspacesContext -> IO (Event -> IO ()) #
onIconsChanged :: WorkspacesContext -> IO (Set X11Window -> IO ()) #
data WorkspaceContentsController #
Constructors
| WorkspaceContentsController | |
Fields
| |
Instances
| WorkspaceWidgetController WorkspaceContentsController # | |
Defined in System.Taffybar.Widget.Workspaces | |
newtype LabelController #
Constructors
| LabelController | |
Instances
data IconWidget #
Constructors
| IconWidget | |
Fields
| |
getPixbufForIconWidget :: Bool -> MVar (Maybe WindowData) -> Int32 -> WorkspacesIO (Maybe Pixbuf) #
buildIconWidget :: Bool -> Workspace -> WorkspacesIO IconWidget #
data IconController #
Constructors
| IconController | |
Fields
| |
Instances
updateWindowIconsById :: IconController -> [X11Window] -> WorkspacesIO () #
addCustomIconsToDefaultWithFallbackByPath :: (WindowData -> Maybe FilePath) -> FilePath -> WindowIconPixbufGetter #
addCustomIconsAndFallback :: (WindowData -> Maybe FilePath) -> (Int32 -> TaffyIO (Maybe Pixbuf)) -> WindowIconPixbufGetter -> WindowIconPixbufGetter #
sortWindowsByPosition :: [WindowData] -> WorkspacesIO [WindowData] #
updateImages :: IconController -> Workspace -> WorkspacesIO [IconWidget] #
getWindowStatusString :: WindowData -> Text #
possibleStatusStrings :: [Text] #
updateIconWidget :: IconController -> IconWidget -> Maybe WindowData -> WorkspacesIO () #
data WorkspaceButtonController #
Constructors
| WorkspaceButtonController | |
Fields | |
Instances
| WorkspaceWidgetController WorkspaceButtonController # | |
Defined in System.Taffybar.Widget.Workspaces | |
switch :: MonadIO m => WorkspacesContext -> WorkspaceIdx -> m Bool #