Arch mac : Initial setting #3 install gui

arch

After completing the steps up to arch mac: initial setting #2, execute the following contents

Install NetworkManager applet

pacman -S network-manager-applet

An app that manages wifi with GUI

GUI settings from here onward are executed by general users

su username

X11 display

sudo pacman -S xorg-server

Install xorg-xinit

pacman -S xorg-xinit

Required by startx

fcitx mozc Japanese environment installation

sudo pacman -S fcitx fcitx-gtk3 fcitx-qt5 fcitx-configtool fcitx-mozc

sudo micro /etc/X11/xinit/xinitrc

exec xterm -geometry 80x66+0+0 -name login

↓

# exec xterm -geometry 80x66+0+0 -name login

fcitx &
nm-applet &
exec qtile

Change + add last line

To click configtool you can change it with shift + click

startx

bash reference 1 bash reference 2

sudo nano .bash_profile

light -S 10 &

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

Add content at the bottom
light -S 10 part is started, set brithtness to 10%

.bash_profile is a command that is executed only when the user logs in. In this case, bash_profile will execute startx when the general user user logs in.

ターミナル sakura terminal

sudo pacman -S sakura

Ctrl <> Cap change (Optional)

reference

sudo micro ~/.Xmodmap

remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L

Change caps lock to Ctrl

Keyboard settings

sudo micro /etc/X11/xorg.conf.d/10-keyboard.conf

Load Japanese key config

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout"   "jp,us"
        Option "XkbModel"    "jp106"
EndSection

Volume adjustment alsa-utils

sudo pacman -S alsa-utils

amixer sset Master mute

mute

amixer sset Master unmute

Unmute

amixer sset Master 4%-

Decrease volume by 4%

amixer sset Master 3%+

Increase volume by 3%

Touchpad 3-finger drag

yay -S xf86-input-mtrack

1

y

N

y

sudo gpasswd -a username input

Very important to continue functioning after reboot

sudo micro /usr/share/X11/xorg.conf.d/50-mtrack.conf

Section "InputClass"
        MatchIsTouchpad "on"
        Identifier      "Touchpads"
        MatchDevicePath "/dev/input/event*"
        Driver          "mtrack"
        # Tweak cursor movement speed with this
        Option          "Sensitivity" "0.10"
        # Pressure at which a finger is detected as a touch
        Option          "FingerHigh" "10"
        # Pressure at which a finger is detected as a release
        Option          "FingerLow" "10"
        # I often use thumb to press down the physical button, so let's not ignore it
        Option          "IgnoreThumb" "true"
        Option          "ThumbRatio" "70"
        Option          "ThumbSize" "25"
        # Ignore palm, with palm takes up to 30% of your touchpad
        Option          "IgnorePalm" "true"
        Option          "PalmSize" "30"
        # Trigger mouse button when tap: 1 finger - left click, 2 finger - right click, 3 - middle click
        Option          "TapButton1" "1"
        Option          "TapButton2" "3"
        Option          "TapButton3" "2"
        Option          "TapButton4" "0"
        Option          "ClickTime" "25"
        Option          "EdgeBottomSize" "25"
        # Disable tap-to-drag, we're using three finger drag instead
        Option          "TapDragEnable" "false"
        # While touching the touchpad with fingers, press the touchpad physical click button
        Option          "ClickFinger0" "1"
        Option          "ClickFinger1" "1"
        Option          "ClickFinger2" "3"
        Option          "ClickFinger3" "2"
        Option          "ButtonMoveEmulate" "false"
        Option          "ButtonIntegrated" "true"
        # The momentum after scroll fingers released
        Option          "ScrollCoastDuration" "300"
        Option          "ScrollCoastEnableSpeed" ".1"
        # scrolling with two fingers
        Option          "ScrollSmooth" "true"
        Option          "ScrollUpButton" "4"
        Option          "ScrollDownButton" "5"
        Option          "ScrollLeftButton" "6"
        Option          "ScrollRightButton" "7"
        # Tweak scroll sensitivity with ScrollDistance, don't touch ScrollSensitivity
        Option          "ScrollDistance" "150"
        Option          "ScrollClickTime" "10"
        # Three finger drag
        Option          "SwipeDistance" "1"
        Option          "SwipeLeftButton" "1"
        Option          "SwipeRightButton" "1"
        Option          "SwipeUpButton" "1"
        Option          "SwipeDownButton" "1"
        Option          "SwipeClickTime" "0"
        Option          "SwipeSensitivity" "1000"
        # Four finger swipe, 8 & 9 are for browsers navigating back and forth respectively
        Option          "Swipe4LeftButton" "9"
        Option          "Swipe4RightButton" "8"
        # Mouse button >= 10 are not used by Xorg, so we'll map them with xbindkeys and xdotool later
        Option          "Swipe4UpButton" "11"
        Option          "Swipe4DownButton" "10"
        # Mouse buttons triggered by 2-finger pinching gesture
        Option          "ScaleDistance" "300"
        Option          "ScaleUpButton" "12"
        Option          "ScaleDownButton" "13"
        # Mouse buttons trigger by 2-finger rotating gesture, disabled to enhance the pinch gesture
        Option          "RotateLeftButton" "0"
        Option          "RotateRightButton" "0"
