1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-02 11:11:04 +02:00

chore: refactors to volume pr #460 i forgot

whoops
This commit is contained in:
Jake Stanger 2024-03-04 20:20:36 +00:00
parent 3c7e434e52
commit 660dc81e7d
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
7 changed files with 207 additions and 181 deletions

View file

@ -1,31 +1,57 @@
anchor_to_edges = true
icon_theme = "Paper"
position = "bottom"
icon_theme = "Paper"
[[start]]
type = "workspaces"
all_monitors = false
[start.name_map]
1 = "󰙯"
2 = "icon:firefox"
3 = ""
Games = "icon:steam"
Code = ""
[[start]]
type = "launcher"
favorites = [
"firefox",
"discord",
"steam",
]
show_names = false
show_icons = true
[[start]]
type = "label"
label = "random num: {{500:echo FIXME}}"
[[end]]
music_dir = "/home/jake/Music"
player_type = "mpd"
type = "music"
player_type = "mpd"
music_dir = "/home/jake/Music"
[end.truncate]
max_length = 100
mode = "end"
max_length = 100
[[end]]
host = "chloe:6600"
player_type = "mpd"
truncate = "end"
type = "music"
player_type = "mpd"
host = "chloe:6600"
truncate = "end"
[[end]]
cmd = "/home/jake/bin/phone-battery"
type = "script"
cmd = "/home/jake/bin/phone-battery"
[end.show_if]
cmd = "/home/jake/bin/phone-connected"
interval = 500
[[end]]
type = "sys_info"
format = [
" {cpu_percent}% | {temp_c:k10temp_Tccd1}°C",
" {memory_used} / {memory_total} GB ({memory_percent}%)",
@ -35,88 +61,73 @@ format = [
"󰖡 {load_average:1} | {load_average:5} | {load_average:15}",
"󰥔 {uptime}",
]
type = "sys_info"
[end.interval]
cpu = 1
disks = 300
memory = 30
networks = 3
cpu = 1
temps = 5
disks = 300
networks = 3
[[end]]
type = "volume"
format = "{icon} {volume}%"
max_volume = 100
[end.icons]
volume_high = "󰕾"
volume_medium = "󰖀"
volume_low = "󰕿"
muted = "󰝟"
[[end]]
max_items = 3
type = "clipboard"
max_items = 3
[end.truncate]
length = 50
mode = "end"
length = 50
[[end]]
type = "custom"
class = "power-menu"
tooltip = "Up: {{30000:uptime -p | cut -d ' ' -f2-}}"
type = "custom"
[[end.bar]]
label = ""
name = "power-btn"
on_click = "popup:toggle"
type = "button"
name = "power-btn"
label = ""
on_click = "popup:toggle"
[[end.popup]]
orientation = "vertical"
type = "box"
orientation = "vertical"
[[end.popup.widgets]]
label = "Power menu"
name = "header"
type = "label"
name = "header"
label = "Power menu"
[[end.popup.widgets]]
type = "box"
[[end.popup.widgets.widgets]]
type = "button"
class = "power-btn"
label = "<span font-size='40pt'></span>"
on_click = "!shutdown now"
type = "button"
[[end.popup.widgets.widgets]]
type = "button"
class = "power-btn"
label = "<span font-size='40pt'></span>"
on_click = "!reboot"
type = "button"
[[end.popup.widgets]]
label = "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}"
name = "uptime"
type = "label"
name = "uptime"
label = "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}"
[[end]]
type = "clock"
[[start]]
all_monitors = false
type = "workspaces"
[start.name_map]
1 = "󰙯"
2 = "icon:firefox"
3 = ""
Code = ""
Games = "icon:steam"
[[start]]
favorites = [
"firefox",
"discord",
"steam",
]
show_icons = true
show_names = false
type = "launcher"
[[start]]
label = "random num: {{500:echo FIXME}}"
type = "label"