My macro setup #108
gimmemabrewski
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just sharing a zsh script I made and the lua script section to define my macro setup. I haven't tested this all that much (and I'm but a simple carpenter and mechanic, not a programmer 😆 ) so I can't guarantee it'll work for everyone but I don't see why not. You need to be using X11 to make use of this because it uses xclip. I imagine it wouldn't be too hard to add or switch the script to using wl-clipboard for wayland (I might mess around with it later). I plan to add a selection menu to maybe use as one of my macros also in the future so theres some commented parts. I tried to leave out any unfinished parts from the help section. Hopefully I didn't miss anything. Maybe one day I'll set up my profile on github and share all my scripts but I'm too lazy right now. Anyways, I hope someone finds this useful!
The first file is the main script. To use it:
chmod +x saved-script
text-macros --help
for help contexttext-macros /INSTALL
to create these filesTo edit what each macro does, you'll edit '/usr/bin/eruption-text-macros'.
Section to place in lua script found in '/usr/share/eruption/scripts/lib/macros'
Replace 'YOUR_USERNAME' with your actual username
Enjoy!
Beta Was this translation helpful? Give feedback.
All reactions