-
Notifications
You must be signed in to change notification settings - Fork 0
mastergreg/dzen2_python
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
DEPENDS ON
dzen2
python
python-psutil
python-mpd
hddtemp
INSTALL
add the executable in your PATH [personally i use ~/bin with a link to dzen_python]
copy the sample config file dzen_pythonrc to ~/.dzen_pythonrc
add this to your ~/.xmonad/xmonad.hs
pythonDzenPP :: PP
pythonDzenPP = defaultPP {
ppCurrent = dzenColor "#000001" "#000010" . pad
, ppVisible = dzenColor "#000002" "#000020" . pad
, ppHidden = dzenColor "#000003" "#000030" . pad
, ppHiddenNoWindows = dzenColor "#000004" "#000040"
, ppUrgent = dzenColor "#000005" "#000050"
, ppWsSep = ""
, ppSep = ""
, ppLayout = dzenColor "#000007" "#000070"
, ppTitle = dzenColor "#000006" "#000060". shorten 20
}
and here is a sample of my main function
main = do
xmproc <- spawnPipe "killall dzen2; dzen_python"
xmonad $ withUrgencyHook NoUrgencyHook defaults {
logHook = dynamicLogWithPP $ pythonDzenPP {
ppOutput = hPutStrLn xmproc
}
}
extract the dzen2 tarball to your prefered icons location (sth like /home/YOURNAME/.icons/dzen2) and edit the ICON_PATH varible in the config file (~/.dzen_pythonrc)
About
xmonad bar written in python using dzen2
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published