Tuesday, 24 June 2014

Command/Shortcut to Lock Screen with "away message prompt" in Linux Mint 17 / Cinnamon

If you want to have a shortcut with for locking the screen, but with prompt for lock message, here's what you need to do:

  1. Go to Settings -> Keyboard, then click on Keyboard shortcuts tab


  2. Click on Add custom shortcut button, and enter the following command:
    python /usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.py

    example:
    Screenshot from 2014-06-24 12:41:27

  3. Click Add and then assign it a shortcut.
    For example, the default lock screen shortcut is Ctrl+Alt+L. For the one with prompt, you can assign Ctrl+L.

  4. You're done.
    When you want to lock your screen with a custom "away" message, just press the shortcut you assigned (Ctrl + L)


Screenshot from 2014-06-24 12:47:44

Thursday, 19 June 2014

Install Skype 4.3 in Arch Linux / Manjaro

Hi there,

Skype just released version 4.3 for linux. You can read this article  from OMG Ubuntu! to see what's new in 4.3

Long story short:

  • native notifications

  • UI improvements (new toolbar, better login screen, design changes)

  • floating widget for Call

  • cloud based Group Chat

  • support for PulseAudio 3.0 and 4.0


Currently, the AUR "multilib/skype" package is not upgraded to 4.3. If you don't wish to wait, here's what you must do:

  1. Download Skype -> http://www.skype.com/go/linux (Choose "Dynamic" from distribution dropdown)

  2. Extract the archive
    cd Downloads

    tar -xjf skype-4.3.*


  3. Move the contents of the extracted folder to /opt/skype
    sudo mkdir /opt/skype

    sudo mv skype-4.3.*/* /opt/skype


  4. Edit /usr/bin/skype , and change the exec  command path to exec "/opt/skype/skype" "$@" 
    #!/bin/bash

    LIBDIR="/usr/lib32"

    if [[ -e "$LIBDIR/libv4l/v4l2convert.so" ]]; then
    export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}$LIBDIR/libv4l/v4l2convert.so"
    fi

    if [[ -e "/usr/share/skype/lib/libQtWebKit.so.4" ]]; then
    export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}/usr/share/skype/lib/libQtWebKit.so.4"
    fi

    # exec "$LIBDIR/skype/skype" "$@" # (old one)
    exec "/opt/skype/skype" "$@"


Monday, 9 June 2014

Sublime slack - preformatted text

Changelog in 1.4.5: Whenever you send a code selection (ctrl+alt+u), it is preformatted.

Example:

Screenshot from 2014-06-09 22:12:21