Update yambar for 2nd display and replace waybar

This commit is contained in:
Andrew Scott 2023-07-19 02:44:56 -04:00
parent 3388d21169
commit 73f8d0639e
Signed by: a
GPG key ID: 7CD5A5977E4931C1
3 changed files with 64 additions and 8 deletions

View file

@ -224,15 +224,13 @@ gnome-keyring-daemon --start --components=ssh &
kanshi &
pipewire-launcher &
swayidle-launcher &
yambar-launcher &
dunst &
gammastep -r &
{{- if eq .chezmoi.hostname "hydrus" }}
waybar-launcher &
river-tag-overlay &
blueman-applet &
swaybg -m fill -i "${HOME}/Pictures/Wallpapers/dark-forest-path.jpg" &
{{- else if eq .chezmoi.hostname "helix" }}
yambar-launcher &
swaybg -m center -i "${HOME}/Pictures/Wallpapers/Mountain Retreat.jpg" &
{{- end }}
sleep 10 && nextcloud --background &
nextcloud --background &

View file

@ -34,14 +34,14 @@ separator: &separator {string: {text: " ", font: *hack, foreground: *light_grey
bar:
{{- if eq .chezmoi.hostname "helix" }}
height: 64
location: top
location: bottom
{{- else if eq .chezmoi.hostname "hydrus" }}
monitor: DP-2
height: 28
location: bottom
{{- else }}
height: 36
location: top
location: bottom
{{- end }}
layer: top
spacing: 2
@ -164,3 +164,61 @@ center:
activated:
- string: {text: "{app-id}: {title}"}
~activated: {empty: {}}
right:
{{- if eq .chezmoi.hostname "hydrus" }}
- label:
content: *separator
- network:
name: wlan0
poll-interval: 2000
content:
map:
default: {string: {text: , font: *awesome}}
conditions:
state == down: {string: {text: , font: *awesome, foreground: *dark_grey}}
state == up:
map:
default:
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down - {ul-speed:mb} mb/s up"}
conditions:
ipv4 == "":
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
- network:
name: eth0
poll-interval: 2000
content:
map:
conditions:
~carrier: {empty: {}}
carrier:
map:
default:
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
conditions:
state == down: {string: {text: , font: *awesome}}
ipv4 == "":
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
- label:
content: *separator
{{- end }}
- cpu:
poll-interval: 2000
content:
map:
conditions:
id == -1:
- string: {text: , font: *awesome}
- string: {text: " {cpu}%"}
- label:
content: *separator
- mem:
poll-interval: 5000
content:
- string: {text: , font: *awesome}
- string: {text: " {used:mb} MiB ({percent_used}% Used)"}

View file

@ -271,7 +271,7 @@ bar:
- label:
content: *separator
- clock:
date-format: "%Y-%m-%d"
date-format: "%b %d"
time-format: "%R"
content:
- string: {text: , font: *awesome}