понеделник, 14 май 2018 г.

How to check what display-manager your using?

The default answer is to do:
$cat /etc/X11/default-display-manager
but that doesn't work on Gentoo.

returns "default" which obviously is not very useful.

So what worked for me is either:
$cat /etc/systemd/system/display-manager.service
$systemctl status display-manager
In my case, it's lightdm and  lightdm.service.

неделя, 6 май 2018 г.

How to change the screen brightness konsole

Simple, do:
$echo 500 | sudo tee /sys/class/backlight/intel_backlight/brightness

Where one can check the max brightness with:
$cat /sys/class/backlight/intel_backlight/max_brightness
and the actual one with:
$cat /sys/class/backlight/intel_backlight/actual_brightness
$cat /sys/class/backlight/intel_backlight/brightness
(the controls for the keyboard should be in
/sys/class/leds/*kbd_backlighbut they are not)
A good scrpit that might help if the controls were available. 
More ideas can be found here (like using xrandr or $ sudo setpci -s 00:02.0 F4.B=80

четвъртък, 19 април 2018 г.

How to export/import passwords in Chrome and Opera

I was shocked (literally, lol) to realise that copying my Opera and Chrome config folders didn't retrieve my passwords. Luckily it turned out there is a way to do that.
There are sections
Password export
Password import
which allow you to import and export your passwords. You need:
1.  Enable the export on your old laptop  (opera://flags/?search=password#password-export)
2. Relaunch the browser so that the settings take effect
3. From Manage passwords - check the dots on top of your passwords and choose Export to file
4. Copy the file to your new laptop
5. Enable the import of passwords (opera://flags/?search=password#password-import)
6. Relaunch
7. From Manage Passwords choose Import.
And there you go, your precious passwords are there.
It's a good idea afterwards to disable both the import and the export and to delete the csv files. For your own security.