maandag 16 november 2020

Sleep command and timer

  sleep 10m | pv -t && vlc [song]
  
  Wanneer je een ei wilt koken.                                      

woensdag 14 oktober 2020

How to view fonts on your system

Use the command fc-list and then grep to find the particular font you want

fc-list | grep liberation

dinsdag 29 september 2020

Concatenation of multiple files in the right order


 Is there any way to concatenate multiple text files in numerical order of the file names with one bash command?
A problem arises when you go past the number 9. If you give the ls command, you will get:
file10
file11
file12
file1
file2
file3
file4
file5
file6
file7
file8
file9
So, if you want to cocatenate in order, it won't be done correctly.
What is needed is the sort command, like this:
ls | sort -V | xargs cat *.txt

https://stackoverflow.com/questions/35126745/erge-text-files-ordered-by-numerical-filenames-in-bash

dinsdag 5 mei 2020

zondag 5 april 2020

Librsvg2-bin

The package librsvg2-bin provides a viewer:
rsvg-view-3 [any_svg].svg

maandag 23 maart 2020

Xrandr, arandr, xprop and xev

Xrandr is used to set the size, orientation and/or reflection of the outputs for a screen. It can also set the screen size. A

ArandR is a visual front end for XRandR 1.2 (per display options), which provides full control over positioning, saving and loading to/from shell scripts and easy integration with other applications. 

The xprop utility is for displaying window and font properties in an X server.  One window or font is selected using the command line  arguments or possibly in the case of a window, by clicking on the desired window. A list of properties is then given, possibly with formatting information. 

 xev - print contents of X events.

zondag 22 maart 2020

Arch Linux installeren


1. Preparing the harddisk:
a. to make the partitions: sda1, sda2, swap
b. make filesystem: mkfs.ext4 /dev/sda1
c. mount partition: mount /dev/sda1 /mnt

2. Arch Linux installeren:
pacstrap /mount base base-dev

3. To create personal configurations:
name of the user
the name of the computer
keyboard layout
lanuage
the time-zone

4. Installation of the necessary programs:
bootloader (GRUB)
display server (Xorg)
desktop environment (Gnome, Xfce etc.)
login manager (e.g. lightdm)

5. Reboot


Arch Linux installieren - Was passiert da eigentlich?
https://youtu.be/2Y7-TIii23Y?list=WL

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.