Skip to content

Commit 9bbdede

Browse files
committed
oboro => [lemons][lemonrc.md][cf-warp]
1 parent 0cea898 commit 9bbdede

3 files changed

Lines changed: 26 additions & 2 deletions

File tree

runes/lemonbar/cf-warp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
warp-cli -l status | while read -r status; do
4+
case "$status" in
5+
'Status update'*);;
6+
*) continue ;;
7+
esac
8+
case $status in
9+
*Connected*) color="%{F#A1B56C}" ;;
10+
*Connecting*) color="%{F#FFC40C}" ;;
11+
*Disconnected*) color="%{F#F07178}" ;;
12+
esac
13+
profile=$(timeout 30s warp-cli mdm get-configs | grep 'Active:' | cut -d: -f2-)
14+
printf "%sWARP%%{F-}%s\n" "$color" "$profile"
15+
done

runes/lemonbar/lemonrc.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,20 @@
6767
- align: `left`
6868
- fg: `yellow`
6969

70+
## Cloudflare Warp Status
71+
- persistent: `~/.config/lemonbar/cf-warp`
72+
- pre_condition: `program-installed warp-cli`
73+
- align: `left`
74+
- raw: `true`
75+
7076
## Package
71-
- persistent: `bash ~/.package.sh`
77+
- command: `bash ~/.package.sh`
7278
- pre_condition: `file-exists .package.sh`
79+
- interval: `15`
7380
- align: `left`
81+
- left-click: `bash ~/.package.sh click`
7482
- raw: `true`
83+
- signal: `true`
7584

7685
## PowerMode
7786
- persistent: `~/.local/bin/platform_profile low balanced performance`

0 commit comments

Comments
 (0)