yinput-0.6 - yad program to enable or disable devices

Moderator: Forum moderators

Post Reply
plinej
Posts: 236
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 6 times
Been thanked: 98 times

yinput-0.6 - yad program to enable or disable devices

Post by plinej »

Here's a little yad gui that will enable or disable devices (i.e. touchpad). I started to write this as a gui for xinput but I know Wayland doesn't use that so this should work for everyone.

Devices that are enabled will show enabled in the combobox and the other option will be "disable".
Devices that are disabled will show disabled in the combobox and the other option will be "enable".

Change the options that you want and click ok.

0.2 - if xinput is installed you'll have to select to use or not and then the main gui will popup. Make your changes and then you can click the test button to test your changes and you'll get a 30 second countdown. After 30 seconds your changes will revert. You can click the revert button on the countdown gui to immediately revert or click the keep button to keep your changes.

0.3 bugfix and some improvements

0.4 added a switch to xinput or non-xinput button and some other improvements.

0.5 bugfix

0.6 code clean up

yinput-0.6.pet
(15.13 KiB) Downloaded 10 times
yinput-snap.png
yinput-snap.png (45.05 KiB) Viewed 982 times
Last edited by plinej on Mon Feb 12, 2024 10:38 pm, edited 7 times in total.
You can download my packages at https://archive.org/download/plinej-packages
User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: yinput-0.1 - yad program to enable or disable devices

Post by BarryK »

Thanks, that looks useful.

User avatar
MochiMoppel
Posts: 1116
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 17 times
Been thanked: 359 times

Re: yinput-0.1 - yad program to enable or disable devices

Post by MochiMoppel »

Hmmm... my PC uses 1 keyboard and 1 mouse. Can be tricky to find them in the list and can be easy to disable the wrong one, which would leave the system without any input device = not operational anymore.
Maybe it would help to limit the list to input devices with which the user interacts and ignore adapters and virtual devices? Just a thought...

yinput.jpg
yinput.jpg (55.18 KiB) Viewed 857 times

With use_xinput=false I can't see any keyboard:

yinput2.jpg
yinput2.jpg (51.31 KiB) Viewed 854 times
User avatar
stemsee
Posts: 656
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 160 times
Been thanked: 104 times
Contact:

Re: yinput-0.1 - yad program to enable or disable devices

Post by stemsee »

Or....have a simple mode and an advanced mode with all devices. And a checkbox for timeout on reboot or re-login before activation, giving time to restore a device in case all were disabled.

User avatar
MochiMoppel
Posts: 1116
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 17 times
Been thanked: 359 times

Re: yinput-0.1 - yad program to enable or disable devices

Post by MochiMoppel »

Disabled all audio devices (see 2nd screenshot). Output through front headphone continued :cry:

plinej
Posts: 236
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 6 times
Been thanked: 98 times

Re: yinput-0.1 - yad program to enable or disable devices

Post by plinej »

I'm not sure I want to do anything else with this. It does what I need it to do but I can see how someone may disable the wrong thing and have to reboot. If anyone wants to add code to this feel free. I've got other things that I want to spend my time on.

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 236
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 6 times
Been thanked: 98 times

Re: yinput-0.1 - yad program to enable or disable devices

Post by plinej »

Scratch that, I'll do an 0.2 version later today. I thought of some things to easily implement.

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 236
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 6 times
Been thanked: 98 times

Re: yinput-0.2 - yad program to enable or disable devices

Post by plinej »

0.2 is up

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 236
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 6 times
Been thanked: 98 times

Re: yinput-0.2 - yad program to enable or disable devices

Post by plinej »

@MochiMoppel, I think I may have figured out why your audio device wasn't disabled. I'll do an 0.3 update sometime today. The other pitfall of this program is disabling something that appears in the xinput list and the non-xinput list which will only show disabled in the gui that you've disabled it in and not the other. I'll implement a warning message if the program finds that when you run the other version of the gui.

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 236
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 6 times
Been thanked: 98 times

Re: yinput-0.3 - yad program to enable or disable devices

Post by plinej »

0.3 is up

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 236
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 6 times
Been thanked: 98 times

Re: yinput-0.4 - yad program to enable or disable devices

Post by plinej »

0.4 is up. I think I'm done with this now unless someone finds a bug.

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 236
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 6 times
Been thanked: 98 times

Re: yinput-0.5 - yad program to enable or disable devices

Post by plinej »

0.5 bugfix is up

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 236
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 6 times
Been thanked: 98 times

Re: yinput-0.6 - yad program to enable or disable devices

Post by plinej »

0.6 is up

You can download my packages at https://archive.org/download/plinej-packages
Post Reply

Return to “System”