Posts

    Showing posts with label gnome. Show all posts
    Showing posts with label gnome. Show all posts

    Thursday, 4 April 2013

    Open with script in Gnome/Ubuntu

    I always liked the feature open with script which was there in old ubuntu. I have no clue why they removed it. However as always in Linux there is always a way to do anything! Today I will show you a simple way( complex than before though ) to do it. Using this I was able to install Picasa Photo Viewer, Logism, yEd, MS Office..etc on my Ubuntu \m/

    Step 1: Find MimeType of the target file (the file you want to open). You can find it in file properties


























    Step2: Download this gist. And make it executable:

    $ chmod +x open_with_script.sh

    Step3: Then run the script and enter necessary details. For example I was trying to install yEd, an awesome Software Engineering Drawing tool. This is what I did:
    NOTE that if the command is <command> <file name> enter as <command> %U





















    Step4: This step is optional. This is to set font to the script. If you don't wanna do it, skip it. Open application called "Main Menu" or alacarte which comes by default in ubuntu. Then search for the script you just added and then set the font.

























    Step5: Now just set the file to open with the script by default if necessary using file properties.


























    Now you can simply open the file using yEd by default. So you are done!!! 

    Saturday, 29 December 2012

    Minimizing all windows to show desktop in gnome 3.5.4

    I Just upgraded to gnome 3.5.4 from gnome 3.4 on Ubuntu and now I feel that it is one of the most buggiest gnome versions ever :(
    Gnome shell extensions are one of the best things ever for me especially when gnome came up with installing extension from their website. But unfortunately for Gnome 3.5.4 almost no extensions in their website support it :'( . And it is extremely hard to install gnome shell extensions from their source.
    One of the most annoying thing is that "Hide all normal windows" feature doesn't seem to work. And bug while changing brightness still not fixed.
    So I have decided to manually fix each of the bugs myself for now.
    Today I will show you how to enable "Show Desktop" or "Hide all normal windows"

    Open Terminal and install xprop and xwit

    sudo apt-get install xprop xwit 

    Download the Gist file which i have created or copy from below and save it as minimize.sh
    Loading ....
    Then open Keyboard shortcuts and create a Custom Shortcut










    Then give a name to the shortcut and in place of command give the link to the script which you just downloaded. Make sure that that file is executable. If not change it using file properties or use chmod.

    Now assign some key for it preferably Super+D

    If you don't  like doing all those there is a docklet called "Show Desktop" for Docky which still works pretty well if you don't mind using your mouse :P