taffybar-3.2.1: A desktop bar similar to xmobar, but with more GUI

Copyright2017 Ulf Jasper
LicenseBSD3-style (see LICENSE)
MaintainerUlf Jasper <ulf.jasper@web.de>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

System.Taffybar.Widget.XDGMenu.Menu

Description

Implementation of version 1.1 of the freedesktop "Desktop Menu Specification", see https://specifications.freedesktop.org/menu-spec/menu-spec-1.1.html

See also MenuWidget.

Synopsis

Documentation

data Menu Source #

Displayable menu

Instances
Eq Menu Source # 
Instance details

Defined in System.Taffybar.Widget.XDGMenu.Menu

Methods

(==) :: Menu -> Menu -> Bool #

(/=) :: Menu -> Menu -> Bool #

Show Menu Source # 
Instance details

Defined in System.Taffybar.Widget.XDGMenu.Menu

Methods

showsPrec :: Int -> Menu -> ShowS #

show :: Menu -> String #

showList :: [Menu] -> ShowS #

data MenuEntry Source #

Displayable menu entry

Constructors

MenuEntry 

buildMenu :: Maybe String -> IO Menu Source #

Fetch menus and desktop entries and assemble the menu.

getApplicationEntries Source #

Arguments

:: [String]

Preferred languages

-> XDGMenu 
-> IO [DesktopEntry] 

Return a list of all available desktop entries for a given xdg menu.