hbro-0.4.6: A suckless minimal KISSy browser

Safe HaskellNone




importKeyBindings :: [(([Modifier], String), GUI -> IO ())] -> Map (Set Modifier, String) (GUI -> IO ())Source

Converts key bindings list to a map. | Calls importKeyBindings'.

importKeyBindings' :: [(([Modifier], String), GUI -> IO ())] -> [((Set Modifier, String), GUI -> IO ())]Source

Converts modifiers list to modifiers sets. The order of modifiers in key bindings don't matter. Called by importKeyBindings.

runCommand' :: String -> IO ()Source

Like run runCommand, but return IO ()

runExternalCommand :: String -> IO ()Source

Run external command and won't kill when parent process exit. nohup for ignore all hup signal. `> devnull 2>&1` redirect all stdout (1) and stderr (2) to `/dev/null`