A toy Powerline segment. This segment shows a slotmachine.
pip install powerline-slotmachine
You can activate the Powerline Slotmachine segment by adding it to your segment configuration,
for example in .config/powerline/themes/shell/default.json
:
{
"function": "powerline_slotmachine.slotmachine",
"priority": 90
}
But the Powerline Slotmachine store the last combination and money amount in <home>/.config/powerline_slotmachine.json
.
Only execute something in the prompt and the slotmachine will bet.
The bet is 1 coin. The user starts with 10 coins.
Slot | Prize |
---|---|
๐๐๐ | 1 |
๐๐๐ | 2 |
๐๐๐ | 4 |
๐๐๐ | 15 |
โญโญโญ | 100 |
XX๐ | 5 |
X๐๐ | 10 |
Licensed under the GPL3 License.