diff options
Diffstat (limited to 'accounts/gkleen@sif/xmobar/xmobar.hs')
| -rw-r--r-- | accounts/gkleen@sif/xmobar/xmobar.hs | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/xmobar/xmobar.hs b/accounts/gkleen@sif/xmobar/xmobar.hs new file mode 100644 index 00000000..74ce7347 --- /dev/null +++ b/accounts/gkleen@sif/xmobar/xmobar.hs | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | import Xmobar | ||
| 2 | |||
| 3 | import Data.List (intercalate) | ||
| 4 | |||
| 5 | |||
| 6 | main :: IO () | ||
| 7 | main = xmobar config | ||
| 8 | where | ||
| 9 | config = defaultConfig | ||
| 10 | { font = "xft:FiraCode Nerd Font Mono:style=Regular:pixelsize=21" | ||
| 11 | , position = OnScreen 0 $ TopP 0 307 | ||
| 12 | , bgColor = "black" | ||
| 13 | , fgColor = "#808080" | ||
| 14 | , overrideRedirect = False | ||
| 15 | , template = | ||
| 16 | let left = intercalate " | " | ||
| 17 | [ "%XMonadWorkspaces%" | ||
| 18 | , "%XMonadLayout%" | ||
| 19 | , "%XMonadTitle%" | ||
| 20 | ] | ||
| 21 | right = intercalate " | " | ||
| 22 | [ {- "%status%" | ||
| 23 | , -} "%battery%" | ||
| 24 | , "%kbd%" | ||
| 25 | , "%worktime%" | ||
| 26 | , "%worktime-today%" | ||
| 27 | , "%time%" | ||
| 28 | , "%date%" | ||
| 29 | ] | ||
| 30 | in left <> "}{" <> right | ||
| 31 | , commands = | ||
| 32 | [ Run $ NamedXPropertyLog "_XMONAD_WORKSPACES" "XMonadWorkspaces" | ||
| 33 | , Run $ NamedXPropertyLog "_XMONAD_LAYOUT" "XMonadLayout" | ||
| 34 | , Run $ NamedXPropertyLog "_XMONAD_TITLE" "XMonadTitle" | ||
| 35 | , Run $ Date "%H:%M" "time" 50 | ||
| 36 | , Run $ Date "%a %b %_d" "date" 50 | ||
| 37 | , Run $ Com "worktime" [] "worktime" 1500 | ||
| 38 | , Run $ Com "worktime" ["today"] "worktime-today" 1500 | ||
| 39 | , Run $ Com "ssh" ["status.odin"] "status" 600 | ||
| 40 | , Run $ Kbd [("us(dvp)", "dvp")] | ||
| 41 | , Run $ Battery | ||
| 42 | [ "--template", "<watts> <left> (<timeleft>) AC <acstatus>" | ||
| 43 | , "--suffix", "On" | ||
| 44 | , "--Low", "10" | ||
| 45 | , "--High", "80" | ||
| 46 | , "--low", "darkred" | ||
| 47 | , "--normal", "darkorange" | ||
| 48 | , "--high", "darkgreen" | ||
| 49 | , "-p", "3" | ||
| 50 | ] 50 | ||
| 51 | ] | ||
| 52 | } | ||
