templates
This commit is contained in:
parent
fd33d50950
commit
cbf487a508
1 changed files with 13 additions and 0 deletions
13
scripts/menu/menu-templates
Executable file
13
scripts/menu/menu-templates
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
# Copy templates to clipboard
|
||||
|
||||
# templates directory
|
||||
templates=~/Documents/templates
|
||||
# Select using menu, copy if successful
|
||||
template=$(ls "$templates" | menu "template:")
|
||||
|
||||
# Exit if empty
|
||||
[ -z "$template" ] && exit
|
||||
|
||||
# Copy to clipboard and notify otherwise
|
||||
cat "$templates"/"$template" | xsel -ib && notify-send "template" "'$template' copied to clipboard!"
|
Loading…
Reference in a new issue