A toy Powerline segment. This segment shows result of a dice.
A toy Powerline segment. This segment shows a result of dice combination.
pip install powerline-dice
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_dice.roll",
"priority": 90
}
By default shows a roll of d6 (dice of six faces).
Rolls two dices of twenty faces and get critical hit with 40 and critical fumble with 1.
{
"function": "powerline_dice.roll",
"priority": 30,
"args": {
"diceCombination": "2d20",
"critical": 30,
"fumble": 15
}
},
Flip a coin with the tail 🙂 and head ️☹️.
{
"function": "powerline_dice.roll",
"priority": 30,
"args": {
"diceCombination": "d2",
"facesDice": ["🙂", "☹️"],
"postContent": ""
}
},
Licensed under the GPL3 License.