Skip to content

Commit 9d16095

Browse files
committed
feat(arch,fedora): update guides
- arch: update MPV config guide - arch: add pacman hooks config guide - arch: remove clutter in kitty configuration - arch: fix links to other notes - arch: file manager config - arch: use rsync protocol in pacman - fedora: fix command in updating XDG directories Signed-off-by: chris1320 <chris1320is@protonmail.com>
1 parent 83682bc commit 9d16095

File tree

3 files changed

+79
-14
lines changed

3 files changed

+79
-14
lines changed

Operating Systems/Arch Linux/Contents/Manual Customization.md

Lines changed: 70 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ systemctl enable fstrim.timer
138138
These are packages that I always keep in my machine installed. Some of these packages, such as `btop`, `socat`, and `jq` are also required by the customization steps below.
139139

140140
```bash
141-
paru -S tar unzip unrar p7zip zip xz rclone rsync trash-cli \
141+
paru -S tar unzip unrar p7zip zip xz rclone trash-cli \
142142
nfs-utils cifs-utils ntfs-3g exfat-utils gvfs udisks2 \
143143
pfetch btop socat jq yt-dlp tealdeer
144144
```
@@ -210,14 +210,59 @@ flatpak install flathub com.visualstudio.code
210210

211211
I use [Mpv](https://mpv.io/) and [imv](https://sr.ht/~exec64/imv/) to view videos and images respectively.
212212

213-
With Mpv, we are going to use [tomasklaen](https://github.com/tomasklaen)'s [uosc](https://github.com/tomasklaen/uosc) config. These plugins are also used:
213+
```bash
214+
paru -S imv mpv
215+
cp -r ~/Temp/SGDotfiles/imv ~/.config/imv # Copy imv config
216+
```
217+
218+
There two versions of the Mpv configuration file: one for high-end devices and the other for low-end machines. If your device can handle high CPU/GPU usage for better playback quality, copy the `profile-high` directory to `~/.config/mpv`; otherwise, copy the `profile-low` directory.
219+
220+
```bash
221+
cp -r ~/Temp/SGDotfiles/mpv/profile-high ~/.config/mpv # For high-end devices
222+
cp -r ~/Temp/SGDotfiles/mpv/profile-low ~/.config/mpv # For low-end devices
223+
```
224+
225+
With Mpv, I am using [tomasklaen](https://github.com/tomasklaen)'s [uosc](https://github.com/tomasklaen/uosc) config together with these plugins:
214226

215227
- [po5/evafast](https://github.com/po5/evafast): Mpv script for hybrid fast-forward and seeking.
216228
- [rofe33/mpv-copyStuff](https://github.com/rofe33/mpv-copyStuff): Copy to clipboard the filename, full filename path, relative filename path, current video time, current displayed subtitle text, video duration/metadata.
229+
- [po5/thumbfast](https://github.com/po5/thumbfast): High-performance on-the-fly thumbnailer script for mpv.
230+
231+
The config also comes with the following shaders:
232+
233+
- [AMD FidelityFX Super Resolution (FSR) for mpv](https://gist.github.com/agyild/82219c545228d70c5604f865ce0b0ce5): Upscales content up to 4x the original size.
234+
- [AMD FidelityFX CAS](https://gist.github.com/agyild/bbb4e58298b2f86aa24da3032a0d2ee6): AMD FidelityFX Contrast Adaptive Sharpening (CAS) for mpv.
235+
- [SSimDownscaler](https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10): High-quality downscaling of video content. (only available on `profile-high`)
236+
- [KrigBilateral](https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637): Bilateral filter. (only available on `profile-high`)
237+
238+
## Setting Up Paru and Pacman (again)
239+
240+
Since we have Paru now, we can configure Pacman more now. Hooks are scripts that are executed automatically at certain points during the package management process. Create the `/etc/pacman.d/hooks` directory by running the following command:
217241

218242
```bash
219-
paru -S imv mpv
220-
cp -r ~/Temp/SGDotfiles/mpv ~/.config/mpv
243+
sudo mkdir -p /etc/pacman.d/hooks
244+
```
245+
246+
In the newly-created directory, create a new file named `orphans.hook` and paste the following:
247+
248+
```toml
249+
[Trigger]
250+
Operation = Install
251+
Operation = Upgrade
252+
Operation = Remove
253+
Type = Package
254+
Target = *
255+
256+
[Action]
257+
Description = Searching for orphaned packages...
258+
When = PostTransaction
259+
Exec = /usr/bin/bash -c "/usr/bin/pacman -Qtd || /usr/bin/echo '==> no orphans found.'"
260+
```
261+
262+
[informant](https://aur.archlinux.org/packages/informant) makes sure that you are aware of breaking changes in the updates that you'll get. [overdue](https://aur.archlinux.org/packages/overdue) lists daemons that reference outdated libraries. [pacman-cleanup-hook](https://aur.archlinux.org/packages/pacman-cleanup-hook) keeps your pacman cache clean. [downgrade](https://aur.archlinux.org/packages/downgrade), while isn't a pacman hook, will still help you in case you have to downgrade a package.
263+
264+
```bash
265+
paru -S informant overdue pacman-cleanup-hook downgrade
221266
```
222267

223268
## Setting Up SDDM
@@ -334,16 +379,14 @@ Kitty is my terminal emulator of choice. Install it via `paru` to begin.
334379
paru -S kitty
335380
```
336381

337-
Since [June 3, 2024](https://github.com/Chris1320/SetupGuides-ArchLinux/commit/edd1e5b5ea67c42c4da9cbb9d754c025210c652d), I moved dotfiles that are used across multiple operating systems to a separate repository. Because of this, the dotfiles for Kitty is not on [SetupGuides-ArchLinux](https://github.com/Chris1320/SetupGuides-ArchLinux), but rather on [SetupGuides-dotfiles](https://github.com/Chris1320/SetupGuides-dotfiles). You will have to clone the repository where it is located, copy the Kitty configuration file, and enable the Catppuccin colorscheme.
382+
Copy the Kitty configuration file, and enable the Catppuccin colorscheme.
338383

339384
```bash
340385
mkdir -p ~/.config/kitty
341386
cp -r ~/Temp/SGDotfiles/kitty/kitty.conf ~/.config/kitty/kitty.conf
342387
kitty +kitten themes --reload-in=all Catppuccin-Mocha
343388
```
344389

345-
> [!NOTE] You now have two SetupGuides repositories on your `~/Temp` directory.
346-
347390
### Setting Up ZSH
348391

349392
See [[ZSH]] for more information.
@@ -496,7 +539,26 @@ cp -r ./dotfiles/rofi ~/.config/rofi
496539
paru -S hyprlock
497540
```
498541

499-
Since we've [[Setting Up Hyprland|set up Hyprland]], we wouldn't need any additional setup.
542+
Since we've [[#Setting Up Hyprland|set up Hyprland]], we wouldn't need any additional setup.
543+
544+
## Setting Up The File Manager
545+
546+
I chose [Nautilus/GNOME Files](https://wiki.archlinux.org/title/GNOME/Files) as my GUI file manager. It just feels and looks better in my opinion.
547+
548+
```bash
549+
paru -S nautilus \
550+
nautilus-admin-gtk4 nautilus-checksums \
551+
nautilus-open-any-terminal \
552+
file-roller sushi \
553+
tumbler ffmpegthumbnailer \
554+
raw-thumbnailer folderpreview \
555+
gnome-online-accounts \
556+
gvfs-gphoto2 gvfs-mtp gvfs-afc \
557+
gvfs-smb gvfs-dnssd gvfs-nfs \
558+
gvfs-goa gvfs-google gvfs-onedrive
559+
```
560+
561+
Now, you should edit the settings of Nautilus by following [[Fedora Workstation#2. Configuring Nautilus]]. I usually hide some of the XDG directories. Follow [[Fedora Workstation#3. Update XDG Directories]] to do this.
500562

501563
## Setting Up The Browsers
502564

Operating Systems/Arch Linux/Contents/System Installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Use [reflector](https://wiki.archlinux.org/title/Reflector) to rank the mirror s
112112
reflector \
113113
--latest 10 \
114114
--age 18 \
115-
--protocol https \
115+
--protocol https,rsync \
116116
--sort rate \
117117
--save /etc/pacman.d/mirrorlist
118118
```
@@ -138,7 +138,7 @@ pacstrap -K /mnt \
138138
networkmanager-pptp networkmanager-vpnc \
139139
wireless_tools wpa_supplicant ifplugd \
140140
sysfsutils usbutils btrfs-progs e2fsprogs dosfstools lvm2 \
141-
inetutils dhcping traceroute \
141+
inetutils dhcping traceroute rsync \
142142
earlyoom nano less which tree sudo reflector \
143143
dialog man-db man-pages \
144144
git git-lfs xdg-utils xdg-user-dirs
@@ -389,7 +389,7 @@ Edit `/etc/xdg/reflector/reflector.conf` and replace its contents with the follo
389389
```
390390
--latest 10
391391
--age 18
392-
--protocol https
392+
--protocol https,rsync
393393
--sort rate
394394
--save /etc/pacman.d/mirrorlist
395395
```

Operating Systems/Fedora Workstation/Fedora Workstation.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,12 @@ Open Nautilus and open its preferences panel (`CTRL+,`)
242242
I want my home directory to be clean as possible. Dotfiles are everywhere, but fortunately they can be hidden in Nautilus. However, default user directories that I do not frequently visit cannot be hidden. Edit the `~/.config/user-dirs.dirs` file and move the directories to where you want to. Alternatively, you can run the following commands to move the `Desktop/`, `Templates/`, and `Public/` directories inside `~/.desktop/`.
243243

244244
```bash
245-
xdg-user-dirs-update --set XDG_DESKTOP_DIR "$HOME/.desktop/Desktop"
246-
xdg-user-dirs-update --set XDG_TEMPLATES_DIR "$HOME/.desktop/Templates"
247-
xdg-user-dirs-update --set XDG_PUBLICSHARE_DIR "$HOME/.desktop/Public"
245+
mkdir -p ~/.desktop
246+
mv ~/{Desktop,Templates,Public} ~/.desktop
247+
248+
xdg-user-dirs-update --set DESKTOP "$HOME/.desktop/Desktop"
249+
xdg-user-dirs-update --set TEMPLATES "$HOME/.desktop/Templates"
250+
xdg-user-dirs-update --set PUBLICSHARE "$HOME/.desktop/Public"
248251
```
249252

250253
> [!NOTE]- My `xdg-user-dirs` Configuration

0 commit comments

Comments
 (0)