diff options
| author | Franck Cuny <franckcuny@gmail.com> | 2016-07-02 20:06:31 -0700 |
|---|---|---|
| committer | Franck Cuny <franckcuny@gmail.com> | 2016-07-02 20:06:31 -0700 |
| commit | 4b8e43f75b394a4e6169884fbfb4c606865c6a22 (patch) | |
| tree | 48cae6b8e8f9b68cae29676d8a15cb3ddbfcccda /content/post/2009-06-17-xmobar-on-debian-sid.md | |
| parent | Stop using Jekyll. (diff) | |
| download | lumberjaph-4b8e43f75b394a4e6169884fbfb4c606865c6a22.tar.gz | |
Import migration from Jekyll to Hugo.
All the posts were converted, and the layout is created. This looks like
it works just fine.
Diffstat (limited to '')
| -rw-r--r-- | content/post/2009-06-17-xmobar-on-debian-sid.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/content/post/2009-06-17-xmobar-on-debian-sid.md b/content/post/2009-06-17-xmobar-on-debian-sid.md new file mode 100644 index 0000000..e10fb26 --- /dev/null +++ b/content/post/2009-06-17-xmobar-on-debian-sid.md @@ -0,0 +1,34 @@ +--- +date: 2009-06-17T00:00:00Z +summary: In which I path xmobar for Debian SID +title: xmobar on debian SID +--- + +If you are using [xmonad](http://www.xmonad.org/) and [xmobar](http://projects.haskell.org/xmobar/) on [Debian SID](http://www.debian.org/) on a laptop, and don't see any battery information, you may have test this [solution](http://5e6n1.wordpress.com/2009/03/30/xmobar-battery-plugin-using-sysfs-not-procfs/). + +If this didn't solve your problem, try this patch on SysfsBatt.hs : + +```diff +52c52 +< let path = sysfsPath ++ p ++ "/charge_full" +--- +> let path = sysfsPath ++ p ++ "/energy_full" +62c62 +< let path = sysfsPath ++ p ++ "/charge_now" +--- +> let path = sysfsPath ++ p ++ "/energy_now" +74c74 +< else showWithColors (printf "%.2f%%") stateInPercentage +--- +> else showWithColors (printf "Batt: %.2f%%") stateInPercentage +``` + +Then as before: + +```bash +% runhaskell Setup.lhs configure --user +% runhaskell Setup.lhs build +% runhaskell Setup.lhs install --user +``` + +Battery information should be visible. |
