app-misc/tmux-battery - 2.0.0 (nest)

Search

Install

Install this version:

emerge -a =app-misc/tmux-battery-2.0.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-misc/tmux-battery-2.0.0

Or alternatively:

emerge --autounmask-write -a =app-misc/tmux-battery-2.0.0

Package Information

Description:
Plug and play battery percentage and icon indicator for Tmux
Homepage:
https://github.com/tmux-plugins/tmux-battery
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
2.0.0 9 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

DESCRIPTION="Plug and play battery percentage and icon indicator for Tmux"
HOMEPAGE="https://github.com/tmux-plugins/tmux-battery"
SRC_URI="https://github.com/tmux-plugins/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="app-misc/tmux
	|| ( app-misc/jq sys-power/acpi sys-power/upower )"

src_install() {
	einstalldocs
	insinto /usr/share/tmux-plugins/tmux-battery
	doins -r scripts battery{,_enabled}.tmux
	fperms -R +x /usr/share/tmux-plugins/tmux-battery/scripts/battery_{graph,percentage,remain}.sh \
		/usr/share/tmux-plugins/tmux-battery/scripts/battery_charging_watts.sh \
		/usr/share/tmux-plugins/tmux-battery/scripts/battery_icon{,_charge,_status}.sh \
		/usr/share/tmux-plugins/tmux-battery/scripts/battery_color{,_charge,_status}.sh \
		/usr/share/tmux-plugins/tmux-battery/battery{,_enabled}.tmux
}

Dependencies

RDEPEND

app-misc/tmux
	|| ( app-misc/jq sys-power/acpi sys-power/upower )

Manifest for 2.0.0

Type File Size Source URLs
DIST tmux-battery-2.0.0.tar.gz 148434 bytes https://github.com/tmux-plugins/tmux-battery/archive/v2.0.0.tar.gz