Εντολές kdeconnect

To kdeconnect είναι ένα ωραίο εργαλείο για να κάνεις δουλειές στο κομπιούτερ, αλλά από το κινητό σου.

ΟΚ να ενημερώσω ότι δεν είμαι ό,τι καλύτερο για παρουσίαση (γενικώς).

Με το kdeconnect μπορείς:

Να κλείσεις τον υπολογιστή από το κινητό σου ενώ είσαι ξάπλα στο κρεβάτι, Να ανοίξεις τον firefox και να πεις με τη φωνή σου τι θες να ψάξεις στη μηχανη αναζήτησης, να κάνεις ζουμ αφού δεν θα βλέπεις καλά όντας μακριά (και ξάπλα. Μη ξεχνιόμαστε), να εκτελέσεις σκριπτάκια και γενικώς… κάνεις πράγματα!

Ανοίγεις τις ρυθμίσεις του


και πας εκεί που λέει Εκτέλεση εντολής

Αυτά που βλέπετε γραμμένα, αυτά είναι. Κάνεις διπλο κλικ σε κάθε πλαίσιο0 και γράφεις μέσα το όνομα και δίπλα την εντολή.

Μπορείς να τρέξεις και τα λεγόμενα “εφέ Επιφάνειας εργασίας”. Βρήκα τις εντολές (μην το πεις πουθενά).

Δείτε τις:

Δίνεις
qdbus org.kde.kglobalaccel /component/kwin invokeShortcut

αφήνεις κενό έναν χαρακτήρα μετά τη λέξη invokeshortcut και γραφεις ότι μία από τις δυνατότητες του Kwin που είναι:

Switch One Desktop to the Left
Window to Previous Desktop
Remove Window From Group
Window Raise
ExposeAll
Window to Previous Screen
Window No Border
Window to Desktop 20
Walk Through Window Tabs (Reverse)
Window Quick Tile Bottom Right
Walk Through Windows (Reverse)
Toggle Window Raise/Lower
Increase Opacity
Window Pack Up
MoveZoomRight
Suspend Compositing
ClearLastMouseMark
Switch One Desktop Up
Window Shrink Horizontal
Show Desktop
Switch to Desktop 1
Switch to Desktop 2
Window Shade
Switch to Desktop 3
Walk Through Windows Alternative
Switch to Desktop 4
Switch to Desktop 5
Switch to Desktop 6
Switch to Desktop 7
view_zoom_out
Switch to Desktop 8
Switch to Desktop 9
Switch to Desktop 10
Switch to Desktop 11
Switch One Desktop Down
Switch to Desktop 12
Switch to Desktop 13
Switch to Desktop 14
Window Quick Tile Bottom Left
Switch to Desktop 15
Switch to Desktop 16
MoveZoomUp
Window Move
Switch to Desktop 17
Switch to Desktop 18
Switch to Desktop 19
Window Operations Menu
Invert Screen Colors
Window Above Other Windows
Window to Desktop 1
Window to Desktop 2
Window to Desktop 3
Window to Desktop 4
Window to Desktop 5
Window to Desktop 6
Window to Desktop 7
MoveMouseToFocus
Window to Desktop 8
Window to Desktop 9
Window On All Desktops
Switch to Desktop 20
Walk Through Windows of Current Application (Reverse)
Window to Next Screen
Switch to Next Desktop
Switch Window Up
Window Maximize Vertical
Walk Through Desktop List (Reverse)
Activate Window Demanding Attention
Window Quick Tile Top
Window Pack Right
Kill Window
Window Quick Tile Top Left
Window Maximize Horizontal
Expose
Window Fullscreen
Window Quick Tile Top Right
Window One Desktop to the Right
Decrease Opacity
Window Below Other Windows
Window Grow Vertical
MoveMouseToCenter
Window Close
Walk Through Window Tabs
Window Resize
Window Minimize
Switch to Previous Screen
Window Maximize
Window One Desktop Up
Window Pack Left
Walk Through Desktops (Reverse)
view_actual_size
Switch to Screen 0
Setup Window Shortcut
ExposeClass
Switch to Screen 1
Window to Screen 0
Switch to Screen 2
Window to Screen 1
Switch to Screen 3
Window to Screen 2
Switch to Screen 4
Window to Screen 3
Switch to Screen 5
Window to Screen 4
Switch to Screen 6
Window to Screen 5
ShowDesktopGrid
Switch to Screen 7
Window to Screen 6
Window to Screen 7
Walk Through Windows of Current Application
Window One Desktop to the Left
Window Pack Down
Walk Through Windows
Window One Desktop Down
Window Quick Tile Left
ToggleCurrentThumbnail
Switch Window Right
Window Grow Horizontal
MoveZoomLeft
Walk Through Windows of Current Application Alternative (Reverse)
Walk Through Windows of Current Application Alternative
Invert
Switch One Desktop to the Right
Window Quick Tile Bottom
Window Lower
Window Quick Tile Right
Walk Through Windows Alternative (Reverse)
InvertWindow
Switch Window Left
view_zoom_in
Walk Through Desktop List
MoveZoomDown
Window Shrink Vertical
Switch to Next Screen
Switch Window Down
Window to Desktop 10
Switch to Previous Desktop
Window to Desktop 11
Window to Desktop 12
Window to Desktop 13
Walk Through Desktops
Window to Desktop 14
Window to Desktop 15
Window to Next Desktop
Window to Desktop 16
ClearMouseMarks
Window to Desktop 17
Window to Desktop 18
Window to Desktop 19

Αυτές μπορείς και να τις δεις δίνοντας στην κονσόλα

qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.shortcutNames

Αυτά βασικά

3 «Μου αρέσει»

Αν θες να προσθέσεις κάτι καινούργιο,
εκτός από το παράθυρο ρυθμίσεων μπορείς να πειράξεις απευθείας το αρχείο conf το αρμόδιο.
Βρίσκετε στο
~/.config/kdeconnect/45dc3790fcc2cc6d/kdeconnect_runcommand/config

Ο φάκελος που για όνομα έχει αυτόν τον αριθμό που βλέπετε, αλλάζει σε κάθε προφίλ. (Αυτονόητο αλλά το λέω έτσι, για να πείτε ότι προσπάθησα να είμαι κατατοπιστικός και σωστός. :grin: )

1 «Μου αρέσει»

Προσπάθησα να το κάνω και στο mate και τελικά εκεί θέλει άλλο κόλπο.
Κατ’ αρχάς να εγκαταστήσεις το

xdtool

Με αυτό θα εκτελείς από το κινητό ότι εκτελείς στο πισί μέσω συντόμευσης πληλτρολογίου. Πχ το Alt+F2 είναι μία συντόμευση. Το Print για σκρίνσοτ, κλπ.

Πάλι πας στις ρυθμίσεις και περνάς μία μία τα ονόματα και τις εντολές που θες να εκτελεστούν. Τα ονόματα των εφαρμογών τα γράφεις ως έχουν (firefox, caja, mate-terminal κλπ)
Αλλά συντομευσεις του compiz ας πούμε (Μεγέθυνση, αντιστροφή χρωμάτων, γύρισμα κύβου, κλπ) τα κάνεις με το xdtool.

Να το conig αρχείο μου.

commands="@ByteArray({
    \"{128daef4-ee28-4945-bcc7-ef188d69bbdc}\": {
        \"command\": \"/home/family/scripts/Close\",
        \"name\": \"STOP\"
    },
    \"{14055649-8c99-4711-af33-5fe08efc2a7a}\": {
        \"command\": \"xdotool key Ctrl+r\",
        \"name\": \"Zoom out\"
    },
    \"{49d64211-f99c-4b82-9d7a-31181456d78b}\": {
        \"command\": \"/home/family/scripts/delfinia2\",
        \"name\": \"\xce\x94\xce\xb5\xce\xbb\xcf\x86\xce\xaf\xce\xbd\xce\xb9\xce\xb1\"
    },
    \"{49fcec16-6e43-4b36-9eed-c272f9bcf6c8}\": {
        \"command\": \"xdotool key Ctrl+t\",
        \"name\": \"Zoom in\"
    },
    \"{62da1280-1042-4bc9-95e2-ba6c69c105f1}\": {
        \"command\": \"xdotool key Alt+F2\",
        \"name\": \"\xce\x95\xce\xba\xcf\x84\xce\xad\xce\xbb\xce\xb5\xcf\x83\xce\xb7 \xce\xb5\xce\xbd\xcf\x84\xce\xbf\xce\xbb\xce\xae\xcf\x82\"
    },
    \"{6dfa1b39-d7b4-45fc-aaf4-3d251230e91a}\": {
        \"command\": \"xdotool key Ctrl+Alt+Left\",
        \"name\": \"\xce\x9a\xcf\x8d\xce\xb2\xce\xbf\xcf\x82 \xce\xb1\xcf\x81\xce\xb9\xcf\x83\xcf\x84\xce\xb5\xcf\x81\xce\xac\"
    },
    \"{a2c2ae7d-5d5a-4e67-b9c7-72369f67c5aa}\": {
        \"command\": \"xdotool key Ctrl+Alt+Right\",
        \"name\": \"\xce\x9a\xcf\x8d\xce\xb2\xce\xbf\xcf\x82 \xce\xb4\xce\xb5\xce\xbe\xce\xb9\xce\xac\"
    },
    \"{bd58d4d2-4622-4a9c-8535-c24c1b8576bb}\": {
        \"command\": \"firefox\",
        \"name\": \"firefox\"
    },
    \"{d996828f-16b3-4cbf-af7d-2d9f6598ce62}\": {
        \"command\": \"xdotool key Super+m\",
        \"name\": \"\xce\x91\xcf\x81\xce\xbd\xce\xb7\xcf\x84\xce\xb9\xce\xba\xcf\x8c \xcf\x8c\xce\xbb\xce\xbf\"
    },
    \"{e9e4efa6-84c5-48da-a4a5-972dff7c7622}\": {
        \"command\": \"xdotool key Super+n\",
        \"name\": \"\xce\x91\xcf\x81\xce\xbd\xce\xb7\xcf\x84\xce\xb9\xce\xba\xcf\x8c \xcf\x80\xce\xb1\xcf\x81\xce\xac\xce\xb8\xcf\x85\xcf\x81\xce\xbf\"
    },
    \"{fac0d1e0-ac26-4dc9-9629-4f5296c29c76}\": {
        \"command\": \"xdotool key Alt+F4\",
        \"name\": \"\xce\x9a\xce\xbb\xce\xb5\xce\xaf\xcf\x83\xce\xb9\xce\xbc\xce\xbf \xcf\x80\xce\xb1\xcf\x81\xce\xb1\xce\xb8\xcf\x8d\xcf\x81\xce\xbf\xcf\x85\"
    }
}
)

Ωχ τι είναι αυτό τώρα; Μου τα γράφει έτσι μέσα :roll_eyes:

Καλά δεν μπορώ τώρα να το φτιάξω. πάντως η κεντρική ιδέα αυτή είναι.
:nauseated_face:

Edit by admin: Το μάζεψα λίγο, αλλά δεν ξέρω αν το χάλασα.

1 «Μου αρέσει»

Ξαναμπούταρα στο mate. Τελικά οι εντολές είναι αυτές

Έντιτ!
Η πρώτη που λέει kde είναι λάθος. Αντιγράφηκε κατα λάθος στο αρχείο config.