xmobar, stalonetray: some further changes
This commit is contained in:
		@@ -13,20 +13,23 @@ magenta = "#b294bb"
 | 
			
		||||
cyan = "#8abeb7"
 | 
			
		||||
white = "#ecebec"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
config :: Config
 | 
			
		||||
config = defaultConfig {
 | 
			
		||||
    font = "xft:Fira Mono:style=Regular:antialias=true:pixelsize=16,Font Awesome 5 Brands:pixelsize=16,Font Awesome 5 Free:pixelsize=16:style=Solid,Lohit Devanagari:style=Regular:pixelsize=16,Lohit Gurmukhi:style=Regular:pixelsize=16,Noto Sans CJK JP:style=Regular:pixelsize=16,Noto Sans CJK KR:style=Regular:pixelsize=16,Noto Sans CJK SC:style=Regular:pixelsize=16",
 | 
			
		||||
    additionalFonts = [ "xft:Font Awesome 5 Free:pixelsize=15:style=Solid", 
 | 
			
		||||
                        "xft:Font Awesome 5 Brands:pixelsize=15"],
 | 
			
		||||
config =
 | 
			
		||||
  defaultConfig
 | 
			
		||||
    { font = "xft:Fira Mono:style=Regular:antialias=true:pixelsize,Font Awesome 5 Brands:pixelsize=16,Font Awesome 5 Free:pixelsize=16:style=Solid,Lohit Devanagari:style=Regular:pixelsize=16,Lohit Gurmukhi:style=Regular:pixelsize=16,Noto Sans CJK JP:style=Regular:pixelsize=16,Noto Sans CJK KR:style=Regular:pixelsize=16,Noto Sans CJK SC:style=Regular:pixelsize=16",
 | 
			
		||||
      additionalFonts =
 | 
			
		||||
        [ "xft:Font Awesome 5 Free:pixelsize=15:style=Solid",
 | 
			
		||||
          "xft:Font Awesome 5 Brands:pixelsize=15"
 | 
			
		||||
        ],
 | 
			
		||||
      position = Static { xpos = 0, ypos = 0, height = 23, width = 1920 },
 | 
			
		||||
      bgColor = bg,
 | 
			
		||||
      fgColor = fg,
 | 
			
		||||
      lowerOnStart = False,
 | 
			
		||||
      overrideRedirect = False,
 | 
			
		||||
      allDesktops = True,
 | 
			
		||||
      persistent = True,
 | 
			
		||||
    commands = [
 | 
			
		||||
        Run $ MultiCpu ["-t","<fn=1>\xf2db</fn> <total>%","-L","20","-H","80","-h",magenta,"-l",green,"-n",yellow] 10,
 | 
			
		||||
      commands =
 | 
			
		||||
        [ Run $ MultiCpu ["-t", "<fn=1>\xf2db</fn> <total>%", "-L", "20", "-H", "80", "-h", magenta, "-l", green, "-n", yellow] 10,
 | 
			
		||||
          Run $ Memory ["-t", "<fn=1>\xf538</fn> <usedratio>%", "-H", "10240", "-L", "6144", "-h", magenta, "-l", green, "-n", yellow] 20,
 | 
			
		||||
          Run $ BatteryP ["BAT1", "BAT0", "BAT2"] ["-t", "<acstatus>", "-L", "10", "-H", "80", "-l", magenta, "-h", green, "-n", yellow, "--", "-O", "Charging", "-o", "<left>%", "-a", "notify-send -u critical 'Battery running out!'", "-A", "5", "--lows", "<fn=1>\xf243</fn> ", "--mediums", "<fn=1>\xf242</fn> ", "--highs", "<fn=1>\xf240</fn> "] 300,
 | 
			
		||||
          Run $ Network "wlp0s20f3" ["-t", "<fn=1>\xf1eb</fn> <fc=" ++ magenta ++ "><rx>/<tx></fc>"] 10,
 | 
			
		||||
 
 | 
			
		||||
@@ -89,17 +89,17 @@ in
 | 
			
		||||
      stalonetray = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        config = {
 | 
			
		||||
          geometry = "5x1-0+0";
 | 
			
		||||
          no_shrink = true;
 | 
			
		||||
          geometry = "1x1-0";
 | 
			
		||||
          max_geometry = "5x0";
 | 
			
		||||
          window_type = "dock";
 | 
			
		||||
          sticky = true;
 | 
			
		||||
          scrollbars = "horizontal";
 | 
			
		||||
          icon_size = 23;
 | 
			
		||||
          background = "#1d2021";
 | 
			
		||||
          grow_gravity = "E";
 | 
			
		||||
          icon_gravity = "E";
 | 
			
		||||
          kludges = "force_icons_size";
 | 
			
		||||
        };
 | 
			
		||||
        extraConfig = ''
 | 
			
		||||
          kludges force_icons_size
 | 
			
		||||
          '';
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user