dinsdag 28 januari 2020

How to swtich Caps_Lock with Esc

Go to ~/.config/openbox/autostart and then look for the comment ## Disable capslock.
Uncomment the next line and replace it with setxkbmap -option caps:escape.
Reboot and then you have made the switch permanently.

donderdag 16 januari 2020

Libreoffice regex

^$ Finds an empty paragraph.

$ or $0
Adds the string that was found by the search criteria in the Search for box to the term in the Replace with box when you make a replacement.
For example, if you enter "window" in the Search for box and "&frame" in the Replace with box, the word "window" is replaced with "windowframe".
You can also enter an "&" in the Replace with box to modify the Attributes or the Format of the string found by the search criteria.

https://help.libreoffice.org/4.4/Common/List_of_Regular_Expressions

maandag 6 januari 2020

Swapping ESC and Caps Lock for vim

# After having similar issues with some DEs not loading ~/.xinitrc, I avoided xmodmap altogether, went to /usr/share/X11/xkb/symbols and modified the key=>symbol mapping directly.

To do so, I edited the config file for my keyboard located at /usr/share/X11/xkb/symbols. For most keyboards, this should be the pc file.

After opening the file, I manually switched around Escape and Caps_Lock for their respective keys the result is shown below). As this affects how X maps the hardware to the key Symbol, it should work regardless of whether you're on GNOME or i3 or anything like that.

# https://unix.stackexchange.com/questions/199266/how-to-permanently-remap-caps-lock-to-esc-in-x11#426787


Enlarging Libreoffice window completely with command

 You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.