EndSection

reference

install VScode

sudo pacman -S code

Install the development app

Install thunar

sudo pacman -S thunar

Install the folder app

USB auto mount settings(optional)

sudo pacman -S gvfs-afc

sudo micro /etc/polkit-1/rules.d/50-udisks.rules

polkit.addRule(function(action, subject) {
var YES = polkit.Result.YES;
var permission = {
// only required for udisks1:
"org.freedesktop.udisks.filesystem-mount": YES,
"org.freedesktop.udisks.filesystem-mount-system-internal": YES,
"org.freedesktop.udisks.luks-unlock": YES,
"org.freedesktop.udisks.drive-eject": YES,
"org.freedesktop.udisks.drive-detach": YES,
// only required for udisks2:
"org.freedesktop.udisks2.filesystem-mount": YES,
"org.freedesktop.udisks2.filesystem-mount-system": YES,
"org.freedesktop.udisks2.encrypted-unlock": YES,
"org.freedesktop.udisks2.eject-media": YES,
"org.freedesktop.udisks2.power-off-drive": YES,
// required for udisks2 if using udiskie from another seat (e.g. systemd):
"org.freedesktop.udisks2.filesystem-mount-other-seat": YES,
"org.freedesktop.udisks2.encrypted-unlock-other-seat": YES,
"org.freedesktop.udisks2.eject-media-other-seat": YES,
"org.freedesktop.udisks2.power-off-drive-other-seat": YES
};
if (subject.isInGroup("storage")) {
return permission[action.id];
}
});

sudo gpasswd -a username storage

username = Change to your own general user

reboot

Font hackgen

hackgen info

git clone https://github.com/yuru7/HackGen.git

sudo mkdir /usr/share/font/hackgen

sudo cp HackGen/build/HackGenConsole-Regular.ttf /usr/share/fonts/hackgen/hackgen-r.ttf

sudo cp HackGen/build/HackGenConsole-Bold.ttf /usr/share/fonts/hackgen/hackgen-b.ttf

Install vivaldi

yay -S vivaldi

Install web browser

7 ttf-ibm-plex

font (I will erase it later)

y

delete font

After installing vivaldi

cd /usr/share/fonts/

sudo rm -r ****

Remove all fonts except hackgen

Install qtile (required)

How to install qtile in Arch linux

.ssh settings (optional) for me

sudo pacman -S openssh

Copy /dev/sda4 .ssh to document root

chmod -R u+xr,go-rwx ~/.ssh

Change permissions to current general user

Backup (Optional)

Arch linux backup

thank you

Thank you for watching until the end. I'm glad if you can use it as a reference.

Thank you for Helping

Give money to us for Amazon gift

We will continue to update useful information. I am delighted to jump to your help. Thank you very much.