Showing posts with label lxde. Show all posts
Showing posts with label lxde. Show all posts

Wednesday, 23 December 2015

Yakuake terminal global shortcut in Fedora 23 LXDE

Yakuake

Few years ago I felt in love with Yakuake terminal. It's probably because of two main things - at first it's the drop-down feature - you just hit a shortcut and terminal appears/hides. The second one is splitting the screen and seeing several terminals at once.


Yakuake default Open/Retract shortcut is F12, but as I'm a web developer, I use F12 for browser developer toolbar. So for the terminal I started to use F9. (Yes I know that it interfere with debugger shortcut, but I got used to it ;)

Open/Retract shortcut stopped working

Recently I did a fresh install of Fedora 23 LXDE spin and after installation of Yakuake the default F12 wasn't working nor I wasn't able to assign my own global shortcut key (F9).

When I opened the shortcuts settings, selected the global setting for the Open/Retract -> custom -> hit F9  it wasn't assigned. It just changed from "Input ..." to "None" always. I tried also another shortcut but no shortcut was assigned either.

Solution in Openbox window manager

After googling and finding nothing relevant I decided to try different approach.

I had an idea that yakuake command could have a --drop-down parameter or something like that. I started with even more simple method -  just tried to start yakuake command several times. And it worked just as I needed - first yakuake comand started Yakuake in the background, second run of the command opened the terminal and the third hid it, fourth opened it again .... awesome.

So the solution was easy as fedora lxde spin uses the openbox window manager.

Openbox uses simple xml file for configuring global shortcuts. I just added one keybinding for my need.

~.config/openbox/lxde-rc.xml:

    <!-- Keybinding for yakuake dropdown -->
    <keybind key="F9">
      <action name="Execute">
        <command>yakuake</command>
      </action>
    </keybind>

Those settings are loaded during window manager startup therefore I logged out, logged in and tadaaa - problem solved ;)

Thursday, 28 May 2015

Skype opens links in Firefox instead of default browser (Google Chrome) - Fedora 21 LXDE

Check file

~/.local/share/applications/mimeapps.list

make sure that there is

[Default Applications]
text/html=google-chrome.desktop
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop


Also check that google chrome is installed and google-chrome.desktop is in /usr/share/applications/


Pages which helped me to solve it:
- askubuntu.com/questions/79305
- askubuntu.com/questions/96080

Thursday, 5 June 2014

Skype opens links in Firefox instead of default browser (Google Chrome) - Fedora 20 LXDE

I found this solution on the web:
 sudo update-alternatives --config x-www-browser  
And then select wanted browser. But it didn't work for me - it did nothig, no output, nothing to select. (I guessed I had no x-www-browser group)

So I created the "x-www-browser" group in alternatives and set google chrome as my default browser by this command:
 sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/google-chrome 20  

Now when I write
 sudo update-alternatives --list  
I can see that x-www-browser was added.

Also new link was created in "/usr/bin/":
 $ ll /usr/bin/x-www*  
 lrwxrwxrwx. 1 root root 31 Jun 4 10:30 /usr/bin/x-www-browser -> /etc/alternatives/x-www-browser  

And now when I click in skype on a link... it's opened in Chrome ;)