Skip to content

Instantly share code, notes, and snippets.

@mattfbacon
Created August 22, 2021 18:17
Show Gist options
  • Save mattfbacon/b956b4d75d8b2dc68987eac4ffdb1986 to your computer and use it in GitHub Desktop.
Save mattfbacon/b956b4d75d8b2dc68987eac4ffdb1986 to your computer and use it in GitHub Desktop.
MFetch system fetch. All I need for my shell.
#!/bin/sh
printf "\033[1m$(whoami)@$(hostname)\033[0m with "
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | awk '/percentage/{print $2}'
fortune | fmt -44 -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment