Sat 6 Jul 00:36:05 CEST 2024
This commit is contained in:
		
							parent
							
								
									df6f7e5686
								
							
						
					
					
						commit
						7671890fef
					
				| 
						 | 
				
			
			@ -175,10 +175,11 @@ function Right() {
 | 
			
		|||
            vexpand: false,
 | 
			
		||||
            size: 16,
 | 
			
		||||
            icon: "speedometer",
 | 
			
		||||
            css: "margin-right: 0.5em;",
 | 
			
		||||
          }),
 | 
			
		||||
          Widget.Label({
 | 
			
		||||
            label: Variable("", {
 | 
			
		||||
              poll: [2000, 'top -b -n 1', out => "  " + out.split('\n')
 | 
			
		||||
              poll: [2000, 'top -b -n 1', out => out.split('\n')
 | 
			
		||||
                .find(line => line.includes('Cpu(s)'))
 | 
			
		||||
                .split(/\s+/)[1]
 | 
			
		||||
                .replace(',', '.').toString() + "%"],
 | 
			
		||||
| 
						 | 
				
			
			@ -187,7 +188,7 @@ function Right() {
 | 
			
		|||
        ]}),
 | 
			
		||||
      Widget.Label({
 | 
			
		||||
        class_name: "item blue",
 | 
			
		||||
        label: Variable("", { poll: [5000, 'bash -c "cat /proc/cpuinfo | grep \\"MHz\\" | awk \'{print \\$4}\' | sort -n | tail -1 | awk \'{printf \\"%.2f\\", \\"GHz\\", \\$1/1000}\'"'] }).bind(),
 | 
			
		||||
        label: Variable("", { poll: [5000, 'bash -c "cat /proc/cpuinfo | grep \\"MHz\\" | awk \'{print \\$4}\' | sort -n | tail -1 | awk \'{printf \\"%.2fGHz\\", \\$1/1000}\'"'] }).bind(),
 | 
			
		||||
      }),
 | 
			
		||||
      Widget.Label({
 | 
			
		||||
        class_name: "item",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -100,7 +100,7 @@ in {
 | 
			
		|||
      "$mainMod" = "SUPER";
 | 
			
		||||
      exec-once = [
 | 
			
		||||
        "hyprpaper"
 | 
			
		||||
        "${ags}"
 | 
			
		||||
        "ags"
 | 
			
		||||
        "${wl-paste} --type text --watch cliphist store"
 | 
			
		||||
        "${wl-paste} --type image --watch cliphist store"
 | 
			
		||||
        "${pkgs.mate.mate-polkit}/bin/polkit-mate"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue