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.