2021 LinuxQuestions.org Members Choice AwardsThis forum is for the 2021 LinuxQuestions.org Members Choice Awards.
You can now vote for your favorite projects/products of 2021. This is your chance to be heard! Voting ends on February 15th.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
View Poll Results: Linux Automation App of the Year
I've done a lot more automation than usual in recent months. It's all been traditional cron + POSIX shell and/or AWK or Perl. So that's my write-in vote.
Yes, Linux already has great stuff. I use a lot of it, but I also use AutoKey. I don't have many functions using it, but I use the main ones many times a day.
Since AutoKey scripts are written in native Python, they can do almost anything Python can do - which is almost anything - including invoking all those other facilities you refer to - at the touch of a hotkey or when a trigger abbreviation is typed. It's a lot easier and more flexible than using things like xbind keys.
Sometimes simple is better. Here are a couple of examples that you can probably do another way, but are way easier with AutoKey.
** A bunch of banking websites try to protect me from myself and won't allow me to copy and paste my random passwords from my password manager (really hard to type correctly - especially with echo off). I wrote a one line script that types the contents of the clipboard which gets around this problem on almost all sites.
** I have a big spreadsheet that I update almost every day. In it, I have a bunch of cells that hold yesterday's values. They are copied from cells containing formulas. For this to work, I have to copy as plain text leaving the formula behind so the copy doesn't update when I enter today's values. Doing this takes a number of mouse clicks in context menus which gets old really fast. I have a script that automates this and I use it around 15 times right before I start to enter new values for today. Using it just takes pressing the assigned hotkey once for each special copy. All I have to do is get the mouse cursor on each destination cell. I don't even have to click because the script does that for me.
AutoKey also has per script/phrase window filters. The above scripts only work if the active window title or class matches a particular regex. That's harder to do without AutoKey. It's also possible to have several scripts with mutually exclusive window filters assigned to the same hotkey. That's really hard to do without AutoKey.
I have two scripts, each triggered by Ctrl+p, that automate two different print to file dialogs that are only invoked on the appropriate active windows. For all other windows, Ctrl+p is passed to the windows unmodified.
It's a lot easier and more flexible than using things like xbind keys.
Any Linux setup I have ever used had configurable hotkeys OOTB.
Quote:
A bunch of banking websites try to protect me from myself and won't allow me to copy and paste my random passwords from my password manager (really hard to type correctly - especially with echo off). I wrote a one line script that types the contents of the clipboard which gets around this problem on almost all sites.
Even while I was reading this I saw a oneliner hotkey solution.
Either way, you're still left with the problem of having plain text passwords in your clipboard.
I suspect the real solution here would be to use a different password manager, but that's beside the point.
Quote:
I have a big spreadsheet that I update almost every day. In it, I have a bunch of cells that hold yesterday's values. They are copied from cells containing formulas. For this to work, I have to copy as plain text leaving the formula behind so the copy doesn't update when I enter today's values. Doing this takes a number of mouse clicks in context menus which gets old really fast. I have a script that automates this and I use it around 15 times right before I start to enter new values for today. Using it just takes pressing the assigned hotkey once for each special copy. All I have to do is get the mouse cursor on each destination cell. I don't even have to click because the script does that for me.
TBH this sounds way convoluted and fragile to my ears, but I have one or two similar solutions working on my setup - again, with shell scripts and existing hotkey functionality.
Quote:
AutoKey also has per script/phrase window filters. The above scripts only work if the active window title or class matches a particular regex. That's harder to do without AutoKey. It's also possible to have several scripts with mutually exclusive window filters assigned to the same hotkey. That's really hard to do without AutoKey.
Depends on your definition of "really hard", but I don't think that's really hard to do without AutoKey.
Quote:
Sometimes simple is better.
That is exactly the gist of my previous post. Just because it's all in Python doesn't mean it's simpler.
Also I assume Autokey needs to have some sort of daemon running for any of this to work? That's needless duplication of functionality from where I stand.
I'm not saying Autokey is bad software, and I appreciate the effort you put into developing it, but nothing you wrote convinced me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.