mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 09:53:10 -05:00
Chezmoi templating
This commit is contained in:
parent
9efd5a3f8a
commit
cc72d61a8e
1 changed files with 46 additions and 18 deletions
|
@ -17,13 +17,29 @@
|
||||||
15: &cyan 83c092ff
|
15: &cyan 83c092ff
|
||||||
16: &light_grey d0bf9bff
|
16: &light_grey d0bf9bff
|
||||||
17: &white d8caacff
|
17: &white d8caacff
|
||||||
|
{{- if eq .chezmoi.hostname "helix" }}
|
||||||
hack: &hack Hack:pixelsize=28
|
hack: &hack Hack:pixelsize=28
|
||||||
awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=26
|
awesome: &awesome Font Awesome 6 Free:style=solid:pixelsize=26
|
||||||
|
{{- 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}}
|
separator: &separator {string: {text: " | ", font: *hack, foreground: *light_grey}}
|
||||||
|
light_underline: &light_underline d0bf9b99
|
||||||
|
dark_underline: &dark_underline 4a555b99
|
||||||
|
|
||||||
bar:
|
bar:
|
||||||
|
{{- if eq .chezmoi.hostname "helix" }}
|
||||||
height: 72
|
height: 72
|
||||||
|
location: top
|
||||||
|
{{- else if eq .chezmoi.hostname "hydrus" }}
|
||||||
|
monitor: DP-1
|
||||||
|
height: 28
|
||||||
location: bottom
|
location: bottom
|
||||||
|
{{- else }}
|
||||||
|
height: 36
|
||||||
|
location: top
|
||||||
|
{{- end }}
|
||||||
layer: top
|
layer: top
|
||||||
spacing: 2
|
spacing: 2
|
||||||
margin: 2
|
margin: 2
|
||||||
|
@ -31,19 +47,29 @@ bar:
|
||||||
foreground: *foreground
|
foreground: *foreground
|
||||||
background: *background
|
background: *background
|
||||||
border:
|
border:
|
||||||
|
{{- if eq .chezmoi.hostname "hydrus" }}
|
||||||
top-width: 0
|
top-width: 0
|
||||||
bottom-width: 4
|
bottom-width: 2
|
||||||
|
{{- else }}
|
||||||
|
top-width: 4
|
||||||
|
bottom-width: 0
|
||||||
|
{{- end }}
|
||||||
left-width: 0
|
left-width: 0
|
||||||
right-width: 0
|
right-width: 0
|
||||||
color: *light_grey
|
color: *light_underline
|
||||||
margin: 0
|
margin: 0
|
||||||
|
|
||||||
left:
|
left:
|
||||||
- river:
|
- river:
|
||||||
anchors:
|
anchors:
|
||||||
- base: &river_base
|
- base: &river_base
|
||||||
|
{{- if eq .chezmoi.hostname "helix" }}
|
||||||
left-margin: 56
|
left-margin: 56
|
||||||
right-margin: 56
|
right-margin: 56
|
||||||
|
{{- else }}
|
||||||
|
left-margin: 22
|
||||||
|
right-margin: 22
|
||||||
|
{{- end }}
|
||||||
text: "{id}"
|
text: "{id}"
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
|
@ -60,37 +86,33 @@ bar:
|
||||||
focused:
|
focused:
|
||||||
string:
|
string:
|
||||||
<<: *river_base
|
<<: *river_base
|
||||||
deco: {stack: [{background: {color: *light_grey}}, {underline: {size: 4, color: *dark_grey}}]}
|
deco: {stack: [{background: {color: *light_grey}}, {underline: {size: 4, color: *dark_underline}}]}
|
||||||
foreground: *dark_grey
|
foreground: *dark_grey
|
||||||
~focused && occupied:
|
|
||||||
string:
|
|
||||||
<<: *river_base
|
|
||||||
deco: {stack: [{background: {color: *dark_grey}}, {underline: {size: 4, color: *light_grey}}]}
|
|
||||||
foreground: *light_grey
|
|
||||||
visible && occupied:
|
visible && occupied:
|
||||||
string:
|
string:
|
||||||
<<: *river_base
|
<<: *river_base
|
||||||
deco: {background: {color: *light_grey}}
|
deco: {stack: [{background: {color: *light_underline}}, {underline: {size: 4, color: *dark_underline}}]}
|
||||||
foreground: *dark_grey
|
foreground: *light_grey
|
||||||
visible && ~occupied:
|
visible && ~occupied:
|
||||||
string:
|
string:
|
||||||
<<: *river_base
|
<<: *river_base
|
||||||
deco: {background: {color: *dark_grey}}
|
deco: {stack: [{background: {color: *light_underline}}, {underline: {size: 4, color: *dark_underline}}]}
|
||||||
foreground: *light_grey
|
foreground: *light_grey
|
||||||
~visible && occupied:
|
~visible && occupied:
|
||||||
string:
|
string:
|
||||||
<<: *river_base
|
<<: *river_base
|
||||||
deco: {stack: [{background: {color: *dark_grey}}, {underline: {size: 4, color: *light_grey}}]}
|
deco: {stack: [{background: {color: *dark_grey}}, {underline: {size: 4, color: *light_underline}}]}
|
||||||
|
foreground: *light_grey
|
||||||
|
~focused && occupied:
|
||||||
|
string:
|
||||||
|
<<: *river_base
|
||||||
|
deco: {stack: [{background: {color: *dark_grey}}, {underline: {size: 4, color: *light_underline}}]}
|
||||||
foreground: *light_grey
|
foreground: *light_grey
|
||||||
id < 10 && ~visible && ~occupied:
|
id < 10 && ~visible && ~occupied:
|
||||||
string:
|
string:
|
||||||
<<: *river_base
|
<<: *river_base
|
||||||
foreground: *light_grey
|
foreground: *light_grey
|
||||||
id >= 10 && ~visible && ~occupied: {empty: {}}
|
id >= 10 && ~visible && ~occupied: {empty: {}}
|
||||||
~focused:
|
|
||||||
string:
|
|
||||||
<<: *river_base
|
|
||||||
foreground: *light_grey
|
|
||||||
|
|
||||||
center:
|
center:
|
||||||
- foreign-toplevel:
|
- foreign-toplevel:
|
||||||
|
@ -105,10 +127,14 @@ bar:
|
||||||
- pulse:
|
- pulse:
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
|
on-click:
|
||||||
|
left: sh -c "pactl set-sink-mute @DEFAULT_SINK@ toggle"
|
||||||
|
wheel-up: sh -c "pactl set-sink-volume @DEFAULT_SINK@ +5%"
|
||||||
|
wheel-down: sh -c "pactl set-sink-volume @DEFAULT_SINK@ -5%"
|
||||||
conditions:
|
conditions:
|
||||||
sink_muted:
|
sink_muted:
|
||||||
- string: {text: , font: *awesome}
|
- string: {text: , font: *awesome, foreground: *light_underline}
|
||||||
- string: {text: " {sink_percent}% ({sink_port})"}
|
- string: {text: " {sink_percent}% ({sink_port})", foreground: *light_underline}
|
||||||
~sink_muted:
|
~sink_muted:
|
||||||
- ramp:
|
- ramp:
|
||||||
tag: sink_percent
|
tag: sink_percent
|
||||||
|
@ -117,6 +143,7 @@ bar:
|
||||||
- string: {text: , font: *awesome}
|
- string: {text: , font: *awesome}
|
||||||
- string: {text: , font: *awesome}
|
- string: {text: , font: *awesome}
|
||||||
- string: {text: " {sink_percent}% ({sink_port})"}
|
- string: {text: " {sink_percent}% ({sink_port})"}
|
||||||
|
{{- if ne .chezmoi.hostname "hydrus" }}
|
||||||
- label:
|
- label:
|
||||||
content: *separator
|
content: *separator
|
||||||
- backlight:
|
- backlight:
|
||||||
|
@ -183,6 +210,7 @@ bar:
|
||||||
state == "not charging":
|
state == "not charging":
|
||||||
- string: {text: , font: *awesome}
|
- string: {text: , font: *awesome}
|
||||||
- string: {text: " {capacity}%"}
|
- string: {text: " {capacity}%"}
|
||||||
|
{{- end }}
|
||||||
- label:
|
- label:
|
||||||
content: *separator
|
content: *separator
|
||||||
- clock:
|
- clock:
|
Loading…
Reference in a new issue