Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update glowsticks' battery and time symbols to non mdi- symbols which were removed #4571

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions themes/glowsticks.omp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ blocks:
always_enabled: true
style: round
style: powerline
template: " {{ .FormattedMs }} "
template: " 󰔟 {{ .FormattedMs }} "
Copy link
Owner

@JanDeDobbeleer JanDeDobbeleer Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need the UTF notation of the icons instead of the actual icon: \uXXXX

Copy link
Contributor Author

@bend-n bend-n Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? for all of them?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't readable. When you export the config again that "should" be done for you btw.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used omp config export and this happened:
image

type: executiontime

# Exit code
Expand Down Expand Up @@ -88,10 +88,10 @@ blocks:
charging_icon: 
discharging_icon: " "
style: diamond
template: " {{.Templates }}{{ .Percentage}}<transparent></>"
template: " {{.Templates }} {{ .Percentage}}<transparent> </>"
templates:
- '{{if eq "Discharging" .State.String}}{{if lt .Percentage 11}}{{else if lt .Percentage 21}}{{else if lt .Percentage 31}}{{else if lt .Percentage 41}}{{else if lt .Percentage 51}}{{else if lt .Percentage 61}}{{else if lt .Percentage 71}}{{else if lt .Percentage 81}}{{else if lt .Percentage 91}}{{else}}{{end}}{{end}}'
- '{{if eq "Charging" .State.String}}{{ if lt .Percentage 21}}{{else if lt .Percentage 31}}{{else if lt .Percentage 41}}{{else if lt .Percentage 61}}{{else if lt .Percentage 81}}{{else if lt .Percentage 91}}{{else}}{{end}}{{end}}'
- '{{if eq "Discharging" .State.String}}{{if lt .Percentage 11}}󰁺{{else if lt .Percentage 21}}󰁻{{else if lt .Percentage 31}}󰁼{{else if lt .Percentage 41}}󰁽{{else if lt .Percentage 51}}󰁾{{else if lt .Percentage 61}}󰁿{{else if lt .Percentage 71}}󰂀{{else if lt .Percentage 81}}󰂁{{else if lt .Percentage 91}}󰂂{{else}}󰁹{{end}}{{end}}'
- '{{if eq "Charging" .State.String}}{{if lt .Percentage 11}}󰢜{{else if lt .Percentage 21}}󰂆{{else if lt .Percentage 31}}󰂇{{else if lt .Percentage 41}}󰂈{{else if lt .Percentage 51}}󰢝{{else if lt .Percentage 61}}󰂉{{else if lt .Percentage 71}}󰢞{{else if lt .Percentage 81}}󰂊{{else if lt .Percentage 91}}󰂋{{else}}󰂄{{end}}{{end}}'
templates_logic: first_match
type: battery

Expand Down