Install this version:
emerge -a =app-misc/tmux-battery-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-misc/tmux-battery-9999
Or alternatively:
emerge --autounmask-write -a =app-misc/tmux-battery-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
EGIT_REPO_URI="https://github.com/tmux-plugins/${PN}.git"
inherit git-r3
DESCRIPTION="Plug and play battery percentage and icon indicator for Tmux"
HOMEPAGE="https://github.com/tmux-plugins/tmux-battery"
LICENSE="MIT"
SLOT="0"
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.tmux
fperms -R +x /usr/share/tmux-plugins/tmux-battery/scripts/battery_{graph,icon,percentage,remain}.sh \
/usr/share/tmux-plugins/tmux-battery/scripts/battery_status_{b,f}g.sh \
/usr/share/tmux-plugins/tmux-battery/battery.tmux
}
app-misc/tmux || ( app-misc/jq sys-power/acpi sys-power/upower )