diff options
-rw-r--r-- | changelog.md | 7 | ||||
-rw-r--r-- | readme.md | 9 | ||||
-rw-r--r-- | src/Xmobar/Plugins/Monitors/MultiCoreTemp.hs | 3 | ||||
-rw-r--r-- | xmobar.cabal | 2 |
4 files changed, 14 insertions, 7 deletions
diff --git a/changelog.md b/changelog.md index df726bd..0a51655 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,10 @@ +## Version 0.35 (unreleased) + +_New features_ + + - `MultiCoreTemp` now works with Ryzen processors. New option + `--hwmonitor-path` for better performance. + ## Version 0.34 (June, 2020) _New features_ @@ -1139,10 +1139,11 @@ more than one battery. looking for them in directories following the pattern `/sys/bus/platform/devices/coretemp.*/hwmon/hwmon*`, but some processors (notably Ryzen) might expose those files in a different - tree (e.g., my Ryzen Thinkpad puts them in - `/sys/class/hwmon/hwmon3`). With this option, it is possible to - explicitly specify the full path to the directory where the - `tempN_label` and `tempN_input` files are located. + tree (e.g., Ryzen) puts them somewhere in + "/sys/class/hwmon/hwmon*", and the lookup is most costly. With + this option, it is possible to explicitly specify the full path to + the directory where the `tempN_label` and `tempN_input` files are + located. - Thresholds refer to temperature in degree Celsius - Variables that can be used with the `-t`/`--template` argument: `max`, `maxpc`, `maxbar`, `maxvbar`, `maxipat`, diff --git a/src/Xmobar/Plugins/Monitors/MultiCoreTemp.hs b/src/Xmobar/Plugins/Monitors/MultiCoreTemp.hs index 19a34b1..a030943 100644 --- a/src/Xmobar/Plugins/Monitors/MultiCoreTemp.hs +++ b/src/Xmobar/Plugins/Monitors/MultiCoreTemp.hs @@ -88,8 +88,7 @@ hwmonPaths :: IO [String] hwmonPaths = do p <- coretempPath let cps = [ p ++ "hwmon/hwmon" ++ show (x :: Int) ++ "/" | x <- [0..9] ] - xs <- filterM doesDirectoryExist cps - return xs + filterM doesDirectoryExist cps -- | Checks Labels, if they refer to a core and returns Strings of core- -- temperatures. diff --git a/xmobar.cabal b/xmobar.cabal index d1e7660..44e1732 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -1,5 +1,5 @@ name: xmobar -version: 0.34 +version: 0.35 homepage: http://xmobar.org synopsis: A Minimalistic Text Based Status Bar description: Xmobar is a minimalistic text based status bar. |