summaryrefslogtreecommitdiffhomepage
path: root/src/Plugins
AgeCommit message (Collapse)Author
2018-10-29Allow recovery from missing thermal zonesbobtwinkles
Sometimes the kernel takes some time to populate /sys/class/thermal/ * after resuming from suspend. Previously, this would result in the thermal plugin dying permanantly. With this patch, we show "0" until the kernel gets around to populating the sysfs nodes we need.
2018-10-10Revert "More paths for CoreTemp (issue #291)"jao
This reverts commit 938a8d8307c1c4794c5fcf269c587c3c5c5e70df.
2018-10-06Fix build warningsDaniel Schüssler
2018-10-06Alsa plugin: Cancel reader thread (to terminate alsactl) when plugin main ↵Daniel Schüssler
thread exits.
2018-10-06Turn the --monitor option to `Volume` into a new plugin `Alsa` insteadDaniel Schüssler
See #360.
2018-10-06Add event-based refreshing for Volume plugin (--monitor option)Daniel Schüssler
This uses alsactl monitor for push/event-based updating instead of polling.
2018-06-24hlintingjao
2018-06-24Fix: tag-respecting trimming of monitor oututs (-T, -E)jao
2018-04-24Build with hinotify 0.3.10 and earlier, fixes #348, fixes #350Mark Wright
2018-04-05Net: fix race condition in netParser/readNetDev/isUpTomas Janousek
It's possible (and happens) that netParser sees a device that is no longer there when we get to isUp. This happens almost every time I resume from suspend and the WWAN card (USB device) reappears, and results in xmobar showing the exception until I restart it. Originally I tried tryJust (guard . isDoesNotExistError) (B.readFile (operstateDir d)) and it worked for a while but in recent kernels it's possible to open the file and have the device disappear before we get to reading the contents of it, so we need to surround the whole open/read block in catchIOError and make sure it's evaluated.
2018-03-17Add fallback icon support to MultiCpubobtwinkles
To make the <autoipat> pattern truly automatic, there needs to be a fallback icon set to use when the user hasn't specified enough --load-icon-patterns. This adds the fallback under the name --fallback-icon-pattern
2018-03-07Add ellipsis option for Monitor's fields and total textOlivier Schneider
2018-02-18Batt: Try also "BAT" (fixes #338)jao
2018-02-03Remove x from ghzFmtAda Joule
2018-02-03Change default unit to GHzAda Joule
2018-02-03Make CpuFreq use MHz unit when suffix is falseAda Joule
2018-02-03Honour -d switch in CpuFreqAda Joule
2018-02-01Kbd: silence warnings with explicitly undefined pokejao
2018-01-31Using external iwlibjao
2017-12-23Honouring NAString in MPris (-x switch) monitorjao
Should fix issue #325
2017-08-24Fix UVMeter due to changed URL and BOMRóman Joost
The URL which exports the real time UV data has changed to an HTTPS address. Since the HTTP package does not support HTTPS URLs, use http-conduit to retrieve the XML document. Unfortunately, the XML documents XML declaration precedes a byte order mark which the previous XML parser was unable to handle. We're simply ignoring the BOM in order to get to the UV values.
2017-07-30Guard monitor 'Weather' behind flag 'with_weather'michaellilanushoober
Hide the monitor 'Weather' behind a flag named 'with_weather'. This implies that the dependency on the module 'HTTP' is now optional. The default for 'with_weather' is True since we do not want to break backwards compatibility/user experience. Further moved the effect of the flag with_conduit within the branch of 'with_weather', since that flag only has some effect if 'with_weather' is true.
2017-05-27Fix for vertical bars (should fix issue #303)jao
2017-04-29Preprocessor nitsjao
2017-04-29Preprocessor nitsjao
2017-04-29CPP for GHC 8.0jao
2017-04-29Compilation warnings (redundant imports) in GHC 8.0jao
2017-04-29hlint configurationjao
2017-03-03More paths for CoreTemp (issue #291)jao
2017-01-23Fix Net monitor for large uptimes/bytecountsTomas Janousek
My laptop currently has rx/tx bytes in 10s of gigabytes and it's only been up for 20 days. Normally it's several times more. At this point, Float can only tell the difference of 4KB and up: Prelude> let x = (50 * 2^30 :: Float) in (x + 2000) - x 0.0 Prelude> let x = (50 * 2^30 :: Float) in (x + 3000) - x 4096.0 This commit makes the Net monitor read Word64 which is exactly what the kernel prints into /proc/net/dev [1] and converts to Float only after subtracting the two numbers. [1] https://github.com/torvalds/linux/blob/7a308bb3016f57e5be11a677d15b821536419d36/net/core/net-procfs.c#L82 Still, I think it's time to switch from Float to Double. At half-gigabit speeds (easily attainable at home while rsyncing over a direct UTP cable between two post-2010 laptops), Float can only tell the difference of 8 bytes and up (and I'm not even considering takeDigits!). That's probably okay for a Net monitor in xmobar, but we're so close to the limit it makes sense to move to Double just in case.
2016-11-04Fix MultiCpu monitor for large uptimesZev Weiss
This is essentially commit a0397ad2 applied to MultiCpu.
2016-08-12Battery monitor: yet another stab at #271jao
2016-08-11Battery: report Full instead of Idle when the battery looks fulljao
2016-08-10Battery: inferring status from watts/ac when Unknownjao
2016-08-10Batt.hs: fix by Matthew Bekkema (see #231)jao
2016-08-05New weather stats URL (fixes #270)jao
2016-07-28Fixing compatibility with GHC 7.6jao
2016-07-27Add expandEnv function and use it in PipeReader family of monitorsWill Song
expandEnv takes a string and expands the environment variables it can find. variable substringing (e.g. ${VAR:1} to lop off the first character) is not supported, but $VAR and ${VAR} formats are, with the former being delimited by punctuation, but not underscores.
2016-07-26Sensible thresholds for high/low battery power consumptionjao
Fixes #265.
2016-07-26MPris: honour field padding and width optionsjao
2016-07-26New monitor argument -T (maximum total width)jao
2016-05-05Batt nitsjao
2016-05-05Batt: reading status more robustlyjao
2016-05-04Fixes for Battery status computations (issue #231)jao
2016-04-30Fix for empty metadata in MPris callsjao
2016-03-01feat(MPD): add <date> support in templateDelapouite
2016-01-13Update PipeReader.hszlbruce
threadDelay is in microseconds, It is unnecessary to check pipe every millisecond
2016-01-06Whitespacejao
2016-01-03volume: allow alsa capture devices to be monitoredAntoine Eiche
For instance, the following command can be used in the configuration file: Run Volume "default" "Capture" [] 10
2015-12-12Move wind speed calculation functions to let clauseMichael Knabe