My configs
MacOS: brew install stow
Arch based: paru -S stow
Debian based: sudo apt install stow
export DOTFILES="$HOME/.dotfiles"
There should not be en existing file where stow tries to create the symlink
chmod +x ./install && ./install
chmod +x ./clean && ./clean
For debian based distros some installations of the following dependencies might be problematic, being rust programs, these can be installed with cargo
sudo apt install libssl-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install cargo-edit
Ubuntu based distros use an older fish version, this repo fixes it
sudo apt-add-repository ppa:fish-shell/release-3
- fd
- ripgrep
- bat
- Treesitter
Arch based: paru -S fd ripgrep bat tree-sitter
MacOS:
brew install fd rigprep bat
brew install --HEAD tree-sitter
brew install --HEAD luajit
Deiban based:
sudo apt install ripgrep
cargo install bat
cargo install fd-find
cargo install tree-sitter-cli
- Nerd fonts fira code
- Nerd fonts Jetbrans mono
- Noto fonts emoji (for arch)
Unix based:
cargo install font-manger
# Install any font
font-manager install --nerd FiraCode
font-manager install --nerd JetBrainsMono
Arch based: paru -S nerd-fonts-fira-code nerd-fonts-jetbrains-mono noto-fonts-emoji
MacOS:
brew tap homebrew/cask-fonts
brew install --cask font-fira-code-nerd-font
brew install --cask font-jetbrains-mono-nerd-font
curl -LO https://invisible-island.net/datafiles/current/terminfo.src.gz && gunzip terminfo.src.gz
sudo /usr/bin/tic -xe tmux-256color terminfo.src
sudo /usr/bin/tic -xe alacritty-direct,tmux-256color terminfo.src
paru -S sys76-kb
https://github.com/zsa/wally/wiki/Live-training-on-Linux
playerctl
(media controller)xorg-backlight
(brightness intel graphics)- light(brightness amd graphics)
paru -S light
sudo chmod +s /usr/bin/light
paru -S gnome-shell-extension-pop-shell-git chrome-gnome-shell
- Install gcc utilities (for some reason is not present)
sudo dnf install gcc-c++
- Enabel RPM fusion and flathub https://rpmfusion.org/Configuration
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf groupupdate core
sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
sudo dnf groupupdate sound-and-video
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- Gamemodrun for extra perfonmance, run steam games with:
LD_PRELOAD="$LD_PRELOAD:/usr/\$LIB/libgamemode.so.0" gamemoderun %commannd%
Ubuntu based and Fedora work almost out of the box, installing just the drivers, and a switch package.
- Install nvidia-settings and drivers if not already installed
paru -S nvidia nvidia-utils nvidia-settings nvidia-prime
This works almost out of the box, but the configuration is limited
- Install optimus-manager to change gpus
paru -S optimus-manager
-
Copy all optimus-manager files to the respective file on
/etc/optimus-manager/
-
Install drivers for intel/amd gpu if not alreay installed
# For intel
paru -S xf86-video-intel
# For amd
paru -S xf86-video-amdgpu
- If using gnome install gdm-prime, force xorg start
sudo vim /etc/gdm/custom.conf
# uncomment WaylandEnabled=false
- Screen tearing:
nvidia-settings --assign CurrentMetaMode="CONNECTION:RESOLUTION_RATE +0+0 { ForceFullCompositionPipeline = On }"
- Install nvidia-settings and drivers if not already installed
paru -S nvidia nvidia-utils nvidia-settings nvidia-prime
- Install system76-power
paru -S system76-power
sudo systemctl enable --now system76-power.service
- cp AMD config to xorg config
sudo cp ~/.dotfiles/xorg-conf/20-amdgpu.conf /etc/X11/xorg.conf.d/
- stow the bin folder to have the change gpu script
Optimus works out of the box.
- Install nvidia drivers with rpm fusion
sudo dnf update -y
sudo dnf install akmod-nvidia
sudo dnf install xorg-x11-drv-nvidia-cuda #optional for cuda/nvdec/nvenc support
- Window manager: https://github.com/ianyh/Amethyst
brew install --cask amethyst
Currently there is no way to save the configuration the mapping has to be done manually.
- Allow to control computer and start in login
- disable automatic
- Unnatural scroll: https://github.com/ther0n/UnnaturalScrollWheels Allows for different scroll movement between the pane and the mouse
brew install --cask unnaturalscrollwheels
- Move through spaces Settings -> Keyboard -> Keyboard Shortcuts -> mission control -> set to move spaces