Skip to content

matteyeux/dotfiles

Repository files navigation

dotfiles

Package installation

For default installation : cat default.list | xargs apt install -y For dev installation : cat dev.list | xargs apt install -y

tmux cheat sheet

  • tmux new -s session_name : new named session
  • tmux attach -t session_name : attach an exsiting session
  • tmux switch -t session_name : switch to an existing session
  • tmux list-sessions : list sessions
  • (PREFIX + d) : detach session
  • tmux kill-session -t session_name : destroy session

To copy out of tmux : use shift key

tmux copy mode

This only works with my tmux.conf

  • CTRL-w + m
  • navigate to beginning of text
  • hit space then
  • once done : enter
  • CTRL-w + p

Encrypt/Decrypt file with GPG

  1. Create GPG key : gpg --full-gen-key
  2. Create file : echo secret > secret
  3. Encrypt file : gpg -r mail -e secret
  4. Decrypt : gpg -d secret.gpg

Generate SSH key

Screenshot

  • install gnome-screenshot
  • set save directory to ~/Pictures : gsettings set org.gnome.gnome-screenshot auto-save-directory "file:///home/$USER/Pictures/"

Python tips and tricks

  • man like for modules and classes : python3 -m pydoc docker.utils.build

Git resources

PR test

  • git clone
  • git remote add andrewlanex [email protected]:andrewlanex/babi
  • git fetch andrewlanex
  • checkout to expendtab

Terminal background color

#404552

i3 config

Current wallpaper : here

Setup current DE

Run : sudo apt install fonts-font-awesome numlockx thunar compton rofi feh i3 polybar policykit-desktop-privileges policykit-1-gnome

You can install a different theme, such as the parrot one (available as a deb file in this repo), mais sure to install lxappearance.

Brightness

Install light and run sudo light -A 10 to increase brightness.

Use IDA with Rofi

cp ~/Desktop/IDA\ Freeware\ 7.6.desktop ~/.local/share/applications/

Notes about thinkfan for my Thinkpad T14 Gen 3

Install lm-sensors and thinkfan.

Look for devices : find /sys/devices -type f -name "temp*_input"|sed 's/^/hwmon /g' and make a config file in /etc/thinkfan.conf (see the file in the tree).

Enable fan control :

echo "options thinkpad_acpi fan_control=1" | tee -a  /etc/modprobe.d/thinkfan.conf
modprobe thinkpad_acpi

echo "thinkpad_acpi\ncoretemp" | sudo tee -a /etc/modules

Useful blog : https://blog.monosoul.dev/2021/10/17/how-to-control-thinkpad-p14s-fan-speed-in-linux/

Better use zcfan

Special thanks

About

My dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published