Cheat Sheet of the commands I use

  1. Intro
    1. Screen
      1. Set resolution as auto
      2. Display on second monitor
      3. Switch intel/NVIDIA GPU
    2. Audio
      1. Control pannel
      2. Music
    3. Wifi
      1. Connect to a network
      2. Show UUID
    4. Battery
      1. TLP

Intro

It's mostly usefull for me.
I will put some commands here and delet them later if I can remember them.

Screen

Set resolution as auto

xrandr --output eDP-1 --auto

Display on second monitor

xrandr --output HDMI-1-0 --auto --right-of eDP-1

Switch intel/NVIDIA GPU

optimus-manager --switch integrated, nvidia, hybrid, intel

Audio

Control pannel

pavucontrol

Music

mpd (start the server)
ncmpcpp

Wifi

Connect to a network

nmcli dev wifi connect “NAME” password “PASS”

Show UUID

nmcli con show (not usefull, I can see it with polybar)

Battery

TLP

tlp-stat
/etc/tlp.conf