diff options
| author | Léana 江 <leana.jiang+git@icloud.com> | 2026-06-22 21:53:40 +0200 |
|---|---|---|
| committer | jao <mail@jao.io> | 2026-06-23 21:41:59 +0200 |
| commit | 437523ebc951438bc5f0641005f9cfbb6f820e3e (patch) | |
| tree | 000decd4bde5f8a7f65dca832fb88dcaa74e5ae4 /src/Xmobar/Plugins/Monitors/Batt/Common.hs | |
| parent | dcfbeabc8c6c3a775c946fb83628889d254aba48 (diff) | |
| download | xmobar-437523ebc951438bc5f0641005f9cfbb6f820e3e.tar.gz xmobar-437523ebc951438bc5f0641005f9cfbb6f820e3e.tar.bz2 | |
use Int instead
Diffstat (limited to 'src/Xmobar/Plugins/Monitors/Batt/Common.hs')
| -rw-r--r-- | src/Xmobar/Plugins/Monitors/Batt/Common.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Xmobar/Plugins/Monitors/Batt/Common.hs b/src/Xmobar/Plugins/Monitors/Batt/Common.hs index d74f080..2c60155 100644 --- a/src/Xmobar/Plugins/Monitors/Batt/Common.hs +++ b/src/Xmobar/Plugins/Monitors/Batt/Common.hs @@ -60,7 +60,7 @@ maybeAlert opts left = where mkShellCmd command = do selfEnv <- getEnvironment - pure (shell command) { env = Just $ [("XMOBAR_BATT_LEFT", show @Integer $ round $ 100 * left)] ++ selfEnv + pure (shell command) { env = Just $ [("XMOBAR_BATT_LEFT", show @Int $ round $ 100 * left)] ++ selfEnv } runCmd c = do (_,_,_,p) <- createProcess_ "maybeAlert" c |
