Announcement

Collapse
No announcement yet.

Renaming file by clicking on it OSX style

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Renaming file by clicking on it OSX style

    Greetings,

    I was wondering if the famed personalisation of linux / kde would allow for file names to be changed without left clicking or pressing F12 by just clicking and keeping the file name highlighted as in OSX?

    Thanks,

    Michel

    #2
    ...the famed personalisation of linux / kde...
    The sources are free and available so you could tweak your system as much you want to.


    Script option - with multi button mouse

    There is the xbindkeys - man xbindkeys:
    DESCRIPTION
    XbindKeys is a program that grab keys and mouse button events in X and starts associated shell command.
    A blog: http://blog.hanschen.org/2009/10/13/...ith-xbindkeys/

    => Adding to the .xbindkeysrc:

    Code:
    "execute-rename-in-active-dolphin.pl"
    b:2
    The execute-rename-in-active-dolphin.pl:

    Code:
    #!/usr/bin/perl
    
    use strict;
    use warnings;
    
    my $member;
    
    my @dolphins = `qdbus org.kde.dolphin*`;
    chomp (@dolphins);
    foreach $member (@dolphins) {
       my $activeWindow = `qdbus $member /dolphin/Dolphin_1 org.qtproject.Qt.QWidget.isActiveWindow`;
       chomp ($activeWindow);
       if ($activeWindow eq "true") {
          system ("qdbus $member /dolphin/Dolphin_1/actions/rename org.qtproject.Qt.QAction.trigger");
          last;
       }
    }
    What this does ?

    When the second mouse button is clicked the 'rename' is executed in the active Dolphin window.


    More:
    - http://www.freedesktop.org/wiki/Software/dbus/
    - man qdbus
    - http://usrlocalbin.blogspot.fi/2008/...-part-one.html
    - http://techbase.kde.org/Development/...s/Introduction
    Last edited by Rog132; Jun 20, 2014, 02:02 AM.
    A good place to start: Topic: Top 20 Kubuntu FAQs & Answers
    Searching FAQ's: Google Search 'FAQ from Kubuntuforums'

    Comment


      #3
      Thanks, I will have a look at it. Michel

      Comment

      Working...
      X