/dotfiles

My current setup and some configuration files

Primary LanguageLua

This repo is a collection of the tools I use and some dotfiles and configuration files for those tools.

Table of contents

  1. Current setup
    1. Linux
    2. Mac

Current setup

Linux

Distro

I currently use Linux Mint as my distro

Terminal

  • Alacritty as the terminal application
  • fish as the shell
    • fisher package manager for fish
    • z fish port of z for directory jumping
  • tmux as the terminal multiplexer
  • DejaVuSansM Nerd Font as the font
  • Tomorrow Night Bright as the fish theme
  • Minimalist as the fish prompt
  • Neovim as terminal editor

Tools

  • Volta for managing JavaScript command-line tool versions.
  • powertop an intel tool for measuring and minimising power consumption
  • TLP a tool for optimizing linux laptop battery life
  • The Fuck a command-line tool to correct your previously inputted console command

powertop

Install powertop with your distro's package manager. e.g.

sudo apt install powertop

If using a laptop you will need to calibrate powertop by running the following command while on battery power. Try to keep the laptop idle while this is happening. It will cycle through different systems and will likely turn on and off your display and wifi.

sudo powertop --calibrate

After calibration powertop will open in interactive mode. In the idle states tab you can see the various c states your processor is in. The higher the c state the more energy efficient the processor is running. There is also a tunable tab that shows recommended settings to improve power efficiency. You can use the following command to set all of these settings to their "Good" state meaning they are in the more power efficient mode.

sudo powertop --auto-tune

To ensure these settings are set every time the system boots enable the powertop service.

systemctl enable powertop

or

systemctl enable powertop.service

I'm not sure which is the correct one or if it's a case where either work.

TLP

TLP is a powerful tool to help optimise battery life. There are plenty of great articles about using it and the config file for TLP is well commented for each setting. In general I would leave most of the settings at their defaults. Out of the box it should help with battery life but has lots of in depth configuration to tailor it to your system.

I've included my current tlp-conf file, this is specific to my laptop. You should always start with the defaults and customise to your system.

Install

sudo apt install tlp tlp-rdw

Enable TLP service

systemctl enable --now tlp.service

Links with more details:

Mac

Terminal

  • iTerm2 as the terminal application
  • fish as the shell
    • fisher package manager for fish
    • z fish port of z for directory jumping
  • tmux as the terminal multiplexer
  • Hack Nerd Font as the font
  • Tomorrow Night Bright as the fish theme
  • Minimalist as the fish prompt
  • Neovim as terminal editor

Tools

  • Volta for managing JavaScript command-line tool versions.
  • The Fuck a command-line tool to correct your previously inputted console command
  • Raycast a smart replacement for MacOS' spotlight tool
  • Karabiner-Elements a keyboard customiser for MacOS