tmux: add battery status (wip)
This commit is contained in:
6
bin/tmux_battery.sh
Executable file
6
bin/tmux_battery.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
capacity=$(cat /sys/class/power_supply/BAT0/capacity)
|
||||||
|
status=$(cat /sys/class/power_supply/BAT0/status)
|
||||||
|
|
||||||
|
echo "Battery: $capacity%"
|
||||||
@@ -8,7 +8,7 @@ set -wg pane-base-index 1
|
|||||||
|
|
||||||
# statusline
|
# statusline
|
||||||
set -g status-left "[#S] "
|
set -g status-left "[#S] "
|
||||||
set -g status-right "\"#H\" %H:%M %d-%m-%Y"
|
set -g status-right "[#($HOME/dotfiles/bin/tmux_battery.sh)] \"#H\" %H:%M %d-%m-%Y"
|
||||||
|
|
||||||
set -ag status-style "bg=#d4be98"
|
set -ag status-style "bg=#d4be98"
|
||||||
set -ag status-style "fg=#32302f"
|
set -ag status-style "fg=#32302f"
|
||||||
|
|||||||
Reference in New Issue
Block a user