Monday, November 9, 2020

Desktop Notification for Audacious in Openbox environment

 First install libnotify, #pacman -S libnotify

Then notification-daemon and create The folders $XDG_DATA_HOME ; in there the folder dbus-1 and in there a folder services; in there the file org.freedesktop.Notifications.service

Edit with leafpad:

[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/notification-daemon-1.0/notification-daemon
Now start the service:
 /usr/lib/notification-daemon-1.0/notification-daemon start &
Test with: notify-send "test"
Now add to /home/username/.config/openbox/autostart
a line with: start /usr/lib/notification-daemon-1.0/notification-daemon &

Be sure to have the Desktop Notifications plugin activated,In Services. Plugins.


Wednesday, July 29, 2020

mpv resume

Mpv player has the option to set resume at latest point reached.
In  /home/user/.config/mpv/ mpv.conf by adding line
save-position-on-quit

Another useful opton is to repeat;add following line
loop-file=yes

Monday, June 8, 2020

qt5ct segmentation fault

Solution:
Back up your Qt5ct config:
 $ mv ~/.config/qt5ct/qt5ct.conf ~/.config/qt5ct/qt5ct.conf.bck 
Start qt5ct:
 $ qt5ct 

Why this  problem?
gtk2 theme didn´t work together with qt5 anymore.
Kept default theme Fusion now.

Wednesday, June 3, 2020

Manjaro borked during update

Even after many years you can experience a strange meltdown during an innocent update.  In Manjaro during updating, which I always do in the terminal using pacman -Syyu because I want to  see the feedback, the post-installation processes like grub updating were going on, when suddenly the login animation of lightdm-plymouth appeared.
Soon was clear that it was stuck in that. Strange was that I noticed no shutdown before that. I was worried that the grubupdate might not have finished and rebooted. Again stuck in the login animation. I use autologin btw. First via Crl+ Alt +F2 I opened a second terminal and did a grub update:#update-grub.
This proved no solution. Most of the time I saw no feedback or error message or so  short that I couldn't extract information. Then I recognised in a short  flash the word plymouth and found out that that lightdm was using plymouth.
In the second terminal I then tried to start lightdm again and xfce was launched.
After doing some reading I decided to get rid of plymouth and lightdm: I want to  know what is going on during the boot process in case of failure.
A very clear write through is to be found here
Repeating the essentials:
in /etc/default/grub remove  word splash from the line GRUB_CMDLINE_LINUX_DEFAULT.

and in /etc/mkinitcpio.conf remove  word plymouth from the line HOOKS.
Now in XFCE via System kernel you can view your installed kernels and do for instance, according to the kernels you have 
#mkinitcpio -p linux54
to rebuild your kernels.
Now we are going to disable lightdm
 #systemctl disable lightdm-plymouth


#rm /etc/systemd/system/display-manager.service
Remove plymouth:
#pacman -R plymouth plymouth-theme-manjaro-elegant
Replace lightdm with lxdm (not necessary, but I like lean applications):
#pacman -S lxdm
with the force flag:
#systemctl enable lxdm -f

At last but essential update grub:
#update-grub

Thursday, January 9, 2020

Set bigger fonts in Qt5 applications

In terminal fire up qt5ct and choose second tab, Fonts, and choose the desired font and size. Further fine tuning by choosing create font.conf will let you make a font.conf file in
/home/username/.config/fontconfig/  and you can set anti-aliasing, and more. You can  increase the dpi value to 128 to increase letter size for example.
To check the dots per inch of your screen use:
xdpyinfo | grep -B 2 resolution
and check out the line resolution.

Optimize for bigger fonts in Firefox

First set zoom to  120% in Settings Zoom. Use Fixed Zoom add on for easy access.
Set fonts in Preferences, fonts and colours. Don't forget to adjust minimal font size in Advanced and untick  "Allow pages to choose their own fonts, instead of your selections above".
Make a Chrome folder in your home/username/.mozilla folder. Download template here and paste in userContent.css:
* {
  line-height: 2em !important;
}
html, body, div, section, article, p, span, th, td {
  line-height: 2em !important;
}
This helps to prevent problems with line spacing.

Friday, January 3, 2020

Set bigger letter size for my fonts in X

My eyes are not getting better with my growing age.
Using a 24-inch monitor I can set big letter sizes for my fonts.
Added to .Xresources in /home/username/
Xcursor.size: 48
Xft.dpi: 120
Reload with:
xrdb ~/.Xresources


Next to that in /home/username/.config/gtk.-3.0/ settings.ini
gtk-font-name=Avenir LT 65 Medium, 22
gtk-cursor-theme-size=48

Blog Archive