You are not logged in.

#1 2024-09-06 18:35:37

luchodeco
Member
Registered: 2024-09-06
Posts: 4

Webcam settings for KDE plasma

Evening folks,

I just finished to install Arch linux with KDE plasma on my Asus Zenbook S13 UM5302. I made everything work from network to audio! I have a shortcut on my keyboard dedicated to activating/deactivating the webcam, with a small LED. I have the same shortcut for the microphone and it worked well with alsa-utils and pulseaudio. When deactivating the mic, it deactivate properly and the LED red signal is on. When I activate it, the microphone works well and the LED signal go off.

Is there a way to set a similar settings for my webcam, I mean something official, I could write a script to do so I guess, but I am looking for something clean.

Have a nice evening,
lucho

Offline

#2 2024-09-12 16:26:08

coolpyrofreak
Member
From: Colorado Springs
Registered: 2006-03-13
Posts: 54

Re: Webcam settings for KDE plasma

I found this script: https://github.com/OnikenX/toggle-webcam

I had to replace this line (line 21):

if kdesu -c "rmmod -f uvcvideo"

with

if pkexec modprobe -r uvcvideo

Also replace (line 29):

if kdesu -c "modprobe uvcvideo"

with

if pkexec modprobe uvcvideo

Yes, remove the quotation marks.

Then I just had to map it to a custom keyboard shortcut using my webcam key. It works like a charm. Doesn't fix the LED light, but it provides me with a pop-up notification.

Offline

Board footer

Powered by FluxBB