xmobar

Portabilityunportable
Stabilityunstable
MaintainerMartin Perner <martin@perner.cc>
Safe HaskellNone

Plugins.Kbd

Description

A keyboard layout indicator for Xmobar

Documentation

data XkbStateRec

Constructors

XkbStateRec 

Fields

group :: CUChar
 
locked_group :: CUChar
 
base_group :: CUShort
 
latched_group :: CUShort
 
mods :: CUChar
 
base_mods :: CUChar
 
latched_mods :: CUChar
 
locked_mods :: CUChar
 
compat_state :: CUChar
 
grab_mods :: CUChar
 
compat_grab_mods :: CUChar
 
lookup_mods :: CUChar
 
compat_lookup_mods :: CUChar
 
ptr_buttons :: CUShort
 

xkbGetState :: Display -> CUInt -> Ptr XkbStateRec -> IO CInt

getKbdLayout :: Display -> IO Int

data XkbKeyNameRec

Constructors

XkbKeyNameRec 

Fields

name :: Ptr CChar
 

data XkbKeyAliasRec

Constructors

XkbKeyAliasRec 

Fields

real :: Ptr CChar
 
t_alias :: Ptr CChar
 

data XkbNamesRec

Constructors

XkbNamesRec 

Fields

keycodes :: Atom
 
t_geometry :: Atom
 
symbols :: Atom
 
types :: Atom
 
compat :: Atom
 
vmods :: Ptr Atom
 
indicators :: Ptr Atom
 
groups :: Ptr Atom
 
keys :: Ptr XkbKeyNameRec
 
key_aliases :: Ptr CChar
 
radio_groups :: Ptr Atom
 
phys_symbols :: Atom
 
num_keys :: CUChar
 
num_key_aliases :: CUChar
 
num_rg :: CUShort
 

data XkbDescRec

Constructors

XkbDescRec 

Fields

t_dpy :: Ptr CChar
 
flags :: CUShort
 
device_spec :: CUShort
 
min_key_code :: KeyCode
 
max_key_code :: KeyCode
 
ctrls :: Ptr CChar
 
server :: Ptr CChar
 
t_map :: Ptr CChar
 
t_indicators :: Ptr CChar
 
names :: Ptr XkbNamesRec
 
t_compat :: Ptr CChar
 
geom :: Ptr CChar
 

Instances

xkbGetNames :: Display -> CUInt -> Ptr XkbDescRec -> IO Status

xGetAtomName :: Display -> Atom -> IO CString

xkbFreeNames :: Ptr XkbDescRec -> CUInt -> CInt -> IO ()

xkbFreeKeyboard :: Ptr XkbDescRec -> CUInt -> CInt -> IO ()

xkbSelectEventDetails :: Display -> CUInt -> CUInt -> CULong -> CULong -> IO CUInt

xkbSelectEvents :: Display -> CUInt -> CUInt -> CUInt -> IO CUInt

xkbUseCoreKbd :: CUInt

xkbMapNotify :: CUInt

type KbdOpts = [(String, String)]

getLayoutStr :: Display -> IO String

getLayoutStr' :: Status -> Display -> Ptr XkbDescRec -> IO String

noLaySymbols :: [String]

splitLayout :: String -> [String]

splitLayout' :: [String] -> [String] -> [String]

split :: String -> Char -> [String]

searchReplaceLayout :: KbdOpts -> String -> String

getKbdLay :: Display -> KbdOpts -> IO String

data Kbd

Constructors

Kbd [(String, String)] 

Instances

Read Kbd 
Show Kbd 
Exec Kbd