This commit is contained in:
Stephan Raabe
2023-03-24 15:31:45 +01:00
parent 69a4039c93
commit 85ef052463
3 changed files with 50 additions and 4 deletions

16
scripts/templates.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# _____ _ _
# |_ _|__ _ __ ___ _ __ | | __ _| |_ ___ ___
# | |/ _ \ '_ ` _ \| '_ \| |/ _` | __/ _ \/ __|
# | | __/ | | | | | |_) | | (_| | || __/\__ \
# |_|\___|_| |_| |_| .__/|_|\__,_|\__\___||___/
# |_|
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
# Select text file
selected=$(ls -1 ~/private/templates | rofi -dmenu -p "Select the template")
# Add content to clipboard
xclip -sel clip ~/private/templates/$selected