diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-03 01:14:47 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-03 16:21:34 +0100 |
commit | 392e6768f9f60c761b65f8774c1667ab8d00f230 (patch) | |
tree | e84d0439a01402e3bd85a627c6594526f1d0a8ed /accounts/gkleen@sif/xmobar/xmobar.hs | |
parent | 4a3d2a8ddaf4e546df360656bc54b2947bdb890b (diff) | |
download | nixos-392e6768f9f60c761b65f8774c1667ab8d00f230.tar nixos-392e6768f9f60c761b65f8774c1667ab8d00f230.tar.gz nixos-392e6768f9f60c761b65f8774c1667ab8d00f230.tar.bz2 nixos-392e6768f9f60c761b65f8774c1667ab8d00f230.tar.xz nixos-392e6768f9f60c761b65f8774c1667ab8d00f230.zip |
gkleen@sif: systemd
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..ea53082d --- /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:Fira Mono for Powerline:style=Medium:pixelsize=22.5" | ||
11 | , position = OnScreen 0 $ TopP 0 307 | ||
12 | , bgColor = "black" | ||
13 | , fgColor = "grey" | ||
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 | } | ||