37 lines
1.2 KiB
Promela
37 lines
1.2 KiB
Promela
? <swaybarspace ?swaybarspace> [
|
|
|
|
? <machine-dataspace ?machine> [
|
|
$machine ?? <uevent "power_supply" _ change {POWER_SUPPLY_STATUS: ?STATUS POWER_SUPPLY_TECHNOLOGY: ?TECHNOLOGY} _> [
|
|
$swaybarspace <swaybar-status { "full_text": $STATUS }>
|
|
$swaybarspace <swaybar-status { "full_text": $TECHNOLOGY }>
|
|
]
|
|
]
|
|
|
|
$config ? { argv: ["sway-env-magic-cookie"]
|
|
env: {
|
|
"DESKTOP_STARTUP_ID": ?DESKTOP_STARTUP_ID
|
|
"XDG_ACTIVATION_TOKEN": ?XDG_ACTIVATION_TOKEN
|
|
} } [
|
|
|
|
$swaybarspace <swaybar-status {
|
|
"full_text": "Thu 30 May 2019 02:09:15",
|
|
"short_text": "02:09",
|
|
"color": "#ccccccff",
|
|
"background": "#111111ff",
|
|
"border": "#222222ff",
|
|
"border_top": 1,
|
|
"border_bottom": 1,
|
|
"border_left": 1,
|
|
"border_right": 1,
|
|
"min_width": 100,
|
|
"align": "center",
|
|
"name": "clock",
|
|
"instance": "edt",
|
|
"urgent": false,
|
|
"separator": true,
|
|
"separator_block_width": 5,
|
|
"markup": "none"
|
|
}>
|
|
]
|
|
]
|