Konversation/Tips and Tricks: Difference between revisions

    From KDE UserBase Wiki
    (Marked this version for translation)
    m (added keycap tag)
    (5 intermediate revisions by 2 users not shown)
    Line 5: Line 5:
    <!--T:2-->
    <!--T:2-->
    * '''Konversation''' has many built-in scripts to make '''Konversation''' more fun to use. The following scripts come bundled with '''Konversation''':
    * '''Konversation''' has many built-in scripts to make '''Konversation''' more fun to use. The following scripts come bundled with '''Konversation''':
    <!--T:31-->
    ; [[Special:mylanguage/Konversation/Scripts/Media|/media]]
    ; [[Special:mylanguage/Konversation/Scripts/Media|/media]]
    : shows what you play in your media player (several players are supported)
    : shows what you play in your media player (several players are supported)
    <!--T:32-->
    ; /weather
    ; /weather
    : displays weather information if you have KWeather installed and running
    : displays weather information if you have '''KWeather''' installed and running (KDE 3)
     
    <!--T:33-->
    ; /cmd
    ; /cmd
    : runs a command and prints the output - try <code>/cmd uname -a</code>
    : runs a command and prints the output - try <code>/cmd uname -a</code>
    <!--T:34-->
    ; /uptime
    ; /uptime
    : prints the current uptime information of your machine
    : prints the current uptime information of your machine
    <!--T:35-->
    ; /sayclip
    ; /sayclip
    : prints the top entry saved in klipper
    : prints the top entry saved in [[Special:myLanguage/Klipper|Klipper]]
     
    <!--T:36-->
    ; /sysinfo
    ; /sysinfo
    : Shows information about your system.
    : Shows information about your system.
    <!--T:37-->
    ; /fortune
    ; /fortune
    : Shows a random fortune from scripts/fortune.dat
    : Shows a random fortune from scripts/fortune.dat
    Line 23: Line 37:


    <!--T:4-->
    <!--T:4-->
    * You can dcc any link supported by KDE in Konversation. <br>Try <code> /dcc send <nickname> http://www.slashdot.org </code>
    * You can DCC any link supported by KDE in '''Konversation'''. <br />Try <code>/dcc send <nickname> <nowiki>http://www.slashdot.org</nowiki> </code>


    == Kontact Integration == <!--T:5-->
    == Kontact Integration == <!--T:5-->


    <!--T:6-->
    <!--T:6-->
    * You can associate nicks with addressbook entries and track their online status from '''Kontact'''. To do so right click a nick, use <menuchoice>Addressbook Associations -> Choose Contact</menuchoice> and select the addressbook entry you want to associate. And that's it. Now you can see their online status from '''Kontact'''.
    * You can associate nicks with address book entries and track their online status from [[Special:myLanguage/Kontact|Kontact]]. To do so right click a nick, use <menuchoice>Addressbook Associations -> Choose Contact</menuchoice> and select the addressbook entry you want to associate. And that's it. Now you can see their online status from '''Kontact'''.
    * If you install '''kuick''' plugin from ''kdeaddons/konq-plugins'' you can right click a filename choose <menuchoice>Copy To -> Contact</menuchoice>', select one of your online contacts and '''Konversation''' will dcc the file to that contact.
     
    <!--T:38-->
    * If you install '''kuick''' plugin from ''kdeaddons/konq-plugins'' you can right click a filename choose <menuchoice>Copy To -> Contact</menuchoice>, select one of your online contacts and '''Konversation''' will DCC the file to that contact.


    == Nick Completion == <!--T:7-->
    == Nick Completion == <!--T:7-->


    <!--T:8-->
    <!--T:8-->
    *If you chose a nick using tab-completion, the next time you press Tab key Konversation will insert last completed nick automatically.
    *If you chose a nick using tab-completion, the next time you press <keycap>Tab</keycap> key '''Konversation''' will insert last completed nick automatically.
    * You can skip some part of nicks while using nick completion. For example if your bouncer adds ~ prefix to nicks you can add following to your ~/.kde/share/config/konversationrc :
     
    {{Input|1=[Nick Completion]
    <!--T:39-->
    '''PrefixCharacter=~'''}}
    * You can skip some part of nicks while using nick completion. For example if your bouncer adds ~ prefix to nicks you can add following to your ~/.kde/share/config/konversationrc :{{Input|1=<nowiki>[Nick Completion]
    </nowiki>'''PrefixCharacter=~'''}}


    <!--T:9-->
    <!--T:9-->
    :Then it won't take ~ prefix into account while doing nick completion. So to get ~foo you just do fo<tab> and it will complete it to ~foo.You can use any valid string for PrefixCharacter like ~,~d,~df,etc.
    :Then it won't take ~ prefix into account while doing nick completion. So to get ~foo you just do fo<keycap>tab</keycap> and it will complete it to ~foo. You can use any valid string for PrefixCharacter like ~,~d,~df,etc.


    == Sound Notifications == <!--T:10-->
    == Sound Notifications == <!--T:10-->
    Line 49: Line 66:
    <!--T:12-->
    <!--T:12-->
    *Go to <menuchoice>Settings -> Configure Notifications</menuchoice> in the menubar.
    *Go to <menuchoice>Settings -> Configure Notifications</menuchoice> in the menubar.
    <!--T:40-->
    *Select <menuchoice>Someone wrote your nick in a message</menuchoice>.
    *Select <menuchoice>Someone wrote your nick in a message</menuchoice>.
    <!--T:41-->
    *Click the checkbox which says <menuchoice>[ ] Play a sound:</menuchoice> and then use the folder icon to the right of it to select a sound to play.
    *Click the checkbox which says <menuchoice>[ ] Play a sound:</menuchoice> and then use the folder icon to the right of it to select a sound to play.
    You can also choose other types of notifications for other events from this dialog. {{Smiley}}
    You can also choose other types of notifications for other events from this dialog. {{Smiley}}
    Line 57: Line 78:
    <!--T:14-->
    <!--T:14-->
    Stop '''Konversation''', add the following to your ~/.kde/share/config/konversationrc and restart '''Konversation''':
    Stop '''Konversation''', add the following to your ~/.kde/share/config/konversationrc and restart '''Konversation''':
    <!--T:42-->
    {{Input|1=[Themes]
    {{Input|1=[Themes]
      EmotIconTheme=Default
      EmotIconTheme=Default
    Line 67: Line 90:


    <!--T:17-->
    <!--T:17-->
    Open <menuchoice>Settings -> Identities</menuchoice>. Select your identity and goto <menuchoice>Advanced tab/menuchoice> and enter at <menuchoice>Pre-shell command</menuchoice> <code>~/ssh-tunnel.sh</code>
    Open <menuchoice>Settings -> Identities</menuchoice>. Select your identity and goto <menuchoice>Advanced tab</menuchoice> and enter at <menuchoice>Pre-shell command</menuchoice> <code>~/ssh-tunnel.sh</code>


    <!--T:18-->
    <!--T:18-->
    Then create an ''~/ssh-tunnel.sh'' file with something like:
    Then create an ''~/ssh-tunnel.sh'' file with something like:
    <!--T:43-->
    {{Input|<syntaxhighlight lang="php" line>
    {{Input|<syntaxhighlight lang="php" line>
      # Enter your own ssh-tunnel command
      # Enter your own ssh-tunnel command
    Line 77: Line 102:
      sleep 5
      sleep 5
    </syntaxhighlight>}}
    </syntaxhighlight>}}
    <!--T:44-->
    Then <code>chmod +x ~/ssh-tunnel.sh</code> and any network using this identity will set up an ssh tunnel before it connects!
    Then <code>chmod +x ~/ssh-tunnel.sh</code> and any network using this identity will set up an ssh tunnel before it connects!


    <!--T:19-->
    <!--T:19-->
    You have to use ''localhost'' as server and the login-process for the tunnel-server should be automated by ssh-agent and the port only works once so you have to use a different script for each connect. All-in-all maybe its easier to set up the tunnel(s) in '''konsole''' or use a SSL-capable server. [[User:Nobs|nobs]] 11:11, 15 February 2006 (EST)
    You have to use ''localhost'' as server and the login-process for the tunnel-server should be automated by ssh-agent and the port only works once so you have to use a different script for each connect. All-in-all maybe its easier to set up the tunnel(s) in [[Special:myLanguage/Konsole|Konsole]] or use a SSL-capable server. [[User:Nobs|nobs]] 11:11, 15 February 2006 (EST)


    == Importing the mIRC Server List == <!--T:20-->
    == Importing the mIRC Server List == <!--T:20-->


    <!--T:21-->
    <!--T:21-->
    On </translate>[[Special:mylanguage/Konversation/Scripts/Import_mIRC_server_list|<translate><!--T:22-->
    On [[Special:mylanguage/Konversation/Scripts/Import_mIRC_server_list|this page]] you can find a script that will append the contents of mIRC's venerable servers.ini to your '''Konversation''' config file.
    this page</translate>]]<translate> <!--T:23-->
    you can find a script that will append the contents of mIRC's venerable servers.ini to your Konversation config file.


    == Turn on Auto Spell Check == <!--T:24-->
    == Turn on Auto Spell Check == <!--T:24-->
    Line 97: Line 122:


    <!--T:27-->
    <!--T:27-->
    Use </translate>[[Special:mylanguage/Konversation/Scripts/Ghosttrick|<translate><!--T:28-->
    Use [[Special:mylanguage/Konversation/Scripts/Ghosttrick|this]] method to regain ("ghost") your nick upon reconnection to freenode.
    this</translate>]]<translate> <!--T:29-->
    method to regain ("ghost") your nick upon reconnection to freenode.


    <!--T:30-->
    <!--T:30-->
    [[Category:Internet]]
    [[Category:Internet]]
    </translate>
    </translate>

    Revision as of 09:43, 6 August 2011

    Other languages:

    Using Built-in Scripts

    • Konversation has many built-in scripts to make Konversation more fun to use. The following scripts come bundled with Konversation:
    /media
    shows what you play in your media player (several players are supported)
    /weather
    displays weather information if you have KWeather installed and running (KDE 3)
    /cmd
    runs a command and prints the output - try /cmd uname -a
    /uptime
    prints the current uptime information of your machine
    /sayclip
    prints the top entry saved in Klipper
    /sysinfo
    Shows information about your system.
    /fortune
    Shows a random fortune from scripts/fortune.dat

    DCC Tricks

    • You can DCC any link supported by KDE in Konversation.
      Try /dcc send <nickname> http://www.slashdot.org

    Kontact Integration

    • You can associate nicks with address book entries and track their online status from Kontact. To do so right click a nick, use Addressbook Associations -> Choose Contact and select the addressbook entry you want to associate. And that's it. Now you can see their online status from Kontact.
    • If you install kuick plugin from kdeaddons/konq-plugins you can right click a filename choose Copy To -> Contact, select one of your online contacts and Konversation will DCC the file to that contact.

    Nick Completion

    • If you chose a nick using tab-completion, the next time you press Tab key Konversation will insert last completed nick automatically.
    • You can skip some part of nicks while using nick completion. For example if your bouncer adds ~ prefix to nicks you can add following to your ~/.kde/share/config/konversationrc :
      [Nick Completion]
      PrefixCharacter=~
    Then it won't take ~ prefix into account while doing nick completion. So to get ~foo you just do fotab and it will complete it to ~foo. You can use any valid string for PrefixCharacter like ~,~d,~df,etc.

    Sound Notifications

    You can have Konversation notify you with a sound event whenever your name appears in a channel.

    • Go to Settings -> Configure Notifications in the menubar.
    • Select Someone wrote your nick in a message.
    • Click the checkbox which says [ ] Play a sound: and then use the folder icon to the right of it to select a sound to play.

    You can also choose other types of notifications for other events from this dialog.

    Enabling Graphical Emoticons

    Stop Konversation, add the following to your ~/.kde/share/config/konversationrc and restart Konversation:

    [Themes]
     EmotIconTheme=Default
     EnableEmotIcons=true

    Please note that graphical emoticons are formally unsupported and the code is unmaintained.

    Creating an SSH tunnel before connecting

    Open Settings -> Identities. Select your identity and goto Advanced tab and enter at Pre-shell command ~/ssh-tunnel.sh

    Then create an ~/ssh-tunnel.sh file with something like:

     # Enter your own ssh-tunnel command
     ssh -C -N -L 6667:irc.efnet.org:6667 cartman@southpark.com&
     # wait some seconds to establish the tunnel before continuing
     sleep 5
    

    Then chmod +x ~/ssh-tunnel.sh and any network using this identity will set up an ssh tunnel before it connects!

    You have to use localhost as server and the login-process for the tunnel-server should be automated by ssh-agent and the port only works once so you have to use a different script for each connect. All-in-all maybe its easier to set up the tunnel(s) in Konsole or use a SSL-capable server. nobs 11:11, 15 February 2006 (EST)

    Importing the mIRC Server List

    On this page you can find a script that will append the contents of mIRC's venerable servers.ini to your Konversation config file.

    Turn on Auto Spell Check

    Right click the text input line and select Auto Spell Check.

    On-Demand Ghosting

    Use this method to regain ("ghost") your nick upon reconnection to freenode.