A lightweight bash script that shows your phone battery in Waybar using KDE Connect.
A sleek and lightweight script that displays your mobile phone battery status directly in Waybar using KDE Connect. Perfect for Hyprland and Sway users.
Run the following commands in your terminal to install the script:
cd mobile_charge_indicator_waybar
chmod +x install.sh
./install.sh
The script will automatically copy mobile.sh to:
~/.config/waybar/scripts/
"custom/mobile": {
"format": "{text}",
"exec": "~/.config/waybar/scripts/mobile.sh",
"interval": 30,
"return-type": "json",
"on-click": "~/.config/waybar/scripts/mobile.sh --ping"
}
#custom-mobile {
font-family: "JetBrains Mono Nerd", monospace;
font-size: 14px;
padding: 0 6px;
margin-left: 4px;
}
#custom-mobile.critical {
color: #f07178;
}
#custom-mobile.warning {
color: #f2cd66;
}
#custom-mobile.normal {
color: #c3e88d;
}
View GitHub Repository