Skip to content

Instantly share code, notes, and snippets.

@VadimBrodsky
Last active August 11, 2020 12:10
Show Gist options
  • Save VadimBrodsky/b62138bbbbd4817590698a4c40b24627 to your computer and use it in GitHub Desktop.
Save VadimBrodsky/b62138bbbbd4817590698a4c40b24627 to your computer and use it in GitHub Desktop.
arch
pacstrap /mnt base base-devel
pacman -S
openssh
grub
os-prober
linux-headers
linux-lts
linux-lts-headers
wpa_supplicant
wireless_tools
systemctl enable sshd.service
passwd
grub-install --target=i386-pc --recheck /dev/sda
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
grub-mkconfig -o /boot/grub/grub.cfg
localectl set-locale LANG="en_CA.UTF-8"
ip a
dhcpcd
pacman -Sy networkmanager network-manager-applet
systemctl enable NetworkManager
pacman -Sy xf86-input-libinput xorg-server xorg-xinit xorg-server-utils mesa
pacman -Sy virtualbox-guest-utils virtualbox-guest-modules-arch
systemctl enable vboxservice.service
pacman -S lightdm lightdm-gtk-greeter
systemctl enable lightdm
pacman -S mate mate-extra
pacman -Sy sudo
visudo
# %wheel ALL=(ALL) ALL
useradd -m -G wheel -s /bin/bash vadim
passwd vadim
sudo pacman -Syyy
pacman -Ss tmux
sudo pacman -Syu
Useful packages
- i3-gaps: A fork of i3wm tiling window manager with more features, including gap
- i3-status: Generates status bar to use with i3bar, dzen2 or xmobar
- ttf-bitstream-vera
- ttf-croscrore
- noto-fonts
- ttf-hack
- ttf-anonymoous-pro
- ttf-roboto: Google's signature family of fonts
- ttf-ubuntu-font-family: Ubuntu font family
- ttf-fira-mono: Mozilla's monospace typeface designed for Firefox OS
- ttf-liberation: Red Hats Liberation fonts.
- pcmanfm-gtk3: Extremely fast and lightweight file manager (GTK+ 3 version
- sway: i3 compatible window manager for Wayland
- feh: Fast and light imlib2-based image viewer
- rofi: A window switcher, application launcher and dmenu replacement
- rxvt-unicode: A unicode enabled rxvt-clone terminal emulator (urxvt)
- arandr: Provide a simple visual front end for XRandR 1.2.
- xorg-xprop: Property displayer for X
- xorg-xdpyinfo: Display information utility for X
- unzip - For extracting and viewing files in .zip archives
- lxappearance - Feature-rich GTK+ theme switcher of the LXDE Desktop
- fontconfig - A library for configuring and customizing font access
AUR:
- ttf-fantasque-sans-mono: https://aur.archlinux.org/packages/ttf-fantasque-sans-mono/
GTK settings
- ~/.gtkrc-2.0
- ~/.config/gtk-3.0/settings.ini
San Francisco Font
- https://github.com/supermarin/YosemiteSanFranciscoFont
- ~/.local/share/fonts/
i3
- `mod + Enter` - open terminal
- `mod + Shift + q` - close window
- `mod + d` - dmenu application launcher
- `mod + v` - split a window vertically
- `mod + h` - split a window horizontally
- `mod + arrow` - move focus around the windows
- `mod + j/k/l/;` - move focus around the windows
- `mod + a` - move focus to the parent
- `mod + f` - change to fullscreen
- `mod + s` - change to stacking mode
- `mod + e` - change to default, tiling mode
- `mod + w` - change to tabbed mode
- `mod + shift - space` - change to floating more
- `mod + r` - resize mode
- `mod + shift + arrows / jkl;` - move windows around
- `mod + 2` - change to workspace #2, any number 0 - 9
- `mod + shift + 2` - move the window to workspace #2, any number 0 - 8
- `mod + shift + c` - reload config file
- `mode + shift + r` - reload in place
- `mod + shift + e` - log out
config
# Screen lock example
bindsym $mod+shift+x exec i3lock
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
# Sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
# Media player controls
bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# Load app on i3 startup
exec firefox
# Always load app, inlcudes i3 restart
exec_always feh --randomize --bg-fill ~/Wallpapers/*
exec_alwyas xrandr --output VGA-1 --primary --mode 2880x1800 --pos 0x0 --rotate normal --output eDP1 - -scale 2x2
# Use variables in configuration
set $workspace1 "terminals"
# Assign Chromium to workspace 10
assign [class="Chromium"] $workspace10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment