127 lines
2.3 KiB
TOML
127 lines
2.3 KiB
TOML
version = 1
|
|
theme = "theme.toml"
|
|
|
|
[bar]
|
|
position = "top"
|
|
height = 24
|
|
layer = "top"
|
|
outputs = ["*"]
|
|
namespace = "lightbar"
|
|
popup_width = 320
|
|
popup_max_height = 480
|
|
|
|
[layout]
|
|
left = ["workspaces", "scratchpad", "mode"]
|
|
center = []
|
|
right = ["network", "temperature", "backlight", "audio", "battery", "tray", "clock"]
|
|
|
|
[modules.workspaces]
|
|
kind = "workspaces"
|
|
format = "{index}"
|
|
|
|
[modules.scratchpad]
|
|
kind = "scratchpad"
|
|
format = "^{count}"
|
|
empty_format = "^0"
|
|
|
|
[modules.scratchpad.common.actions.left]
|
|
type = "builtin"
|
|
name = "toggle-popover"
|
|
|
|
[modules.scratchpad.common.actions.right]
|
|
type = "sway"
|
|
command = "move scratchpad"
|
|
|
|
[modules.mode]
|
|
kind = "mode"
|
|
format = "{mode}"
|
|
|
|
[modules.network]
|
|
kind = "network"
|
|
format_connected = "{icon} {connection}"
|
|
format_disconnected = "睊 Disconnected"
|
|
|
|
[modules.network.common.actions.left]
|
|
type = "builtin"
|
|
name = "toggle-popover"
|
|
|
|
[modules.temperature]
|
|
kind = "temperature"
|
|
format = " {temperature_c:.0}°C"
|
|
interval = "30s"
|
|
warning_c = 75.0
|
|
critical_c = 90.0
|
|
|
|
[modules.temperature.common.actions.left]
|
|
type = "builtin"
|
|
name = "toggle-popover"
|
|
|
|
[modules.backlight]
|
|
kind = "backlight"
|
|
format = " {percent}%"
|
|
step_percent = 5
|
|
|
|
[modules.backlight.common.actions.left]
|
|
type = "builtin"
|
|
name = "toggle-popover"
|
|
|
|
[modules.backlight.common.actions.scroll_up]
|
|
type = "builtin"
|
|
name = "brightness-up"
|
|
|
|
[modules.backlight.common.actions.scroll_down]
|
|
type = "builtin"
|
|
name = "brightness-down"
|
|
|
|
[modules.audio]
|
|
kind = "audio"
|
|
format = " {volume}%"
|
|
muted_format = "婢 Mute"
|
|
microphone_format = " {volume}%"
|
|
microphone_muted_format = " Mute"
|
|
step_percent = 5
|
|
|
|
[modules.audio.common.actions.left]
|
|
type = "builtin"
|
|
name = "toggle-popover"
|
|
|
|
[modules.audio.common.actions.middle]
|
|
type = "builtin"
|
|
name = "toggle-mute"
|
|
|
|
[modules.audio.common.actions.scroll_up]
|
|
type = "builtin"
|
|
name = "volume-up"
|
|
|
|
[modules.audio.common.actions.scroll_down]
|
|
type = "builtin"
|
|
name = "volume-down"
|
|
|
|
[modules.battery]
|
|
kind = "battery"
|
|
format = "{icon} {percent}%"
|
|
full_format = " {percent}%"
|
|
warning_percent = 20
|
|
critical_percent = 10
|
|
|
|
[modules.battery.common.actions.left]
|
|
type = "builtin"
|
|
name = "toggle-popover"
|
|
|
|
[modules.clock]
|
|
kind = "clock"
|
|
format = "%a, %d. %b %H:%M:%S"
|
|
interval = "1s"
|
|
|
|
[modules.tray]
|
|
kind = "tray"
|
|
icon_size = 16
|
|
spacing = 8
|
|
|
|
[modules.clock.common]
|
|
style = { margin_x = 6 }
|
|
|
|
[modules.clock.common.actions.left]
|
|
type = "builtin"
|
|
name = "toggle-popover"
|