If this is your first visit, be sure to
check out the FAQ. You will have to register
before you can post. To start viewing messages,
select the forum that you want to visit from the selection below.
Please do not use the CODE tag when pasting content that contains formatting (colored, bold, underline, italic, etc).
The CODE tag displays all content as plain text, including the formatting tags, making it difficult to read.
Does anyone know what the best software is to bind F keys to execute a set of macros like executing SSH and running a batch script, for example?
Thanks!
I don't know about "best", but typical software for this kind of task is xbindkeys. https://savannah.nongnu.org/projects/xbindkeys/
You can install it in Kubuntu directly from the "universe" repository.
Last edited by Schwarzer Kater; Feb 20, 2023, 03:28 PM.
Reason: typos
Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others
I'm confused by what you mean by that, in a Kubuntu context. Do you just mean a script of commands?
Anyway, the KDE menu editor (right click the KDE menu, edit applications) serves to set up something that can be run and have a "shortcut key" to invoke it. I like doing things this way because it's been rather more persistent over the years than widgets or "custom shortcuts". If I want a widget (say, in a panel) I can drag it from the menu. And, I can put my "somethings" in one place, which helps to find them.
Thanks for the reply.
I am in charge of managing a few servers running ubuntu. I run kubuntu on my machines, and never had any reason to join a forum as everything works fine.
I'd like to automate some of the batch scripts I use to update the servers, update the firewall, SSH into them...etc... Instead of typing or copy/paste, I thought it would be nice to just bind a function key to automate this process. Like F1 SSHs into server 1, F2, into server 2, F3 updates bacth command..etc...
Thanks.
Staying with X11, I've used xdotool, and ydotool looks interesting, but I've never used it.
However, I suspect you'd be better with a bash script with some kind of menu, using a tool like kdialog, zenity, or my current favourite yad, though I should look into dialogbox.
Staying with X11, I've used xdotool, and ydotool looks interesting, but I've never used it.
However, I suspect you'd be better with a bash script with some kind of menu, using a tool like kdialog, zenity, or my current favourite yad, though I should look into dialogbox.
Comment