diff options
| author | Franck Cuny <franckcuny@gmail.com> | 2016-07-02 20:04:59 -0700 |
|---|---|---|
| committer | Franck Cuny <franckcuny@gmail.com> | 2016-07-02 20:04:59 -0700 |
| commit | 8f187c573954b6c8d1650ac33a164c52e032ac16 (patch) | |
| tree | c605d0cf51d272393006e5486bfdc24984cf801f /_posts/2009-06-17-xmobar-on-debian-sid.md | |
| parent | Update some posts to make the tests pass. (diff) | |
| download | lumberjaph-8f187c573954b6c8d1650ac33a164c52e032ac16.tar.gz | |
Stop using Jekyll.
Moving away from Jekyll to Hugo. This commit clean up the old files to
prepare for the migration.
Diffstat (limited to '_posts/2009-06-17-xmobar-on-debian-sid.md')
| -rw-r--r-- | _posts/2009-06-17-xmobar-on-debian-sid.md | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/_posts/2009-06-17-xmobar-on-debian-sid.md b/_posts/2009-06-17-xmobar-on-debian-sid.md deleted file mode 100644 index bf2f467..0000000 --- a/_posts/2009-06-17-xmobar-on-debian-sid.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -layout: post -summary: In which I path xmobar for Debian SID -title: xmobar on debian SID -type: codex ---- - -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 : - -{% highlight 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 -{% endhighlight %} - -Then as before: - -{% highlight bash %} -% runhaskell Setup.lhs configure --user -% runhaskell Setup.lhs build -% runhaskell Setup.lhs install --user -{% endhighlight %} - -Battery information should be visible. |
