Skip to content

Instantly share code, notes, and snippets.

@Macorreag
Last active June 16, 2021 05:04
Show Gist options
  • Save Macorreag/45a94dfa89192f8141ca3ae8cd038d96 to your computer and use it in GitHub Desktop.
Save Macorreag/45a94dfa89192f8141ca3ae8cd038d96 to your computer and use it in GitHub Desktop.
Snnipets for Linux

Select the Snippet with rofi

#!/bin/bash

selection=$(rofi -i -width 1000 -theme solarized -dmenu $@ < /home/dkb/Documents/snippets.txt)
kaomoji=$(echo $selection)
echo -n "$kaomoji" | xclip -selection clipboard
sleep 0.1
xdotool key shift+Insert

pet is for snnipets in command line

pet list

Para usar con interfaz gráficca GUI use Snippet Pixie

ls \n Hola mundo \ 123
asdsa
d
asd
as
d
asd
assnippets.txt
#!/bin/bash
# Primero otorgue permisos de ejecución chmod +x script.sh
## Esto inicia un menu que deja en el portapapeles lo escrito en el archivo snippets.txt
#!/bin/bash
selection=$(rofi -i -width 1000 -theme solarized -dmenu $@ < /home/miller/Documentos/snippets.txt)
kaomoji=$(echo $selection)
echo -n "$kaomoji" | xclip -selection clipboard
sleep 0.1
xdotool key shift+Insert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment