In no particular order, below is a list of commands/settings I frequently use on my machines. I’m collecting them here to avoid the hours of googling typically involved when I install a distro on a fresh machine.

  • Make current monitor configuration persistent (Gnome display manager; gdm3)

    • # Copy current config to gdm3 default settings
      sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config
      
  • Enable syntax highlighting in less

    • # Syntax highlighting with less
      # Depends on: source-highlight
      export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
      # Set default options: Enable raw control characters and enable line numbers
      export LESS='-RN'
      
  • Restart pipewire (audio service).

    • Sometimes after waking from sleep, I found my audio services we’re not working properly. A quick workaround is to restart the service.

    • systemctl --user restart wireplumber pipewire pipewire-pulse
      
  • Disable split-lock detect: Causes CPU throttling for some games running under proton.

    • # Add kernel boot parameter (For pop_os machines)
      sudo kernelstub -a "split_lock_detect=off"
      # Verify boot option is added
      sudo kernelstub -p
      
    • # Disable split-lock at runtime (Kernel >= 6.2)
      sudo sysctl kernel.split_lock_mitigate=0