Update .chezmoiignore
Add .config/fish/functions/batt.fish
This commit is contained in:
parent
b64f47f965
commit
e077bcf3a3
2 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
README.md
|
||||
tags*
|
||||
|
||||
{{- if ne .chezmoi.hostname "archbaby" }}
|
||||
.config/fish/functions/batt.fish
|
||||
{{- end }}
|
||||
|
||||
{{- if not .isServer }}
|
||||
.config/composer
|
||||
.config/firefox
|
||||
|
|
6
dot_config/fish/functions/batt.fish
Normal file
6
dot_config/fish/functions/batt.fish
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
function batt -d "Check battery percentage"
|
||||
upower -i /org/freedesktop/UPower/devices/battery_BAT0 \
|
||||
| grep -E "state|time to|percentage"
|
||||
end
|
Loading…
Reference in a new issue