153 lines
5.2 KiB
YAML
153 lines
5.2 KiB
YAML
font: &font Iosevka Nerd Font:size=40
|
|
|
|
rosewater: &rosewater f5e0dcff
|
|
flamingo: &flamingo f2cdcdff
|
|
pink: &pink f5c2e7ff
|
|
mauve: &mauve cba6f7ff
|
|
red: &red f38ba8ff
|
|
maroon: &maroon eba0acff
|
|
peach: &peach fab387ff
|
|
yellow: &yellow f9e2afff
|
|
green: &green a6e3a1ff
|
|
teal: &teal 94e2d5ff
|
|
sky: &sky 89dcebff
|
|
sapphire: &sapphire 74c7ecff
|
|
blue: &blue 89b4faff
|
|
lavender: &lavender b4befeff
|
|
text: &text cdd6f4ff
|
|
base: &base 1e1e2eff
|
|
|
|
bg_default: &bg_default {stack: [{background: {color: *base}}, {underline: {size: 4, color: *pink}}]}
|
|
bar:
|
|
height: 60
|
|
location: bottom
|
|
font: *font
|
|
spacing: 10
|
|
margin: 7
|
|
layer: bottom
|
|
foreground: *text
|
|
background: *base
|
|
|
|
left:
|
|
- river:
|
|
anchors:
|
|
- base: &river_base
|
|
left-margin: 10
|
|
right-margin: 13
|
|
default: {string: {text: }}
|
|
conditions:
|
|
id == 1: {string: {text: 1}}
|
|
id == 2: {string: {text: 2}}
|
|
id == 3: {string: {text: 3}}
|
|
id == 4: {string: {text: 4}}
|
|
id == 5: {string: {text: 5}}
|
|
id == 6: {string: {text: 6}}
|
|
id == 7: {string: {text: 7}}
|
|
id == 8: {string: {text: 8}}
|
|
id == 9: {string: {text: 9}}
|
|
id == 1048576: {string: {text: "scratchpad"}}
|
|
|
|
content:
|
|
map:
|
|
on-click:
|
|
left: sh -c "riverctl set-focused-tags $((1 << ({id} - 1)))"
|
|
right: sh -c "riverctl toggle-focused-tags $((1 << ({id} -1)))"
|
|
middle: sh -c "riverctl toggle-view-tags $((1 << ({id} -1)))"
|
|
conditions:
|
|
state == urgent:
|
|
map:
|
|
<<: *river_base
|
|
deco: {background: {color: *red}}
|
|
state == focused:
|
|
map:
|
|
<<: *river_base
|
|
deco: *bg_default
|
|
state == visible && ~occupied:
|
|
map:
|
|
<<: *river_base
|
|
state == visible && occupied:
|
|
map:
|
|
<<: *river_base
|
|
deco: *bg_default
|
|
state == unfocused:
|
|
map:
|
|
<<: *river_base
|
|
state == invisible && ~occupied: {empty: {}}
|
|
state == invisible && occupied:
|
|
map:
|
|
<<: *river_base
|
|
deco: {underline: {size: 3, color: *blue}}
|
|
center:
|
|
- clock:
|
|
time-format: "%H:%M %A, %B %d"
|
|
content:
|
|
- string: {text: "{time}"}
|
|
|
|
right:
|
|
- network:
|
|
# name: "wlan0"
|
|
poll-interval: 1000
|
|
content:
|
|
map:
|
|
default: {string: {text: "", foreground: *text}}
|
|
conditions:
|
|
state == down: {string: {text: , foreground: *text}}
|
|
state == up:
|
|
map:
|
|
default:
|
|
- string: {text: }
|
|
- string: {text: " {ssid}"}
|
|
|
|
conditions:
|
|
ipv4 == "":
|
|
- string: {text: , foreground: *text}
|
|
- string: {text: " {ssid}", foreground: *text}
|
|
- battery:
|
|
name: BAT0
|
|
poll-interval: 60000
|
|
anchors:
|
|
discharging: &discharging
|
|
list:
|
|
items:
|
|
- ramp:
|
|
tag: capacity
|
|
items:
|
|
- string: {text: , foreground: *red}
|
|
- string: {text: , foreground: *red}
|
|
- string: {text: ,}
|
|
- string: {text: ,}
|
|
- string: {text: ,}
|
|
- string: {text: ,}
|
|
- string: {text: ,}
|
|
- string: {text: ,}
|
|
- string: {text: ,}
|
|
- string: {text: , foreground: *green}
|
|
- string: {text: " {capacity}% {estimate}"}
|
|
content:
|
|
map:
|
|
conditions:
|
|
state == unknown:
|
|
<<: *discharging
|
|
state == discharging:
|
|
<<: *discharging
|
|
state == charging:
|
|
- string: {text: , foreground: *text}
|
|
- string: {text: " {capacity}% {estimate}"}
|
|
state == full:
|
|
- string: {text: , foreground: *green}
|
|
- string: {text: " {capacity}% full"}
|
|
state == "not charging":
|
|
- ramp:
|
|
tag: capacity
|
|
items:
|
|
- string: {text: , foreground: *red}
|
|
- string: {text: , foreground: *rosewater}
|
|
- string: {text: , foreground: *green}
|
|
- string: {text: , foreground: *green}
|
|
- string: {text: , foreground: *green}
|
|
- string: {text: , foreground: *green}
|
|
- string: {text: , foreground: *green}
|
|
- string: {text: , foreground: *green}
|
|
- string: {text: , foreground: *green}
|
|
- string: {text: , foreground: *green}
|
|
- string: {text: " {capacity}%"}
|