mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-14 12:17:17 +00:00
9 lines
359 B
Plaintext
9 lines
359 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# Simple wrapper to quickly execute a simple python command and have it printed out.
|
||
|
# The output is then sent back via notification.
|
||
|
#
|
||
|
# This already has random imported, since that's a common use-case for this script.
|
||
|
|
||
|
echo "" | dmenu -i -p "Python" | xargs -0 -I % python -c "import random;print(%)" | xargs -I % notify-send "Pyrun output:" "%"
|