mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-09-18 19:08:06 -04:00
Update border/underlines/margins, add ethernet module
This commit is contained in:
parent
2d839270ab
commit
f6e086982d
1 changed files with 46 additions and 28 deletions
|
@ -1,6 +1,7 @@
|
|||
# Colors
|
||||
.everforest:
|
||||
0: &foreground d8caacff
|
||||
1: &background 323d43cc
|
||||
1: &background 323d43dd
|
||||
2: &black 4a555bff
|
||||
3: &dark_grey 525c62ff
|
||||
4: &dark_red e26c6eff
|
||||
|
@ -17,20 +18,22 @@
|
|||
15: &cyan 83c092ff
|
||||
16: &light_grey d0bf9bff
|
||||
17: &white d8caacff
|
||||
transparent_light_grey: &transparent_light_grey d0bf9b99
|
||||
transparent_black: &transparent_black 4a555b99
|
||||
# Fonts
|
||||
{{- if eq .chezmoi.hostname "helix" }}
|
||||
hack: &hack Hack:pixelsize=28
|
||||
awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=26
|
||||
hack: &hack Hack:pixelsize=24
|
||||
awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=24
|
||||
{{- else}}
|
||||
hack: &hack Hack:pixelsize=13
|
||||
awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=12
|
||||
{{- end }}
|
||||
separator: &separator {string: {text: " | ", font: *hack, foreground: *light_grey}}
|
||||
light_underline: &light_underline d0bf9b99
|
||||
dark_underline: &dark_underline 4a555b99
|
||||
# Labels
|
||||
separator: &separator {string: {text: " ", font: *hack, foreground: *light_grey}}
|
||||
|
||||
bar:
|
||||
{{- if eq .chezmoi.hostname "helix" }}
|
||||
height: 72
|
||||
height: 64
|
||||
location: top
|
||||
{{- else if eq .chezmoi.hostname "hydrus" }}
|
||||
monitor: DP-1
|
||||
|
@ -48,16 +51,16 @@ bar:
|
|||
background: *background
|
||||
border:
|
||||
{{- if eq .chezmoi.hostname "hydrus" }}
|
||||
top-width: 0
|
||||
bottom-width: 2
|
||||
bottom-margin: 4
|
||||
left-margin: 8
|
||||
right-margin: 8
|
||||
{{- else }}
|
||||
top-width: 4
|
||||
bottom-width: 0
|
||||
top-margin: 8
|
||||
left-margin: 16
|
||||
right-margin: 16
|
||||
{{- end }}
|
||||
left-width: 0
|
||||
right-width: 0
|
||||
color: *light_underline
|
||||
margin: 0
|
||||
width: 0
|
||||
color: *transparent_light_grey
|
||||
|
||||
left:
|
||||
- river:
|
||||
|
@ -81,32 +84,32 @@ bar:
|
|||
urgent:
|
||||
string:
|
||||
<<: *river_base
|
||||
deco: {stack: [{background: {color: *dark_red}}, {underline: {size: 4, color: *black}}]}
|
||||
deco: {stack: [{background: {color: *dark_red}}, {border: {size: 6, color: *black}}]}
|
||||
foreground: *black
|
||||
focused:
|
||||
string:
|
||||
<<: *river_base
|
||||
deco: {stack: [{background: {color: *light_grey}}, {underline: {size: 4, color: *dark_underline}}]}
|
||||
deco: {stack: [{background: {color: *light_grey}}, {underline: {size: 6, color: *transparent_black}}]}
|
||||
foreground: *dark_grey
|
||||
visible && occupied:
|
||||
string:
|
||||
<<: *river_base
|
||||
deco: {stack: [{background: {color: *light_underline}}, {underline: {size: 4, color: *dark_underline}}]}
|
||||
deco: {stack: [{background: {color: *transparent_light_grey}}, {underline: {size: 6, color: *transparent_black}}]}
|
||||
foreground: *light_grey
|
||||
visible && ~occupied:
|
||||
string:
|
||||
<<: *river_base
|
||||
deco: {stack: [{background: {color: *light_underline}}, {underline: {size: 4, color: *dark_underline}}]}
|
||||
deco: {stack: [{background: {color: *transparent_light_grey}}, {underline: {size: 6, color: *transparent_black}}]}
|
||||
foreground: *light_grey
|
||||
~visible && occupied:
|
||||
string:
|
||||
<<: *river_base
|
||||
deco: {stack: [{background: {color: *dark_grey}}, {underline: {size: 4, color: *light_underline}}]}
|
||||
deco: {stack: [{background: {color: *dark_grey}}, {underline: {size: 6, color: *transparent_light_grey}}]}
|
||||
foreground: *light_grey
|
||||
~focused && occupied:
|
||||
string:
|
||||
<<: *river_base
|
||||
deco: {stack: [{background: {color: *dark_grey}}, {underline: {size: 4, color: *light_underline}}]}
|
||||
deco: {stack: [{background: {color: *dark_grey}}, {underline: {size: 6, color: *transparent_light_grey}}]}
|
||||
foreground: *light_grey
|
||||
id < 10 && ~visible && ~occupied:
|
||||
string:
|
||||
|
@ -133,8 +136,8 @@ bar:
|
|||
wheel-down: sh -c "pactl set-sink-volume @DEFAULT_SINK@ -5%"
|
||||
conditions:
|
||||
sink_muted:
|
||||
- string: {text: , font: *awesome, foreground: *light_underline}
|
||||
- string: {text: " {sink_percent}% ({sink_port})", foreground: *light_underline}
|
||||
- string: {text: , font: *awesome, foreground: *transparent_light_grey}
|
||||
- string: {text: " {sink_percent}% ({sink_port})", foreground: *transparent_light_grey}
|
||||
~sink_muted:
|
||||
- ramp:
|
||||
tag: sink_percent
|
||||
|
@ -159,23 +162,38 @@ bar:
|
|||
content: *separator
|
||||
- network:
|
||||
name: wlan0
|
||||
poll-interval: 1000
|
||||
poll-interval: 60
|
||||
content:
|
||||
map:
|
||||
default: {string: {text: , font: *awesome}}
|
||||
conditions:
|
||||
state == down: {string: {text: , font: *awesome, foreground: *dark_grey}}
|
||||
state == down: {string: {text: , font: *awesome, foreground: *dark_grey}}
|
||||
state == up:
|
||||
map:
|
||||
default:
|
||||
- string: {text: , font: *awesome}
|
||||
- string: {text: " {name}: {state}"}
|
||||
#- string: {text: " {ssid} {dl-speed:mb}/{ul-speed:mb} Mb/s", foreground: *light_grey}
|
||||
conditions:
|
||||
ipv4 == "":
|
||||
- string: {text: , font: *awesome}
|
||||
- string: {text: " {name}: {state}"}
|
||||
#- string: {text: " {ssid} {dl-speed:mb}/{ul-speed:mb} Mb/s", foreground: *light_grey}
|
||||
- network:
|
||||
name: eth0
|
||||
poll-interval: 60
|
||||
content:
|
||||
map:
|
||||
conditions:
|
||||
~carrier: {empty: {}}
|
||||
carrier:
|
||||
map:
|
||||
default:
|
||||
- string: {text: , font: *awesome}
|
||||
- string: {text: " {name}: {state}"}
|
||||
conditions:
|
||||
state == down: {string: {text: , font: *awesome}}
|
||||
ipv4 == "":
|
||||
- string: {text: , font: *awesome}
|
||||
- string: {text: " {name}: {state}"}
|
||||
- label:
|
||||
content: *separator
|
||||
- battery:
|
||||
|
@ -218,6 +236,6 @@ bar:
|
|||
time-format: "%R"
|
||||
content:
|
||||
- string: {text: , font: *awesome}
|
||||
- string: {text: " {date} | "}
|
||||
- string: {text: " {date} "}
|
||||
- string: {text: , font: *awesome}
|
||||
- string: {text: " {time} "}
|
||||
|
|
Loading…
Reference in a new issue