Skip to content

Add battery item #578

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions functions/_tide_item_battery.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function _tide_item_battery
_tide_print_item battery $tide_battery_icon " " (cat /sys/class/power_supply/BAT0/capacity) "%"
end
3 changes: 3 additions & 0 deletions functions/tide/configure/configs/classic.fish
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ tide_vi_mode_color_replace 87AF87
tide_vi_mode_color_visual FF8700
tide_zig_bg_color 444444
tide_zig_color F7A41D
tide_battery_color e4e4e4
tide_battery_bg_color 1a1a1a
tide_battery_icon 
3 changes: 3 additions & 0 deletions functions/tide/configure/configs/classic_16color.fish
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ tide_vi_mode_color_replace green
tide_vi_mode_color_visual yellow
tide_zig_bg_color black
tide_zig_color yellow
tide_battery_color e4e4e4
tide_battery_bg_color 1a1a1a
tide_battery_icon 
3 changes: 3 additions & 0 deletions functions/tide/configure/configs/lean.fish
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ tide_vi_mode_color_replace 87AF87
tide_vi_mode_color_visual FF8700
tide_zig_bg_color normal
tide_zig_color F7A41D
tide_battery_color e4e4e4
tide_battery_bg_color 1a1a1a
tide_battery_icon 
3 changes: 3 additions & 0 deletions functions/tide/configure/configs/lean_16color.fish
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ tide_vi_mode_color_replace green
tide_vi_mode_color_visual yellow
tide_zig_bg_color normal
tide_zig_color yellow
tide_battery_color e4e4e4
tide_battery_bg_color 1a1a1a
tide_battery_icon 
3 changes: 3 additions & 0 deletions functions/tide/configure/configs/rainbow.fish
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ tide_vi_mode_color_replace 000000
tide_vi_mode_color_visual 000000
tide_zig_bg_color F7A41D
tide_zig_color 000000
tide_battery_color e4e4e4
tide_battery_bg_color 1a1a1a
tide_battery_icon 
3 changes: 3 additions & 0 deletions functions/tide/configure/configs/rainbow_16color.fish
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,6 @@ tide_vi_mode_icon_replace R
tide_vi_mode_icon_visual V
tide_zig_bg_color yellow
tide_zig_color black
tide_battery_color e4e4e4
tide_battery_bg_color 1a1a1a
tide_battery_icon 
Loading