Last active
September 28, 2021 20:08
-
-
Save Nircek/31a787614da8ee0b16394838d9feb1dd to your computer and use it in GitHub Desktop.
Arch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install base system | |
ln -s /usr/share/zoneinfo/Europe/Warsaw /etc/localtime | |
hwclock --systohc | |
pacman -S nano | |
nano /etc/locale.gen | |
# en_US.UTF-8 UTF-8 | |
# pl_PL.UTF-8 UTF-8 | |
locale-gen | |
localectl set-locale LANG=pl_PL.UTF-8 # nano /etc/locale.conf | |
localectl set-locale LANGUAGE=pl_PL | |
nano /etc/vconsole.conf | |
# KEYMAP=pl | |
# FONT=lat2-16 | |
# FONT_MAP=8859-2 | |
nano /etc/hostname | |
nano /etc/hosts | |
# 127.0.0.1 localhost | |
# ::1 localhost | |
# 127.0.1.1 ARCH-laptop-2021 | |
passwd | |
pacman -S base-devel | |
useradd -m nircek # with home dir | |
usermod -aG wheel nircek | |
EDITOR=nano visudo | |
passwd nircek | |
pacman -S grub efibootmgr | |
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=Arch | |
fdisk -l | |
mkdir /mount/ | |
mkdir /mount/sda1 | |
mount /dev/sda1 /mount/sda1 # mount win efi partition | |
nano /etc/default/grub # GRUB_DISABLE_OS_PROBER=false | |
pacman -S os-prober | |
pacman -S intel-ucode | |
grub-mkconfig -o /boot/grub/grub.cfg | |
pacman -S network-manager-applet xf86-video-intel mesa xf86-input-libinput xorg-server | |
pacman -S sddm | |
systemctl enable sddm | |
pacman -S i3-wm dmenu i3status | |
pacman -S xfce4-terminal firefox | |
# reboot | |
nano /etc/X11/xorg.conf.d/30-touchpad.conf # disable natural, https://askubuntu.com/questions/1156192/how-to-enable-tap-to-click-in-libinput-on-ubuntu-19-04-x11-unity | |
localectl set-x11-keymap pl | |
systemctl restart sddm | |
pacman -S pavucontrol pipewire pipewire-{pulse,alsa,jack} # sound | |
# user | |
systemctl start NetworkManager # can enable | |
systemctl --user start pipewire | |
systemctl --user start pipewire-pulse | |
cd /tmp | |
sudo pacman -S git | |
git clone https://aur.archlinux.org/yay.git | |
cd yay | |
makepkg -si | |
yay -Syu | |
yay -S screenfetch | |
screenfetch | |
setxkbmap pl | |
sudo pacman -S zsh | |
chsh | |
sudo pacman -Runs <> | |
sudo pacman -S flameshot | |
sudo pacman -S xorg-xbacklight | |
xbacklight =20 -time 60000 -steps 600 | |
xbacklight -2 -time 60000 -steps 600 | |
nano ~/.config/i3/config | |
sudo pacman -S xorg-xsetroot | |
sudo pacman -S pkgstats | |
sudo systemctl start pkgstats.timer | |
sudo pacman -S visual-studio-code-bin # or code code-marketplace and https://wiki.archlinux.org/title/Visual_Studio_Code#Command_%22...%22_not_found | |
# and gnome-keyring libsecret for liveshare | |
ls -la /etc/xdg/autostart | |
sudo pacman -S i3lock | |
sudo i3lock && echo mem | sudo tee /sys/power/state | |
sudo pacman -S discord | |
sudo pacman -S remmina freerdp | |
ssh-keygen -t ed25519 -C "<>" | |
cat .ssh/id_ed25519.pub | |
git config --global user.email <> | |
git config --global user.name "<>" | |
gpg --import | |
gpg --edit-key m.zepp # trust | |
gpg --edit-key nircek | |
git config --global user.signingkey 93F99DE4C1D27DB264ED91BD38A92C1A795C48A2 | |
echo 'export GPG_TTY=$(tty)' >> ~/.zshrc | |
# https://wiki.archlinux.org/title/Downgrading_packages | |
sudo nano /etc/pacman.conf # IgnorePkg | |
sudo pacman -S docker docker-compose | |
sudo systemctl start docker | |
sudo usermod -aG docker nircek | |
newgrp docker | |
# TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# corrected https://www.posvic.eu/2020/02/exiting-i3-without-mouse/ | |
bindsym $mod+Shift+e exec sh -c '[ $(printf "yes\nno"|dmenu -i -p "Do you really want to exit i3?") = "yes" ] && i3-msg exit' | |
# brightness | |
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 1 | |
bindsym Shift+XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10 | |
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 1 | |
bindsym Shift+XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10 | |
# background | |
exec --no-startup-id xsetroot -solid "#333333" | |
# mod+tab | |
bindsym $mod+Tab workspace back_and_forth | |
# flameshot | |
bindsym Print exec --no-startup-id flameshot gui | |
# beep off | |
exec --no-startup-id xset -b | |
# battery | |
exec --no-startup-id i3-battery-popup -N | |
# monitor | |
exec --no-startup-id xrandr --output eDP1 --auto --output HDMI1 --auto --left-of eDP1 | |
# music | |
bindsym XF86AudioPlay exec --no-startup-id playerctl play | |
bindsym XF86AudioPause exec --no-startup-id playerctl pause | |
bindsym XF86AudioNext exec --no-startup-id playerctl next | |
bindsym XF86AudioPrev exec --no-startup-id playerctl previous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mkdir ~/.config/i3status && cp /etc/i3status.conf ~/.config/i3status/config | |
general { | |
colors = true | |
interval = 5 | |
} | |
order += "wireless _first_" | |
order += "ethernet _first_" | |
order += "cpu_usage" | |
order += "cpu_temperature 0" | |
order += "load" | |
order += "memory" | |
order += "disk /" | |
order += "volume master" | |
order += "read_file brightness" | |
order += "read_file max_brightness" | |
order += "battery all" | |
order += "time" | |
wireless _first_ { | |
format_up = "W: %essid[%quality] %bitrate %ip" | |
format_quality = "%d%s" | |
format_down = "" | |
} | |
ethernet _first_ { | |
format_up = "E: %ip (%speed)" | |
format_down = "" | |
} | |
cpu_temperature 0 { | |
format = "%degrees °C" | |
path = "/sys/class/thermal/thermal_zone1/temp" | |
max_threshold = 42 | |
separator = false | |
} | |
cpu_usage { | |
separator = false | |
} | |
memory { | |
format = "%used (%percentage_used) - %available" | |
threshold_degraded = "1G" | |
format_degraded = "%used USED; MEMORY < %available" | |
} | |
disk "/" { | |
format = "%avail" | |
} | |
volume master {} | |
battery all { | |
format = "%status %percentage %remaining (%emptytime %consumption)" | |
low_threshold = 20 | |
threshold_type = "time" | |
} | |
read_file brightness { | |
path = "/sys/class/backlight/intel_backlight/brightness" | |
format = "%content / " | |
separator = false | |
separator_block_width = 0 | |
} | |
read_file max_brightness { | |
path = "/sys/class/backlight/intel_backlight/max_brightness" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment