-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
47 lines (31 loc) · 1.14 KB
/
README
File metadata and controls
47 lines (31 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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)