Skip to content

A small script in rust to get the cpu usage in %'s with a gradient color for the text

Notifications You must be signed in to change notification settings

Sara0x62/cpu_usage-polybar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpu_usage-polybar

A small script in rust to get the cpu usage in %'s with a gradient color for the text

To get it to work on your PC you will have to make some changes to the path in the polybar settings (exec = ...) and the path in the .sh script You'll also have to make sure you compile it first

Inside polybar settings;

[module/cpus_usage]
type = custom/script
exec = ~/.config/polybar/scripts/cpu_usage.sh
tail = true

# Optional past this line
format-prefix-foreground = ${colors.primary}
format-prefix = CPU's: (
format-suffix = )
format-suffix-foreground = ${colors.primary}
label = %output%

and the cpu_usage.sh:

#!/bin/bash

~/Rusty/cpu_usage/target/release/cpu_usage

2023-04-14_14-54 2023-04-14_15-00

About

A small script in rust to get the cpu usage in %'s with a gradient color for the text

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages