[Solved] Desktop Zoom in KDE using dbus-send

Hi,
I am trying to use dbus to use the KDE zoom-in/out feature. I need this to assign mouse-based shortcuts as described here
Using dbus-monitor, I got the following output when pressing the default shortcut for KDE-zoom:
signal sender=:1.5 -> dest=(null destination) serial=1152 path=/component/kwin; interface=org.kde.kglobalaccel.Component; member=globalShortcutPressed
string "kwin"
string "view_zoom_in"
int64 30802948
method call sender=:1.5 -> dest=org.kde.knotify serial=1153 path=/Notify; interface=org.kde.KNotify; member=event
string "globalshortcutpressed"
string "kglobalaccel"
array [
variant string "application"
variant string "KWin"
string ""
string "The global shortcut for Zoom &In was issued."
array [
array [
int32 -1
int64 0
method return sender=:1.11 -> dest=:1.5 reply_serial=1153
int32 0
But I can't figure out how to use this info to actually send the zoom-in message with dbus-send. Can anyone help me with this?
Last edited by codemon (2010-10-13 05:45:58)

So I resume:
yaourt -S xbindkeys
xbindkeys --defaults > $HOME/.xbindkeysrc
Then edit with your favorite text editor the file ~/.xbindkeysrc and add before the end those lines:
# Zoom in
"qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "view_zoom_in""
m:0x50 + c:133 + b:4
# Zoom out
"qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "view_zoom_out""
m:0x50 + c:133 + b:5
Restart xbindkeys to apply the new shortcut:
killall xbindkeys && xbindkeys
Now you can fully enjoy the zoom effect and add xbindkeys into Autostart kde systemsettings tab.
Enjoy^^.
P.S: the shortcut I used in those line is meta key + scroll up for zoom in and meta key + scroll down for the zoom out.
Last edited by splashy (2011-08-09 22:39:50)

Similar Messages

  • [SOLVED] Getting current playing song in Spotify using dbus-send

    dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
    dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
    I can change the songs using these commands as both Next and Previous are methods. But, what if I want to know the Medadata? Metadata is defined as a property in the same path.
    This command throws the obvious error.
    dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata
    Error org.freedesktop.DBus.Error.UnknownMethod: No such method 'Metadata' in interface 'org.mpris.MediaPlayer2.Player' at object path '/org/mpris/MediaPlayer2' (signature '')
    I am unable to use dbus-send properly.
    Relevant screenshop: http://i.imgur.com/IqRw5.png
    Last edited by shadyabhi (2012-01-30 02:20:19)

    Ok, I got it finally. I had to use
    dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'

  • [SOLVED] Desktop Weird After KDE 4.9 Upgrade

    I really wish I could have come up with a more descriptive title for this post, but I don't really know what to call what's going on. I don't even know how to explain it, so I'll let a screenshot do the talking.
    This is what my desktop looks like after the upgrade.
    Last edited by jlacroix (2012-08-08 01:49:16)

    ElderSnake wrote:
    I wish I had a helpful answer for you. Did you delete the .kde4 folder after the upgrade? Of course then you would lose your customizations but it's a common thing after a major upgrade in KDE I think.
    Honestly I never deleted anything though and the upgrade seems to have gone really smoothly, and I have quite a few customizations (which is why I risked trying it without deleting the config folders)
    That used to be the case where you needed to delete the .kde4 folder when upgrading, but the last four major releases didn't require that for me. I'd rather not delete that folder if I don' t have to.
    The problem is on my desktop. My laptop was smooth. I used the same image for both, but the only real difference is that my desktop uses dual monitors. Maybe 4.9 doesn't like that anymore?

  • Remote Desktop Services Error when trying to send a message to a user in the collections

    We are implementing RD for thin clients and when I try to send a message to a user I get an error that states,: Unable to send a message to session X on (SERVER NAME.COM). WTS API Failed
    Is there a service that needs to be turned on?
    Thanks EPK

    Hi,
    Thank you for posting in Windows Server Forum.
    Before sending message please check following considerations.
    - You must have Message special access permission to send a message to a user.
    - You can send messages only to users whose sessions are in the active or connected state.
    - You can send a message to a user session in Remote Desktop Services Manager by using the Send Message action.
    Send a Message to a User
    http://technet.microsoft.com/en-us/library/cc754124.aspx
    Else you can also try below script and check the result.
    Send-NetMessage - Net Send / Msg.exe
    http://gallery.technet.microsoft.com/scriptcenter/Send-NetMessage-Net-Send-0459d235
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • [SOLVED] [KDE4.1] Mucho cpu use with desktop effects enabled

    With KDE4.1rc1+ desktop effects enabled, I'm consistently getting figures of 40-60 percent CPU usage, even when I'm not moving anything around the desktop.
    With desktop effects disabled, CPU use is negligible.
    This is on a Thinkpad T61p with a T9300 2.5GHz C2D processor, 4Gb RAM, nvidia Quadro FX 570M graphics, running Arch64.
    Is this normal?
    Last edited by dhave (2008-08-04 09:31:24)

    Following a suggestion by Pierre, I disabled vsync, which helped dramatically. CPU usage -- with desktop effects enabled -- has dropped from 40-60 percent to < 10 percent, usually around 2-3 percent.
    Vsync can be toggled under System Settings / Desktop Effects / General / Advanced Options. I tried all kinds of other xorg.conf tweaks and nvidia-settings options, but this is the one that really helped (the others, I'm not sure about).
    Several other users have reported the same thing.
    I'm tagging this "solved".
    Last edited by dhave (2008-08-04 09:31:06)

  • How do I get messages to go back to an AIM account? It's only seeing the iPad's Facetime email address and not seeing the old AIM account name that is on my desktop. I am using my iMac using iChat to talk to a newer iMac that doesn't have iChat.

    How do I get messages to go back to an AIM account? It's only seeing the iPad's Facetime email address and not seeing the old AIM account name that is on my desktop. I am using my iMac using iChat to talk to a newer iMac that doesn't have iChat. We had this working using Messages and Facetime (on the new machine) talking to my existing iChat account. One day last week, when Facetime rang, my kids answered on the iPad. Dang! Now it's all fouled up! The new iMac won't see my AIM account name and shows that I'm offline, because the iPad is off. We were able to call using "most recent call" in Facetime, but now I can't go and control that new iMac remotely to help with some email concerns the user is having. I'm trying to not personalize this too much, but it's grandkids talking to Grandma and Mom and Dad trying to solve new machine hiccups. Normally, I could just go in via iChat and control the other machine and troubleshoot, but I can't do it with Facetime only. My buddy list doesn't see  the other computer even though we are connected on Facetime right now. My name is not highlighted for the other computer. What could have gone so wrong?
    Any help would be appreciated.

    How do I get messages to go back to an AIM account? It's only seeing the iPad's Facetime email address and not seeing the old AIM account name that is on my desktop. I am using my iMac using iChat to talk to a newer iMac that doesn't have iChat. We had this working using Messages and Facetime (on the new machine) talking to my existing iChat account. One day last week, when Facetime rang, my kids answered on the iPad. Dang! Now it's all fouled up! The new iMac won't see my AIM account name and shows that I'm offline, because the iPad is off. We were able to call using "most recent call" in Facetime, but now I can't go and control that new iMac remotely to help with some email concerns the user is having. I'm trying to not personalize this too much, but it's grandkids talking to Grandma and Mom and Dad trying to solve new machine hiccups. Normally, I could just go in via iChat and control the other machine and troubleshoot, but I can't do it with Facetime only. My buddy list doesn't see  the other computer even though we are connected on Facetime right now. My name is not highlighted for the other computer. What could have gone so wrong?
    Any help would be appreciated.

  • I have downloaded the latest pages  update on my iPad, but my iMac still has version 4.3 and I cannot find out how to update it only desktop. When I try to send something from my iPad pages to via email to be opened on my desktop in Pages, it won't open P

    I have downloaded the latest pages update on my iPad, but my iMac still has Pages version 4.3, and I cannot find out how to update it on my desktop. When I try to send something from my iPad pages via email to be opened on my desktop in Pages, it won't open in Pages. I get a message that it can't be opened because the version is too old. I sent the document as a PDF and it worked. But I want to be able to use Pages back and forth. HOw do I update the Pages version on my desktop iMac?

    The file format used by the iOS versions of the iWork apps can only be read by the new iWork apps on your Mac - i.e. Keynote 6, Pages 5 & Numbers 3. Those versions for the Mac require Mavericks, OS X 10.9. The "too old" error on a Mac comes if you are trying to open an iWork '08 or earlier file in the newest apps. If you do have the newest apps you can open the files from your iPad.
    If you can't or don't want to upgrade to Mavericks & the newest iWork apps your best option would be to export/share the files from the iPad to a type an older version of iWork can read such as Word, text, Excel, etc.
    Or contact AppleCare. They made this mess, let them fix it.

  • Processing of large number of records using JDBC Sender Channel

    Hi experts,
    We have a JDBC-File scenario where in the tables contain about 500K records on an average.
    I used multimapping to generate a flat file for every 10K. The problem is ..when I start the JDBC Sender CC, the memory goes up and the J2EE engine restarts. In the Sender CC, I gave the Disconnect from the database option too. The query is SELECT * from TABLE and the Update statement is <TEST>. Please help me out how to solve this.
    Regards.

    Hi
    Use the below query,
    // Oracle
    SELECT Statement :      select colname from tblname where rownum<=1000 ;
    // MSSQL
    select top 1000 colname from tblname
    Regards
    Ramg

  • Dual monitors: Independent desktops? (Desktop zooming)

    Hi all,
    I just got a Mac Pro over the weekend. It came loaded with Tiger and a Leopard upgrade disc. I've upgraded to Leopard. I have two 24" Dell 2405FPW LCD monitors attached to the Mac Pro. so, the full desktop size is 3840x1200. Because I am visually impaired, I use the Universal Access Zoom feature a lot.
    Is there a way to make the desktops on each monitor to act more independently? For example, when zoom the desktop, option + up trackballthingy, the whole desktop across both monitors zooms. Lots of times, a window or text field that I'm working with is split between both monitors. It would be very nice to zoom only the desktop on the left monitor and leave the desktop on the right at full scrteen. This way, I could browse the web on the left monitor having the desktop zoomed in and also watch a DVD full screen on the right monitor.
    My WinXP box has a Matrox Parhelia video card. The Matrox video cards have a hardware feature called PixelTOUCH which allows me to zoom the desktop on each display independently of each other.
    Any help will be appreciated.
    Thanks,
    Steven

    Mirroring is already off. My desktop is 3840x1200. The zoom feature zooms the whole 3840x1200 desktop across both monitors which is OK a lot of the time. However, also, a lot of times, I'd like to see only one half of the desktop zoom and leave the other half on the the other display alone at full screen.
    BTW, Leopard does seem to change the zooming behavior somewhat from Tiger. I'll play with various settings to see what I can comp up with.
    Thanks for the suggestion,
    Steven

  • Which Mobile Networks Operator could be used to send SMS through SKYPE in China?

    Which Mobile Networks Operator could be used to send SMS through SKYPE in China?

    I actually found a workable solution, based off of your suggestion.
    Sprint has partnered with Google to integrate native Google Voice onto the iPhone, using your existing Sprint phone number, for free. The only downside is, you loose visual voicemail. But, you can set Google Voice to transcribe my voicemails and send them via email, which I hear can be quite funny when it gets it wrong.
    But, not being a fan of Google's "all or nothing" approach, where they take over all your sms, voicemail, and calls, I opted to set up a free account and use Google Hangouts app to make outgoing calls. Using it this way, with out applying for a Google Voice number, or switching  my Sprint number over to Google, the caller ID just says "No Caller ID", which is ideal, since having an additional phone number pop up, might lead to confusion as to which one to use to contact me.
    So, thanks for pointing me  in  the right direction.  It's not perfect, as I imagine many friends will kick me over to voicemail when the see "no caller ID" pop up on  their phones, but it'll get the job done.
    Problem solved.

  • [Solved] .desktop file not being recognized

    I've got a .desktop file that I created in ~/.local/share/applications but is not showing up.  I thought I remembered how to do this but apparently forgot.  By putting it in ~/.local/share/applications it should show in the menu, right?  I created this, and made it executable:
    [Desktop Entry]
    Type=Application
    Name=cVLC
    GenericName=Media Player
    GenericName[ca]=Reproductor multimèdia
    GenericName[de]=Medienwiedergabe
    GenericName[fr]=Lecteur multimédia
    GenericName[it]=Lettore multimediale
    GenericName[ja]=メディアプレーヤー
    X-GNOME-FullName=Command Line VLC
    Comment=Play movies and songs
    Icon=vlc
    TryExec=clvc
    Exec=vlc %U
    Terminal=false
    Categories=AudioVideo;Audio;Video;Player;TV;
    MimeType=video/dv;video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;application/ogg;application/x-ogg;application/x-matroska;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-wav;audio/x-mpegurl;audio/x-scpls;audio/x-m4a;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;application/vnd.rn-realmedia;audio/x-real-audio;audio/x-pn-realaudio;application/x-flac;audio/x-flac;application/x-shockwave-flash;misc/ultravox;audio/vnd.rn-realaudio;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;image/vnd.rn-realpix;video/vnd.rn-realvideo;audio/x-pn-realaudio-plugin;application/x-extension-mp4;audio/mp4;video/mp4;video/mp4v-es;x-content/video-vcd;x-content/video-svcd;x-content/video-dvd;x-content/audio-cdda;x-content/audio-player;
    Any ideas?
    Last edited by Gen2ly (2012-08-20 02:31:15)

    I don't know what desktop env. you're using but in KDE it looks OK.Even i've never made it executable.
    Edit: Whoops it runs standart vlc
    Last edited by 6ng4n (2012-08-19 22:22:15)

  • Remote desktop for mac decryption using standard RDP Security mechanisms failed code 4498

    Remote desktop for mac decryption using standard RDP Security mechanisms failed code 4498
    i see this error when accessing an email server and it freezes the screen.  This is happening every 2 minutes or so.  any idea what is happening?

    Hi,
    Would you please provide us the log file after the issue occurs for further research.
    Microsoft Remote Desktop -> About Microsoft Remote Desktop -> Send log via email -> Post the log here.
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • [bypassed] Awesome + dbus-send

    I'm running awesome-wm and in .xinitrc I have ck-launch-session launched.
    Also I'm trying to make reboot/halt and suspend/hibernate work through dbus-send.
    But when I run:
    dbus-send --system --print-reply --dest="org.freedesktop.UPower" \
    /org/freedesktop/UPower org.freedesktop.UPower.Suspend
    I receive:
    Error org.freedesktop.UPower.GeneralError: not authorized
    And on:
    dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit"\
    /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
    I receive:
    Error org.freedesktop.ConsoleKit.Manager.NotPrivileged: Not Authorized
    How can this be solved?
    Last edited by m0nhawk (2010-11-06 19:57:04)

    Sorry for bumping this thread, but I couldn't figure out what I need to do to
    fix this problem. I'm running consolekit 0.4.3-2 and still see this problem
    though the bug linked by quigybo is closed.
    My user is in the power group and I start my window manager with:
    dbus-launch --sh-syntax --exit-with-session ck-launch-session awesome
    ck-list-sessions shows me that I have a session active:
    Session2:
    unix-user = '1000'
    realname = '(null)'
    seat = 'Seat3'
    session-type = ''
    active = FALSE
    x11-display = ':0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = FALSE
    on-since = '2011-02-07T20:08:47.873895Z'
    login-session-id = '4294967295'
    Yet, I cannot suspend as a normal user:
    dbus-send --system --print-reply --dest="org.freedesktop.UPower" \
    /org/freedesktop/UPower org.freedesktop.UPower.Suspend
    Error org.freedesktop.UPower.GeneralError: not authorized
    Running the above command as root successfully suspends my computer.
    Am I missing something?

  • [Solved]Desktop Ideas

    I currently run (Stadard X11) Openbox with thunar, conky, and nitrogen. I was wondering as to what I could use to produce a Desktop, so that I could have icons. Any ideas, I don't want GNOME or KDE, I just want the DESKTOP, if I recall correctly nautius(sp?) does provide it, but I would like to keep my Thunar. So all I need is something to act as a layer to provide me with a desktop to place icons on.
    Last edited by heimdal (2009-07-29 22:16:46)

    pcmanfm does it. it is also a file manager, but you can simply use it for desktop icons and keep using thunar for file management.
    Of course there is also iDesk.
    Last edited by Inxsible (2009-07-29 21:12:12)

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

Maybe you are looking for

  • FSCM 6.0 and PI

    Hello Experts, We are planning to implement FSCM 6.0 Credit Management and in our scenario Credit Management ,FI-AR,FI-CA and SD are on same system and same client.I have gone through the installation Note 859998 - Installing SAP Credit Management 6.

  • How to view / edit other users subscriptions to reports via report admin user ?

    Is there a built-in GUI means or power tool to access a list of all the users' subscriptions to reports in SQL 2012 ? It seems that report admin can only view his own subscriptions, same as any other user via "my subscriptions", but no found option f

  • Adobe Flash 11.0

    Hi, being told to install adobe flash 11.0 to watch Iplayer. Downloaded it but does not seem to be recognised, any help please? Thanks

  • Programming for Extended IDOC

    Hi, My purpose is to create an extended IDOC(derived from a basic one) and then fill that Idoc with data through a custom Z program and send it to SAP PI system. So in this case do I have to lookup a user-exit for filling the IDOC or a REPORT program

  • ITunes 7 upgrade - loss of music, or not?

    I would like to upgrade my iTunes to the latest 7.0.2 version, but am worried I'll lose all my songs currently on the previous version of iTunes. These number almost 1500, so could someone kindly tell me what will happen to my songs after upgrading t