Skip to content

yuxqiu/.dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to configure env

General

ssh

  1. ssh configs are all stored in ~/.ssh.
  2. After configuring env, move your 1)known_hosts, 2)private/public keys, and 3)config to the new env.

vim-plug

  1. Follow the instruction here.

rustup

  1. Install rustup.

stew

  1. Install stew.
  2. Install binaries managed by stew using Stewfile.

Linux (Fedora)

General

  1. Use config/dnf to restore all the installed packages.
  2. Install OpenSnitch
  3. Install fcitx
    • Remember to set environment variables for IM modules.
  4. Install sway-related stuffs
    • sudo dnf groupinstall "Sway Desktop" on Fedora.
    • wofi/.config/wofi/launch is derived from reddit.
    • sway/.config/sway/autotiling is derived from autotiling.
  5. Use config/flatpak to restore all the flatpak apps.
  6. Stop abrt [Optional].
    1. Disbale auto-reporting.
    2. Disbale abrt related service: 1 and 2.
  7. Themes
    • Make sure gnome-themes-extra is installed.
    • Use nwg-look to adjust the theme for gtk apps.
    • You might also need to copy ~/.config/gtk-3.0 to ~/.config/gtk-4.0.
    • For qt apps, follow the settings here.
  8. SDDM
  9. Custom Desktop File
    • Use desktop-file-install to install desktop file
    • Use xdg-mime to set default app

DoH

  1. Install dnscrypt-proxy and follow README-stow to setup config file.
  2. Disable and Stop systemd-resolved by following this guide.
  3. Setup the network-manager config by following README-stow.
  4. Restart NetworkManager by following this guide again.

Know Issues

  1. Flatpak
  2. Implement org.freedesktop.portal.OpenURI
    • xdg-desktop-portal-wlr does not support OpenURI.
    • If you are using sway, install xdg-desktop-portal-gtk directly as in /usr/share/xdg-desktop-portal/sway-portals.conf, default is set to use gtk backend (for most of the interfaces).
  3. Others
    • wlroot
      • no displaylink support: issue
      • no individual window sharing support: issue
    • vscode
      • no IME support under wayland: issue
    • Obsidian
      • When running on wayland, IME does not work. Passing enable-wayland-ime does not work -> Run on XWayland
    • sway
      • IME popup support: background and pr (merged, but not released)
      • ICC profile support: pr(merged, but not released)
    • NetworkManager
      • no way to randomize hostname: issue
    • systemd-resolved

Notes

  1. sway/.config/sway/inputs is marked to ignore future updates as I want to keep the data in it private.
  2. I have problems connecting to my mouse via BlueTooth sometimes. I follow this guide to solve the issue.

MAC

General

  1. Set caps lock to escape
  2. Run xcode-select install
  3. Clone this repository
  4. Install brew and restore all softwares via bundle
    • First, install native brew
    • (Optional): if using M1 Mac, can use arch --x86_64 /bin/zsh to run a x86 shell and install a x86 brew. This is required if you want to install x86 Python via pyenv.
  5. Install oh-my-zsh
  6. Install other dependencies as listed below
  7. Symlinks all the stuff by using stow: stow [file]

brew

  1. To export, run brew bundle dump
  2. Turn analytics off brew analytics off
  3. Run brew bundle --file ./config/Brewfile to restore the installed formula
  4. For the following tasks, we need to run some scripts manually
    • Java: follow the instruction here