Advertisement
Guest User

Untitled

a guest
Dec 31st, 2024
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 0 0
  1. -- Xmobar (http://projects.haskell.org/xmobar/)
  2.  
  3. Config { font = "Ubuntu regular 9"
  4. , additionalFonts = [ "Mononoki 11"
  5. , "Font Awesome 6 Free Solid 12"
  6. , "Font Awesome 6 Brands 12"
  7. , "JetBrainsMono Nerd Font Mono 17"
  8. , "JetBrainsMono Nerd Font Mono 22"
  9. ]
  10. , bgColor = "#16181c"
  11. , fgColor = "#ff6c6b"
  12. -- , alpha = 200
  13. -- Position TopSize and BottomSize take 3 arguments:
  14. -- an alignment parameter (L/R/C) for Left, Right or Center.
  15. -- an integer for the percentage width, so 100 would be 100%.
  16. -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels.
  17. -- NOTE: The height should be the same as the trayer (system tray) height.
  18. , position = TopSize L 100 24
  19. , lowerOnStart = True
  20. , hideOnStart = False
  21. , allDesktops = True
  22. , persistent = True
  23. , iconRoot = ".xmonad/xpm/" -- default: "."
  24. , commands = [
  25. -- Echo gentoo logo
  26. Run Com "echo" [ "<fn=5>\xf30d</fn>" ] "gentoo" 3600
  27. -- Echo half circle as wrapper beginning
  28. , Run Com "echo" [ "<fc=#282c34><fn=4>\xe0b6</fn></fc>" ] "wrapstart" 3600
  29. -- Echo half circle as wrapper ending
  30. , Run Com "echo" [ "<fc=#282c34><fn=4>\xe0b4</fn></fc> " ] "wrapend" 3600
  31. -- Echos a "penguin" icon in front of the kernel output.
  32. , Run Com "echo" [ "<fn=3>\xf17c</fn>"] "penguin" 3600
  33. -- Get kernel version (script found in .local/bin)
  34. , Run Com ".local/bin/kernel" [] "kernel" 36000
  35. -- Cpu usage in percent
  36. , Run Cpu ["-t", "<fn=2>\xf2db</fn> cpu: <total>%","-H","80","--high","red"] 20
  37. -- Ram used number and percent
  38. , Run Memory ["-t", "<fn=2>\xf233</fn> mem: <used>M/<total>M (<usedratio>%)"] 20
  39. -- Swap used number and percent
  40. , Run Swap ["-t", "<fn=2>\xf0a0</fn> swap: <used>M/<total>M (<usedratio>%)"] 10
  41. -- Disk space free
  42. , Run DiskU [("/", "<fn=2>\xf0c7</fn> hdd: <free> free")] [] 60
  43. -- Echos an "up arrow" icon in front of the uptime output.
  44. , Run Com "echo" ["<fn=2>\xf0aa</fn>"] "uparrow" 3600
  45. -- Uptime
  46. , Run Uptime ["-t", "uptime: <days>d <hours>h <minutes>m"] 3600
  47. -- Time and date
  48. , Run Date "<fn=2>\xf017</fn> %b %d %Y - (%H:%M) " "date" 50
  49. -- Script that dynamically adjusts xmobar padding depending on number of trayer icons.
  50. , Run Com "~/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
  51. -- Prints the average Temp of all cpu cores
  52. , Run MultiCoreTemp ["-t", " <avg>°C", "-L", "50", "-H", "70", "-n", "yellow", "-h", "red"] 50
  53. -- Prints out the left side items such as workspaces, layout, etc.
  54. , Run UnsafeXMonadLog
  55. ]
  56. , sepChar = "%"
  57. , alignSep = "}{"
  58. , template = "%wrapstart%<fc=#ad8ee6,#282c34:0> %gentoo%</fc>%wrapend% %wrapstart%%UnsafeXMonadLog%%wrapend% }{%wrapstart%<box type=Bottom width=2 mb=2 color=#f7768e><fc=#f7768e,#282c34:0> %penguin% <action=`alacritty -e btop`>%kernel%</action> </fc></box>%wrapend% %wrapstart%<box type=Bottom width=2 mb=2 color=#ff9e64><fc=#ff9e64,#282c34:0><action=`alacritty -e btop`>%cpu% %multicoretemp%</action></fc></box>%wrapend% %wrapstart%<box type=Bottom width=2 mb=2 color=#9ece6a><fc=#9ece6a,#282c34:0><action=`alacritty -e btop`>%memory%</action></fc></box>%wrapend% %wrapstart%<box type=Bottom width=2 mb=2 color=#0db9d7><fc=#0db9d7,#282c34:0><action=`alacritty -e btop`>%swap%</action></fc></box>%wrapend% %wrapstart%<box type=Bottom width=2 mb=2 color=#7aa2f7><fc=#7aa2f7,#282c34:0><action=`alacritty -e btop`>%disku%</action></fc></box>%wrapend% %wrapstart%<box type=Bottom width=2 mb=2 color=#ad8ee6><fc=#ad8ee6,#282c34:0>%uparrow% <action=`alacritty -e btop`>%uptime%</action></fc></box>%wrapend% %wrapstart%<box type=Bottom width=2 mb=2 color=#ededed><fc=#ededed,#282c34:0><action=`gnome-calendar`>%date%</action></fc></box>%wrapend% %trayerpad%"
  59. }
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement