| Copyright | (c) Ivan Malison |
|---|---|
| License | BSD3-style (see LICENSE) |
| Maintainer | Ivan Malison <IvanMalison@gmail.com> |
| Stability | unstable |
| Portability | unportable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
System.Taffybar.Widget.Windows
Description
Menu widget that shows the title of the currently focused window and that, when clicked, displays a menu from which the user may select a window to which to switch the focus.
Synopsis
- data WindowsConfig = WindowsConfig {}
- defaultGetMenuLabel :: X11Window -> TaffyIO Text
- defaultGetActiveLabel :: TaffyIO Text
- truncatedGetActiveLabel :: Int -> TaffyIO Text
- truncatedGetMenuLabel :: Int -> X11Window -> TaffyIO Text
- defaultWindowsConfig :: WindowsConfig
- windowsNew :: WindowsConfig -> TaffyIO Widget
- fillMenu :: IsMenuShell a => WindowsConfig -> a -> ReaderT Context IO ()
Documentation
data WindowsConfig Source #
Constructors
| WindowsConfig | |
Fields
| |
Instances
| Default WindowsConfig Source # | |
Defined in System.Taffybar.Widget.Windows Methods def :: WindowsConfig # | |
windowsNew :: WindowsConfig -> TaffyIO Widget Source #
Create a new Windows widget that will use the given Pager as its source of events.
fillMenu :: IsMenuShell a => WindowsConfig -> a -> ReaderT Context IO () Source #
Populate the given menu widget with the list of all currently open windows.