Skip to content

andreas-mausch/manjaro-post-installation-scripts

Repository files navigation

This is a collection of my personal post-installation scripts after a clean Manjaro installation. It is based on the Manjaro XFCE Desktop.

It contains all my favorite apps, settings, fonts etc. Feel free to use and customize them.

This is similar to what other people have in their dotfiles repos, but I'd rather keep the program installation commands together with their configuration. This way I can keep things that are connected, for example git, lazygit, tig, delta, etc., in the same folder.

Install

sudo pacman -Syu
sudo pacman -S base-devel

./post-installation.sh clock pacman shortcuts shell slock slick-greeter boot-animation bluetooth xfce notifications git browser mpv albert calculator vscode fsearch tools image-viewer ebooks wireshark pcspeaker mongo qemu autorandr neovim helix

HiDPI

Here are my HiDPI settings for Xfce.

xfconf-query -c xsettings -np /Gdk/WindowScalingFactor -t int -s 2
xfconf-query -c xfwm4 -np /general/theme -t string -s Default-hdpi
xfconf-query -c xsettings -np /Xft/DPI -t int -s 192

echo "export QT_SCALE_FACTOR=1" >> ~/.profile
echo "export QT_SCREEN_SCALE_FACTORS=2" >> ~/.profile
echo "export QT_AUTO_SCREEN_SCALE_FACTOR=1" >> ~/.profile
echo "export QT_FONT_DPI=96" >> ~/.profile
echo "export GDK_SCALE=\${GDK_SCALE-2}" >> ~/.profile
echo "export GDK_DPI_SCALE=\${GDK_DPI_SCALE-0.5}" >> ~/.profile

For wine, you need to manually set the dpi in winecfg.

External hard drives

Disable UAS

If you have trouble with external USB drives, try to disable UAS.

See these great articles about the details:

Find usb id of the drive:

lsusb --tree --verbose
options usb-storage quirks=0bc2:2322:u

Now run this and reboot:

sudo mkinitcpio --allpresets

Lower dirty bytes

I had some trouble with dirty bytes set too high:

Progress when copying files was not realistic, sometimes stuck. Also, the general performance of some drives was bad.

Fix:

# 52.428.800 = 50 MB
vm.dirty_background_bytes = 52428800
vm.dirty_bytes = 52428800

Track real progress of a file transfer:

watch -n 0.5 grep -e Dirty: -e Writeback: /proc/meminfo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published