Konsole wakes up on need of input

Is there some way that; konsole (terminal) wakes up screen to recieve inputs?

Makes updating easier as i have habit of, and asks for password again and again.
$ clear; sudo flatpak remove --unused -y; sudo dnf autoremove -y; sudo flatpak update -y; sudo dnf upgrade --refresh -y; sudo dnf update --refresh -y; shutdown -f now;

Not a direct answer to your question: but you could consider putting all of your steps into a script file (without sudo before each command).

Then just sudo ./my-update-script.sh and you should only need to input your password once.

Sudo remembers that it is authorised for a period of time. So long as the set of commands run with in that time windows there is only one prompt.

The suggestion of using a script is a good idea for any none trivia sequence of commands.

Right, you get a 5-minute time window by default - that might or might not last you for the whole sequence of commands here, according to how many packages / flatpaks need upgrading.

1 Like

If you’d like to stick to the succession of commands instead of a script, given that for wheel users the flatpak update|remove commands don’t require sudo, you can reorder the commands and start with a sudo validation (for the cached credentials to be updated). That way you probably won’t be asked for another password entry.

$ sudo -v
$ clear; sudo dnf autoremove -y; sudo dnf upgrade --refresh -y; flatpak update -y; flatpak remove --unused -y; shutdown -f now;
1 Like