261 lines
6.2 KiB
Markdown
261 lines
6.2 KiB
Markdown
# fixes
|
|
|
|
scripts to help set up KDE, other tweaks.
|
|
|
|
```
|
|
bluetooth bluedevil
|
|
lib32-mangohud
|
|
winetricks
|
|
```
|
|
maybe install for improved controller support
|
|
```
|
|
sudo pacman -S game-devices-udev
|
|
```
|
|
If you're mounting the Windows partition read/write from Linux, Windows should have Fast Startup/hibernation disabled. A hibernated/dirty NTFS filesystem can prevent Linux from mounting it safely; the kernel ntfs3 driver can refuse a dirty volume.
|
|
```
|
|
yay -S ntfs-3g
|
|
```
|
|
grub menu needs to detect windows install in another drive, that needs a conf file edit
|
|
|
|
|
|
archinstall scripts should be in this repo for downloading
|
|
```
|
|
curl -O https://git.baltrust.eu.org/Baltrust/fixes/raw/branch/main/user_configuration.json
|
|
archinstall --config user_configuration.json
|
|
```
|
|
after running archinstall use chroot option and run after.sh script
|
|
```
|
|
curl -O https://git.baltrust.eu.org/Baltrust/fixes/raw/branch/main/after.sh
|
|
chmod +x after.sh
|
|
./after.sh
|
|
```
|
|
|
|
# Pacman eating in pacman/yay
|
|
```
|
|
sudo sed -i '/^# Misc options/a ILoveCandy' /etc/pacman.conf
|
|
```
|
|
|
|
# install yay
|
|
```
|
|
sudo pacman -S --needed git base-devel
|
|
git clone https://aur.archlinux.org/yay.git
|
|
cd yay
|
|
makepkg -si
|
|
```
|
|
|
|
|
|
# Set Up Zsh with Powerlevel10k
|
|
|
|
## 1. Install Everything
|
|
|
|
Install Zsh, Powerlevel10k, plugins, and the Meslo Nerd Font:
|
|
|
|
```bash
|
|
yay -S zsh zsh-theme-powerlevel10k zsh-autosuggestions zsh-syntax-highlighting ttf-meslo-nerd
|
|
```
|
|
|
|
---
|
|
|
|
## 2. Change Your Default Shell to Zsh
|
|
|
|
```bash
|
|
chsh -s /bin/zsh
|
|
```
|
|
|
|
> **Important:** Log out of your account and log back in for the change to take effect.
|
|
|
|
---
|
|
|
|
## 3. Configure Konsole Font
|
|
|
|
In **Konsole**:
|
|
|
|
1. Open **Settings > configure konsole > profiles > new > change command to /usr/bin/zsh**
|
|
2. Go to **Appearance**
|
|
3. Change the terminal font: **Choose:**
|
|
4. Select the installed **MesloLGS Nerd Font**
|
|
5. Apply the changes
|
|
6. make your new profile default: Set as Default
|
|
|
|
The Nerd Font is required for Powerlevel10k's icons and symbols to display correctly.
|
|
|
|
---
|
|
|
|
## 4. Configure `~/.zshrc`
|
|
|
|
Open your Zsh configuration:
|
|
|
|
```bash
|
|
nano ~/.zshrc
|
|
```
|
|
|
|
Paste the following:
|
|
|
|
```zsh
|
|
# ─────────────────────────────────────
|
|
# Powerlevel10k
|
|
# ─────────────────────────────────────
|
|
|
|
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
|
|
|
|
|
# ─────────────────────────────────────
|
|
# Plugins
|
|
# ─────────────────────────────────────
|
|
|
|
# Autosuggestions
|
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
|
|
# Syntax highlighting
|
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
|
|
|
# ─────────────────────────────────────
|
|
# Powerlevel10k configuration
|
|
# ─────────────────────────────────────
|
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
|
|
|
|
# ─────────────────────────────────────
|
|
# Completion
|
|
# ─────────────────────────────────────
|
|
|
|
autoload -Uz compinit
|
|
compinit
|
|
|
|
setopt CORRECT
|
|
setopt AUTO_CD
|
|
|
|
zstyle ':completion:*' completer _complete _approximate
|
|
zstyle ':completion:*' menu select
|
|
|
|
|
|
# ─────────────────────────────────────
|
|
# History
|
|
# ─────────────────────────────────────
|
|
|
|
HISTFILE="$HOME/.zsh_history"
|
|
SAVEHIST=10000
|
|
|
|
setopt APPEND_HISTORY
|
|
setopt SHARE_HISTORY
|
|
setopt HIST_IGNORE_DUPS
|
|
setopt HIST_IGNORE_SPACE
|
|
```
|
|
|
|
---
|
|
|
|
## 4. Configure Powerlevel10k
|
|
|
|
Start Zsh:
|
|
|
|
```bash
|
|
zsh
|
|
```
|
|
|
|
This launches the Powerlevel10k configuration wizard.
|
|
|
|
You can re-run it at any time with:
|
|
|
|
```bash
|
|
p10k configure
|
|
```
|
|
|
|
Your configuration will be saved to:
|
|
|
|
```text
|
|
~/.p10k.zsh
|
|
```
|
|
|
|
---
|
|
|
|
### Useful Commands
|
|
|
|
Reconfigure Powerlevel10k:
|
|
|
|
```bash
|
|
p10k configure
|
|
```
|
|
|
|
Reload your Zsh configuration without restarting the shell:
|
|
|
|
```bash
|
|
source ~/.zshrc
|
|
```
|
|
|
|
Start Zsh manually:
|
|
|
|
```bash
|
|
zsh
|
|
```
|
|
|
|
# SOFTWARE
|
|
|
|
## gaming:
|
|
```
|
|
yay -S coolercontrol-bin lm_sensors lact occt mangojuice goverlay heroic-games-launcher-bin steam polymc-qt5-bin openrgb amdgpu_top umu-launcher wine lib32-vulkan-radeon
|
|
sudo systemctl enable --now coolercontrold
|
|
```
|
|
## razer NEEDS FIXING:
|
|
```
|
|
yay -S openrazer-daemon polychromatic
|
|
```
|
|
## utilities:
|
|
```
|
|
yay -S ark fastfetch gparted gwenview kcalc spectacle plasma-systemmonitor dolphin dolphin-plugins ffmpegthumbs filelight kde-cli-tools kdegraphics-thumbnailers kio-admin konsole purpose tesseract-data-lit tesseract-data-eng dialog
|
|
```
|
|
|
|
## audio/video:
|
|
```
|
|
yay -S mpv nicotine+ open-video-downloader-bin audacity
|
|
```
|
|
# before installing browser:
|
|
```
|
|
echo -e "[Wallet]\nEnabled=false" > ~/.config/kwalletrc
|
|
```
|
|
# browser:
|
|
```
|
|
yay -S brave-bin
|
|
```
|
|
## other:
|
|
```
|
|
yay -S qbittorrent kdeconnect kate discord onlyoffice-bin
|
|
```
|
|
|
|
# Install vencord for discord
|
|
```
|
|
sh -c "$(curl -sS https://vencord.dev/install.sh)"
|
|
```
|
|
|
|
# set up backups with snapper/timeshift
|
|
```
|
|
yay -S snapper btrfs-assistant snap-pac grub-btrfs inotify-tools
|
|
sudo systemctl enable --now grub-btrfsd
|
|
sudo snapper -c root create-config / # generate a root conf file
|
|
sudo grub-mkconfig -o /boot/grub/grub.cfg # load the options in grub menu
|
|
```
|
|
Set up settings manually in btrfs-manager afterwards.
|
|
|
|
# Setting up audio DAC
|
|
```
|
|
chmod +x audio.sh
|
|
./audio.sh
|
|
```
|
|
|
|
# Dolphin corner free space available in location
|
|
|
|
**configure > interface > status & location bars > full width**
|
|
```
|
|
kwriteconfig6 --file ~/.config/dolphinrc --group General --key ShowStatusBar FullWidth
|
|
```
|
|
# gui managers suck, only one usable is pamac-aur
|
|
|
|
# POST SETUP
|
|
|
|
1. change the look of grub with a theme > https://github.com/jacksaur/Gorgeous-GRUB
|
|
2. ventoy usb
|
|
3. teach wine basics, prefix, wine version, winetricks, flags
|
|
4. stuff like flags, goverlay, fps limiter, undervolt
|
|
5. explain swap, compression, zstd
|
|
6. adding apps to aplication search
|