diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-05-18 01:17:06 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-05-18 01:17:06 +0300 |
commit | a36aadab60c09bff3a055b0442971aa5e8a87a27 (patch) | |
tree | 0026c02065a0cf35478386312aeb5cb732192469 /dotfiles/.local/bin/rofigrim | |
parent | 484181c25cba61469254e24bff578cff5189c8a7 (diff) | |
download | swayrice-a36aadab60c09bff3a055b0442971aa5e8a87a27.tar.gz swayrice-a36aadab60c09bff3a055b0442971aa5e8a87a27.zip |
WIP: rofi
* Moved basically all menu scripts to use rofi
* Updated some custom desktop entries
* Updated list of packages. TODO: make a better installer script/package
list.
* Removed some old and extraneous scripts.
* Other minor changes to config.
Diffstat (limited to 'dotfiles/.local/bin/rofigrim')
-rwxr-xr-x | dotfiles/.local/bin/rofigrim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/rofigrim b/dotfiles/.local/bin/rofigrim new file mode 100755 index 0000000..47aff4d --- /dev/null +++ b/dotfiles/.local/bin/rofigrim @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ "$ROFI_RETV" = 1 ]; then + coproc screensht "$1" + exit 0 +elif [ "$ROFI_RETV" = 20 ]; then + coproc screensht "$1" copy + exit 0 +fi + + +echo -ne "\0no-custom\x1ftrue\n" +echo -ne "\0prompt\x1fWhat to screenshot?\n" +echo -ne "\0message\x1fMake a selection (Alt+Enter to copy to clipboard)\n" +echo -ne "\0use-hot-keys\x1ftrue\n" +echo -ne "select area\0icon\x1fedit-cut\n" +echo -ne "current window\0icon\x1fdesktop\n" +echo -ne "full screen\0icon\x1fdisplay\n" |