12 lines
383 B
Bash
Executable File
12 lines
383 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ -z "$1" ]]; then
|
|
echo "Show calculator"
|
|
|
|
else
|
|
killall rofi
|
|
# so rofi doesn't complain "can't launch rofi inside rofi"
|
|
# rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '{result}' | xclip -selection clipboard"
|
|
rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '{result}' | xclip -selection clipboard"
|
|
fi
|