Skip to content

A toy Powerline segment. This segment shows a slotmachine.

License

Notifications You must be signed in to change notification settings

mdtrooper/powerline_slotmachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POWERLINE SLOTMACHINE

A toy Powerline segment. This segment shows a slotmachine.

By Miguel de Dios Matias.

Installation

Using pip

pip install powerline-slotmachine

Configuration

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.

Usage

Only execute something in the prompt and the slotmachine will bet.

The bet is 1 coin. The user starts with 10 coins.

screenshot

Combinations

Slot Prize
🍇🍇🍇 1
🍋🍋🍋 2
🍉🍉🍉 4
🍒🍒🍒 15
⭐⭐⭐ 100
XX🍒 5
X🍒🍒 10

License

Licensed under the GPL3 License.