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 & kanshi &
pipewire-launcher & pipewire-launcher &
swayidle-launcher & swayidle-launcher &
yambar-launcher &
dunst & dunst &
gammastep -r & gammastep -r &
{{- if eq .chezmoi.hostname "hydrus" }} {{- if eq .chezmoi.hostname "hydrus" }}
waybar-launcher &
river-tag-overlay & river-tag-overlay &
blueman-applet &
swaybg -m fill -i "${HOME}/Pictures/Wallpapers/dark-forest-path.jpg" & swaybg -m fill -i "${HOME}/Pictures/Wallpapers/dark-forest-path.jpg" &
{{- else if eq .chezmoi.hostname "helix" }} {{- else if eq .chezmoi.hostname "helix" }}
yambar-launcher &
swaybg -m center -i "${HOME}/Pictures/Wallpapers/Mountain Retreat.jpg" & swaybg -m center -i "${HOME}/Pictures/Wallpapers/Mountain Retreat.jpg" &
{{- end }} {{- end }}
sleep 10 && nextcloud --background & nextcloud --background &

View file

@ -34,14 +34,14 @@ separator: &separator {string: {text: " ", font: *hack, foreground: *light_grey
bar: bar:
{{- if eq .chezmoi.hostname "helix" }} {{- if eq .chezmoi.hostname "helix" }}
height: 64 height: 64
location: top location: bottom
{{- else if eq .chezmoi.hostname "hydrus" }} {{- else if eq .chezmoi.hostname "hydrus" }}
monitor: DP-2 monitor: DP-2
height: 28 height: 28
location: bottom location: bottom
{{- else }} {{- else }}
height: 36 height: 36
location: top location: bottom
{{- end }} {{- end }}
layer: top layer: top
spacing: 2 spacing: 2
@ -156,7 +156,7 @@ bar:
foreground: *light_grey foreground: *light_grey
id >= 10 && ~visible && ~occupied: {empty: {}} id >= 10 && ~visible && ~occupied: {empty: {}}
{{ end }} {{ end }}
center: center:
- foreign-toplevel: - foreign-toplevel:
content: content:
map: map:
@ -164,3 +164,61 @@ center:
activated: activated:
- string: {text: "{app-id}: {title}"} - string: {text: "{app-id}: {title}"}
~activated: {empty: {}} ~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: - label:
content: *separator content: *separator
- clock: - clock:
date-format: "%Y-%m-%d" date-format: "%b %d"
time-format: "%R" time-format: "%R"
content: content:
- string: {text: , font: *awesome} - string: {text: , font: *awesome}