You want to increase the sudo password remember timeout.
sudo visudo“, then add this line to the end:
60 means 60 minutes. If you specify
-1, then the password is never forgotten (which is not a good idea IMO).
Tip from here.
The “Windows key + d” (aka “Super + d”) minimizes all windows, i.e. it shows you the desktop. It works under Windows, it works under Ubuntu, but for some mysterious reason, under Manjaro (XFCE), it’s “Ctrl + Alt + d” that I’ll never get used to.
How to use the well-known “Super + d” shortcut?
There must a keyboard shortcut editor for this, but I never find it. So I created a new shortcut that calls a command-line application that minimizes all windows. This way you get the same result. The command-line command for showing the desktop is “
wmctrl -k on“. You may have to install the package
Go to the Start menu, start typing “keyboard”, and open the Keyboard application. Go to the “Application Shortcuts” tab and add the “Super + d” shortcut to the command “
wmctrl -k on“.
On the YouTube channel of gotbletu I found a very nice trick (video). It explains how to replace the Caps Lock with the so-called Hyper key. And why? Because Caps Lock is pretty useless and you cannot use it for shortcuts. But if you tell the system that at the place of Caps Lock there is another key, namely the Hyper key, then you can use a new range of shortcuts.
You can find my
.Xmodmap file here. Just put it in your HOME folder and upon the next reboot it’ll be activated automatically. To activate it without a reboot, use the command “
Then, under Manjaro (XFCE), go to the Start menu, start typing “keyboard”, and open the Keyboard application. Go to the “Application Shortcuts” tab and add some new shortcuts. This time, when you press Caps Lock, it’ll be recognized as the Hyper key. I added these:
Hyper + g gedit Hyper + k konsole Hyper + f file browser (thunar)
Under Manjaro I had to create the
.Xmodmap file and it is read automatically at each boot. However, under Ubuntu it’s not the case. I tried several methods and here is what worked for me: add “
xmodmap ~/.Xmodmap” to the end of your
~/.bashrc file. Now, when you open a terminal, it’ll be activated for sure.
And if Hyper Hyper, then Scooter, of course:
You find an awesome music video and you want to play it in an infinite loop.
You need to re-format the youtube URL a bit. Sample:
Tip from here.
“Most of the time when we see a code snippet online to do something, we often blindly copy paste it to the terminal.”
Well, the copied text may contain some malicious code. Here is a post about that with a demo.
Autovpn is a nice and simple project to easily connect to a VPN in a country of your choice.
If you need a VPN list, you can find the necessary URL in its source.
Here is a Python implementation too (link).