| 1 | # Do not add "!/bin/bash" as it support both bash and zsh |
| 2 | # install: |
| 3 | # echo source ~/.config/awesome/tyrannical/extra/launcher.sh > ~/.bashrc |
| 4 | # or: |
| 5 | # echo source ~/.config/awesome/tyrannical/extra/launcher.sh > ~/.zshrc |
| 6 | |
| 7 | function tyr() { |
| 8 | ARGS="$1" |
| 9 | RET="$2 " |
| 10 | shift |
| 11 | shift |
| 12 | for arg in $@; do |
| 13 | RET="$RET \"$arg\"" |
| 14 | done |
| 15 | echo "require('awful').util.spawn('$RET',{$ARGS})" | awesome-client |
| 16 | } |
| 17 | |
| 18 | |
| 19 | alias tyrf="tyr floating=true" |
| 20 | alias tyrs="tyr sticky=true" |
| 21 | alias tyrt="tyr ontop=true" |
| 22 | alias tyrn="tyr new_tag=true" |
| 23 | alias tyri="tyr intrusive=true" |