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


woensdag 18 december 2019

How to disable the touchpad?

It displays all the input devices connected. Note that they all have an id. 
Run the following command in a terminal:
xinput list
 
 
It displays all the input devices connected. Note that they all have an id. Now use the id to disable it.
xinput set-prop 12 "Device Enabled" 0
 
https://askubuntu.com/questions/65951/how-to-disable-the-touchpad
 
 

zondag 15 december 2019

uninstall of installed files with ./configure,make,make install

How to uninstall files that have been installed with the combination of commands:
./configure,make,make install

To find out where the files are located, you run the command:
make -n install


dinsdag 12 november 2019

Information about packages

Commands to get information about packages:
type -p nmcli
 
dpkg -S /usr/bin/nmcli
 
apt-cache depends network-manager
 
https://askubuntu.com/questions/972596/nmcli-command-not-found-ubuntu-16-04

zondag 30 juni 2019

Autostart programs at bootup

home/name/.config/autostart

Here it is where you place the programs that you want to start at bootup.

 [Desktop Entry]
Type=Application
Exec=/usr/share/terminator/terminator
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=terminator
Name=terminator
Comment[en_US]=
Comment=

Enlarging Libreoffice window completely with command

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