hyprland-dotfiles/scripts/templates.sh
Stephan Raabe db790f413f Updates
2023-10-17 17:06:58 +02:00

19 lines
613 B
Bash
Executable File

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