Friday, June 15, 2018

Youtube paste comment in Firefox

about:config

Search:

dom.event

Change

dom.event.clipboardevents.enabled;true

to

dom.event.clipboardevents.enabled;false



Tuesday, May 22, 2018

Fix Firefox downloads files associations

When clicking downloaded files in Firefox they may be opened by the wrong applications.

Source: here.


 

 
When clicking a downloaded file in the list of downloaded files Firefox will use the first program listed in the line application/pdf= of the file usr/share/applications/mimeinfo.cache, which is set not by the default/system settings for that file-type (e.g: the default application for pdf was Okular, but that line was application/pdf=inkscape.desktop;okularApplication_pdf.desktop;, so that Firefox opened the files in Inskape instead of the default Okular.)
A solution is to modify that line or, even better (because that would not be overridden by other newly installed applications) to create a per-user file ~/.local/share/applications/mimeinfo.cache with lines like (example for pdf):

[MIME Cache] 
application/pdf=okularApplication_pdf.desktop;

The disadvantage of the above is that it is a per-file-type setting. To have a solution for all files, use the first commands posted above.

In case that stops working, be sure "Always ask" is selected under `about:preferences` in Firefox and then re-do the steps above.

A more radical change would be to remove the undesired application and/or reinstall the desired application (last installed takes over).
 
cd .local/share/applications/
ln -s mimeapps.list defaults.list


Wednesday, April 4, 2018

Centos - First things to do

- Update the system:

sudo yum update

 - Add access to ntfs partitions

sudo yum install epel-release

sudo yum install ntfs-3g

- Install the adobe repository

sudo yum -y install http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm

- Install adobe-flash:

 sudo yum install flash-plugin

- Install the nux-dextop repository (for smplayer, mpv, vlc etc)

sudo yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
 
- Then, to install the multimedia programs:

sudo yum -y install  smplayer smplayer-themes vlc audacious uget mpv


- The same repo gives access to Adapta theme:
sudo yum install adapta-gtk-theme

Thursday, March 15, 2018

Switch audio outputs

In GTK (works in KDE):


indicator-sound-switcher



sudo apt-add-repository ppa:yktooo/ppa

sudo apt-get update

sudo apt-get install indicator-sound-switcher


In KDE: A WIDGET - Audio Device Switcher

This widget can be installed by adding widgets - selecting to download them, and searching "audio": see image.

Sunday, November 12, 2017

MPV old interface



To get back the old "pseudo-GUI" or OSC ("ON-SCREEN CONTROLLER"),  according to the FAQ here:

Create the file ~/.config/mpv/lua-settings/osc.conf

with the content:

layout=box
seekbarstyle=slider
deadzonesize=0
minmousemove=3

Monday, October 9, 2017

Dark Whisker Menu in Xfce Panel



Edit `~/.gtkrc-2.0` adding this:

style "mydarktheme"
{
base[NORMAL] = "#2B2B2B"
base[ACTIVE] = "#606060"
text[NORMAL] = "#ccc"
text[ACTIVE] = "#fff"
bg[NORMAL] = "#2B2B2B"
bg[ACTIVE] = "#606060"
bg[PRELIGHT] = "#808080"
bg[SELECTED] = "#606060"
fg[NORMAL] = "#ccc"
fg[ACTIVE] = "#fff"
fg[PRELIGHT] = "#fff"
}
widget "whiskermenu-window*" style "mydarktheme"

Inspired by this post.