aboutsummaryrefslogtreecommitdiff
path: root/xmobar
diff options
context:
space:
mode:
authorBryson Steck <me@brysonsteck.xyz>2023-10-13 16:15:12 -0600
committerBryson Steck <me@brysonsteck.xyz>2023-10-13 16:15:12 -0600
commit5b41f4664acf3ea786295e244b9524ef62b0be38 (patch)
tree79baf7f1792b4d590a60053389710b6ee69e4ac0 /xmobar
parent8ea71ee2baf86d32f810bc6f6c560e6677cc2e09 (diff)
downloaddotfiles-5b41f4664acf3ea786295e244b9524ef62b0be38.tar
dotfiles-5b41f4664acf3ea786295e244b9524ef62b0be38.tar.gz
dotfiles-5b41f4664acf3ea786295e244b9524ef62b0be38.tar.bz2
experimenting with xmonad/xmobar
Diffstat (limited to 'xmobar')
-rw-r--r--xmobar/xmobar.hs34
1 files changed, 34 insertions, 0 deletions
diff --git a/xmobar/xmobar.hs b/xmobar/xmobar.hs
new file mode 100644
index 0000000..29eac0c
--- /dev/null
+++ b/xmobar/xmobar.hs
@@ -0,0 +1,34 @@
+import Xmobar
+
+config :: Config
+config =
+ defaultConfig
+ { overrideRedirect = False
+ , font = "xft:JetBrains Mono NF:style=medium:size=9"
+ , bgColor = "#3c3836"
+ , fgColor = "#ebdbb2"
+ , position = TopW L 120
+ , commands = [ Run $ Cpu
+ [ "-L", "30"
+ , "-H", "70"
+ , "--high" , "#fb4934"
+ , "--normal", "#fabd2f"
+ ] 10
+ , Run $ Alsa "default" "Master"
+ [ "--template", "<volumestatus>"
+ , "--suffix" , "True"
+ , "--"
+ , "--on", ""
+ ]
+ , Run $ Memory ["--template", "Mem: <usedratio>%"] 10
+ , Run $ Swap [] 10
+ , Run $ Date "%a %D <fc=#458588>%I:%M %p</fc>" "date" 10
+ , Run XMonadLog
+ ]
+ , sepChar = "%"
+ , alignSep = "}{"
+ , template = "%XMonadLog% }{ %alsa:default:Master% | %cpu% | %memory% * %swap% | %date% "
+ }
+
+main :: IO()
+main = xmobar config