diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2022-07-31 12:39:36 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2022-07-31 12:39:36 +0200 |
commit | d53ce5574b0bfd6f78394f9469a043c04866ecdc (patch) | |
tree | b31d0bb729fb2d93a2e8ad0d0db14ad589c4c7a4 /clipboardUtils.sh | |
parent | 80aa1954df73bbe0b238cd2fd254cb179dbe3b0e (diff) | |
download | scripts-d53ce5574b0bfd6f78394f9469a043c04866ecdc.tar.gz scripts-d53ce5574b0bfd6f78394f9469a043c04866ecdc.zip |
Created dmenu wrapper and made all (hopefully) scripts compatible with vanilla dmenu.
Diffstat (limited to 'clipboardUtils.sh')
-rwxr-xr-x | clipboardUtils.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clipboardUtils.sh b/clipboardUtils.sh index 49f39d0..1789905 100755 --- a/clipboardUtils.sh +++ b/clipboardUtils.sh @@ -6,7 +6,7 @@ options="Show selections\nReplicate selections\nWrite to selection\n" selections="Clipboard\nPrimary\nSecondary\n" -target="$(printf "$options" | dmenu -l 3 -i -p "~ Clipboard utils ~")" +target="$(printf "$options" | dmenu -l 3 -p "~ Clipboard utils ~")" [ "$target" = "" ] && exit 0 case "$target" in @@ -16,14 +16,14 @@ Primary: [$(xsel -po)] Secondary: [$(xsel -so)]" ;; "Replicate selections") - fromSelection="$(printf "$selections" | dmenu -l 3 -i -p "From selection:")" + fromSelection="$(printf "$selections" | dmenu -l 3 -p "From selection:")" [ "$fromSelection" = "" ] && exit 0 case "$fromSelection" in "Clipboard") fromOption=b ;; "Primary") fromOption=p ;; "Secondary") fromOption=s ;; esac - toSelection="$(printf "$selections" | dmenu -l 3 -i -p "To selection:")" + toSelection="$(printf "$selections" | dmenu -l 3 -p "To selection:")" [ "$toSelection" = "" ] && exit 0 case "$toSelection" in "Clipboard") toOption=b ;; @@ -33,7 +33,7 @@ Secondary: [$(xsel -so)]" ;; xsel -"$fromOption"o | xsel -"$toOption"i && notify-send "Copied [$(xsel -"$toOption"o)] from $fromSelection to $toSelection." ;; "Write to selection") - selectedSelection="$(printf "$selections" | dmenu -l 3 -i -p "Write to which selection?")" + selectedSelection="$(printf "$selections" | dmenu -l 3 -p "Write to which selection?")" textToWrite="$(dmenu -p "Text to write to $selectedSelection:")" [ "$textToWrite" = "" ] && exit 0 case "$selectedSelection" in |