Coder Social home page Coder Social logo

kde-connect-codes's Introduction

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://

kde-connect-codes's People

Contributors

cosmohacker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.