Skip to content

Commit

Permalink
docs(examples): fix incorrect cpu sensor name
Browse files Browse the repository at this point in the history
Resolves #607
  • Loading branch information
JakeStanger committed May 23, 2024
1 parent 9db0cbc commit 057fdff
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/config.corn
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ let {
interval.networks = 3

format = [
" {cpu_percent}% | {temp_c:k10temp_Tccd1}°C"
" {cpu_percent}% | {temp_c:k10temp-Tccd1}°C"
" {memory_used} / {memory_total} GB ({memory_percent}%)"
"| {swap_used} / {swap_total} GB ({swap_percent}%)"
"󰋊 {disk_used:/} / {disk_total:/} GB ({disk_percent:/}%)"
Expand Down
2 changes: 1 addition & 1 deletion examples/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"networks": 3
},
"format": [
" {cpu_percent}% | {temp_c:k10temp_Tccd1}°C",
" {cpu_percent}% | {temp_c:k10temp-Tccd1}°C",
" {memory_used} / {memory_total} GB ({memory_percent}%)",
"| {swap_used} / {swap_total} GB ({swap_percent}%)",
"󰋊 {disk_used:/} / {disk_total:/} GB ({disk_percent:/}%)",
Expand Down
2 changes: 1 addition & 1 deletion examples/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ interval = 500
[[end]]
type = "sys_info"
format = [
" {cpu_percent}% | {temp_c:k10temp_Tccd1}°C",
" {cpu_percent}% | {temp_c:k10temp-Tccd1}°C",
" {memory_used} / {memory_total} GB ({memory_percent}%)",
"| {swap_used} / {swap_total} GB ({swap_percent}%)",
"󰋊 {disk_used:/} / {disk_total:/} GB ({disk_percent:/}%)",
Expand Down
2 changes: 1 addition & 1 deletion examples/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ end:
disks: 300
networks: 3
format:
-  {cpu_percent}% | {temp_c:k10temp_Tccd1}°C
-  {cpu_percent}% | {temp_c:k10temp-Tccd1}°C
-  {memory_used} / {memory_total} GB ({memory_percent}%)
- '| {swap_used} / {swap_total} GB ({swap_percent}%)'
- 󰋊 {disk_used:/} / {disk_total:/} GB ({disk_percent:/}%)
Expand Down
60 changes: 60 additions & 0 deletions examples/test.corn
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
let {
$config_dir = "/home/jake/.config/ironbar"

$workspaces = { type = "workspaces" }
$launcher = { type = "launcher" }
$volume = {
type = "volume"
format = "{icon} {percentage}%"
max_volume = 100
icons.volume_high = "󰕾"
icons.volume_medium = "󰖀"
icons.volume_low = "󰕿"
icons.muted = "󰝟"
}
$network_manager = { type = "networkmanager" }
$clock = {
type = "clock"
// disable_popup = true
// format = "<span color='#f2777a'>%d/%m/%Y</span> <span color='#69c'>%H:%M:%S</span>"
}
$tray = { type = "tray" prefer_theme_icons = false }

// $label = { type = "label" label = "<span color='#color'>hello</span>" }
$label = { type = "label" label = "#random" }
$clipboard = { type = "clipboard" }

$notifications = {
type = "notifications"
show_count = true

icons.closed_none = "󰍥"
icons.closed_some = "󱥂"
icons.closed_dnd = "󱅯"
icons.open_none = "󰍡"
icons.open_some = "󱥁"
icons.open_dnd = "󱅮"
}

$focused = { type = "focused" }

$cairo = { type = "cairo" path = "$config_dir/clock.lua" frequency = 50 width = 300 height = 300 }

$custom = {
type = "custom"
bar = [ { type = "button" on_click = "popup:toggle" widgets = [ $focused ] } ]
popup = [ { type = "box" orientation = "v" widgets = [ $clock $cairo ] } ]
}

$mpris = { type = "music" }
} in {
// ironvar_defaults.color = "red"

position = "bottom"

icon_theme = "Paper"

start = [ $workspaces $label ]
center = [ $custom ]
end = [ $notifications $clock ]
}

0 comments on commit 057fdff

Please sign in to comment.