Last active
November 23, 2020 16:18
-
-
Save gustavomedeiross/f4ececd8ea5252d708e03bf63a55d958 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# depends on the pacman-contrib | |
cupd=$(checkupdates | wc -l) | |
echo "$cupd available " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Config { font = "xft:MesloLGL Nerd Font:pixelsize=12:antialias=true:hinting=true" | |
, bgColor = "#282828" | |
, fgColor = "#ebdbb2" | |
, position = Static { xpos = 0 , ypos = 0, width = 1920, height = 24 } | |
, lowerOnStart = True | |
, iconRoot = "/home/gustavo/.xmonad/xpm/" -- default: "." | |
, commands = [ Run Network "enp3s0" ["-t","a <rx>kb a <tx>kb"] 20 | |
, Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10 | |
, Run Memory ["-t"," Mem: <usedratio>%"] 10 | |
-- Disk space free | |
, Run DiskU [("/", " HDD: <free> free")] [] 60 | |
, Run Swap [] 10 | |
-- This script is in my dotfiles repo in .local/bin. | |
, Run Com "/home/gustavo/.local/bin/pacupdate" [] "pacupdate" 36000 | |
, Run Com "uname" ["-s","-r"] "" 36000 | |
, Run Date " %a %b %_d %Y %H:%M:%S" "date" 10 | |
, Run StdinReader | |
] | |
, sepChar = "%" | |
, alignSep = "}{" | |
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %StdinReader% }{ <fc=#83a598> %uname% </fc><fc=#666666>| </fc><fc=#458588> %cpu% </fc><fc=#666666>| </fc><fc=#8ec07c>%memory% </fc><fc=#666666>| </fc><fc=#fabd2f>%disku% </fc><fc=#666666>| </fc><fc=#b8bb26>%enp3s0% </fc><fc=#666666>| </fc><fc=#98be65> %pacupdate%</fc><fc=#666666>| </fc><fc=#98be65>%date%</fc>| <fc=#83a598> </fc>" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment