Skip to content

cosmohacker/KDE-Connect-Codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Some useful codes for KDE:Connect that i use for my phone to pc connection. (Kali Linux - Not important but if you need to know distro!) I hope it helps.

//Begin::Installation

How to install KDE:Connect [PC] -> KDE:Connect Installation [PC]

How to install KDE:Connect [Android] -> KDE:Connect Installation [Android]

//End::Installation

Note

If there is any additional command you want, I will add it.

This code on reddit - > reddit

Contents

[Close All Vaults, Forcefully Close All Vaults, Kill All Process And Logout, Maximum Brightness, Minimum Brightness, Reboot, Suspend, Unlock Screen, Cancel Shutdown, Change Webcam Shot Names, Delete Audio Records, Delete Screenshots, Delete Video Records, Delete Webcam Shots, Empty Trash, Lock Screen, Mute/Unmute, Record Audio 10 Min, Record Audio 30 Sec, Record Audio 5 Min, Record Video 10 Min, Record Video 30 Sec, Record Video 5 Min, Send Audio To Phone, Send Screenshots To Phone, Send Video Records To Phone, Send Webcam Shot To Phone, Shutdown, Spotify, Take Screenshot, Volume Down -10, Volume Down -5, Volume Up +10, Volume Up +5, Webcam Shot]
Title Code
Close All Vaults qdbus org.kde.kded5 /modules/plasmavault closeAllVaults
Forcefully Close All Vaults qdbus org.kde.kded5 /modules/plasmavault forceCloseAllVaults
Kill all process and logout killall -u cosmohacker
Maximum Brightness qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightnessMax
Minimum Brightness qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness 0
Reboot systemctl reboot
Suspend systemctl suspend
Unlock Screen loginctl unlock-session
Cancel Shutdown shutdown -c
change webcam shot names for f in /home/cosmohacker/Documents/*.png; do mv "$f" "$(echo "$f"
delete audio records rm --force /home/cosmohacker/Music/*
delete screenshots rm --force /home/cosmohacker/Pictures/*
delete video records rm --force /home/cosmohacker/Videos/*
delete webcam shots rm --force /home/cosmohacker/Documents/*
empty trash rm -rf ~/.local/share/Trash/*
lock screen qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock
mute/unmute amixer sset Master toggle
record audio 10 min sox -t alsa default /home/cosmohacker/Music/$(date "+%Y%m%d_%H%M%S")audio.wav trim 0 600
record audio 30 sec sox -t alsa default /home/cosmohacker/Music/$(date "+%Y%m%d_%H%M%S")audio.wav trim 0 30
record audio 5 min sox -t alsa default /home/cosmohacker/Music/$(date "+%Y%m%d_%H%M%S")audio.wav trim 0 300
record video 10 min ffmpeg -f alsa -f video4linux2 -s 320x240 -i /dev/video0 -t 600 /home/cosmohacker/Videos/$(date "+%Y%m%d_%H%M%S")out.mpg
record video 30 sec ffmpeg -f alsa -f video4linux2 -s 320x240 -i /dev/video0 -t 30 /home/cosmohacker/Videos/$(date "+%Y%m%d_%H%M%S")out.mpg
record video 5 min ffmpeg -f alsa -f video4linux2 -s 320x240 -i /dev/video0 -t 300 /home/cosmohacker/Videos/$(date "+%Y%m%d_%H%M%S")out.mpg
send audio to phone for FILE in /home/cosmohacker/Music/*.wav;do kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share echo $FILE;done
send screenshots to phone for FILE in /home/cosmohacker/Pictures/*.png;do kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share echo $FILE;done
send video records to phone for FILE in /home/cosmohacker/Videos/*.mpg;do kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share echo $FILE;done
send webcam shot to phone for FILE in /home/cosmohacker/Documents/*.png;do kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share echo $FILE;done
shutdown shutdown
spotify spotify
take screenshot import -window root /home/cosmohacker/Pictures/$(date "+%Y%m%d_%H%M%S")screenshot.png
volume down -10 amixer set Master 10%-
volume down -5 amixer set Master 5%-
volume up +10 amixer set Master 10%+
volume up +5 amixer set Master 5%+
webcam shot mplayer -vo png:outdir=/home/cosmohacker/Documents -frames 10 tv://

Releases

No releases published

Packages

No packages published