keinerweiss.de
2022/04/09

Heureka - Blog

The small success stories are the ones that count.

Solved: Chrome does not store passwords anymore

For some reason my Chrome did not autofill stored passwords anymore.
The list of stored passwords was empty and even when I saved a new password, the next time it would not be autofilled.

Problem: maybe the local database broke.

Solution: Force to reload the list from the Cloud by removing the local database.

Under Linux that is:

cd ~/.config/google-chrome/Default
mv ./Login\ Data-journal ./Login\ Data-journal.bak
mv ./Login\ Data ./Login\ Data.bak

Credits: https://unix.stackexchange.com/questions/538482/chrome-does-not-save-my-passwords

i3: Disable all shortcuts when gaming

I was playing Biomutant and accidentally made it close several times because of the key bindings the game used in busy fight situations.

The use of Q W A S D E, Alt and Shift made me slip to the super key quite often. Super+Shift+Q in my case kills an application. Not so good while fighting.

Solution: modes.

When in a mode, new key bindings apply, which basically disables all usual bindings for the time being.

So I added a mode "play_game" with no bindings except the one to exit the mode (which is the same as how to enter).

I used the Scroll-Lock key which is very far from any key I might press.

bindsym Scroll_Lock mode "play_game"

mode "play_game" {
        bindsym Scroll_Lock mode "default"
}

Add NVIDIA statistics to the i3 bar

nvidia-smi can output various monitoring data.

  • nvidia-smi dmon -c 1 -s p fetch temparature and power once
  • tail -1 use only the last line
  • sed -E 's/ *. *?([0-9]*) *?([0-9]*).*/GPU: \1 Watt @ \2°C/' extract the two numbers into the text to show
[gpu-temp]
command=nvidia-smi dmon -c 1 -s p | tail -1 | sed -E 's/ *. *?([0-9]*) *?([0-9]*).*/GPU: \1 Watt @ \2°C/'
interval=3

I use i3wm and i3blocks here.

sudo apt install i3
sudo apt install i3blocks

You are here: start » keinerweiss.de » Heureka - Blog