From e077bcf3a30f0c83feef681f486e1eb157347034 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sat, 27 Apr 2024 19:26:05 -0700 Subject: [PATCH] Update .chezmoiignore Add .config/fish/functions/batt.fish --- .chezmoiignore | 4 ++++ dot_config/fish/functions/batt.fish | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 dot_config/fish/functions/batt.fish diff --git a/.chezmoiignore b/.chezmoiignore index 4f457bd..d872114 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -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 diff --git a/dot_config/fish/functions/batt.fish b/dot_config/fish/functions/batt.fish new file mode 100644 index 0000000..98fc014 --- /dev/null +++ b/dot_config/fish/functions/batt.fish @@ -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