Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e833be8d41 | ||
|
|
09661d9c94 | ||
|
|
458ab2a644 | ||
|
|
6f0d232628 | ||
|
|
952046ff32 | ||
|
|
da0fb8f573 | ||
|
|
c101db7f84 | ||
|
|
4cbe664a8d |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
env
|
||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "dotdrop"]
|
||||||
|
path = dotdrop
|
||||||
|
url = https://github.com/deadc0de6/dotdrop.git
|
||||||
221
README.md
221
README.md
@@ -1,219 +1,2 @@
|
|||||||
# the Software of ArchLinux
|
# dotfiles
|
||||||
|
my linux dotfiles
|
||||||
## install some necessary software
|
|
||||||
|
|
||||||
### after arch install finish
|
|
||||||
|
|
||||||
1. edit the pacman config file in `/etc/pacman.conf`
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo nano /etc/pacman.conf
|
|
||||||
|
|
||||||
# add to the last of the file
|
|
||||||
---------------------------------------------------------------
|
|
||||||
[archlinuxcn]
|
|
||||||
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
|
|
||||||
---------------------------------------------------------------
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
2. import GPG key
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo pacman -S archlinuxcn-keyring
|
|
||||||
```
|
|
||||||
|
|
||||||
3. install yay & paru & other
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo pacman -S yay paru base-devel neovim
|
|
||||||
```
|
|
||||||
|
|
||||||
4. clone config file repository
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git clone https://github.com/IHHII/.dotfiles.git
|
|
||||||
git checkout -b altas origin/altas
|
|
||||||
```
|
|
||||||
|
|
||||||
5. cancel the sudo password and change the environment variable
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo su
|
|
||||||
nvim /etc/sudoers.d/10-installer
|
|
||||||
|
|
||||||
# change file to this #
|
|
||||||
--------------------------------
|
|
||||||
%wheel ALL=(ALL) ALL
|
|
||||||
%lostecho ALL=(ALL) NOPASSWD:ALL
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
nvim /etc/environment
|
|
||||||
|
|
||||||
# change the environment in it #
|
|
||||||
--------------------------------
|
|
||||||
BROWSER=microsoft-edge-stable
|
|
||||||
EDITOR=nvim
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
6. add the alhp source
|
|
||||||
|
|
||||||
- check and install keyring & mirrorlist
|
|
||||||
|
|
||||||
```bash
|
|
||||||
/lib/ld-linux-x86-64.so.2 --help
|
|
||||||
yay -S alhp-keyring alhp-mirrorlist
|
|
||||||
```
|
|
||||||
|
|
||||||
- add following source to `/etc/pacman.conf`
|
|
||||||
|
|
||||||
|
|
||||||
```bash
|
|
||||||
nvim /etc/pacman.conf
|
|
||||||
|
|
||||||
# add before [core] mirror #
|
|
||||||
----------------------------------------
|
|
||||||
[core-x86-64-v3]
|
|
||||||
Include = /etc/pacman.d/alhp-mirrorlist
|
|
||||||
|
|
||||||
[extra-x86-64-v3]
|
|
||||||
Include = /etc/pacman.d/alhp-mirrorlist
|
|
||||||
|
|
||||||
#[community-x86-64-v3]
|
|
||||||
#Include = /etc/pacman.d/alhp-mirrorlist
|
|
||||||
----------------------------------------
|
|
||||||
```
|
|
||||||
|
|
||||||
- update software
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo pacman -Syuu
|
|
||||||
```
|
|
||||||
|
|
||||||
7. oh-my-zsh setup
|
|
||||||
|
|
||||||
- use script to install oh-my-zsh
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
|
||||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
|
||||||
git clone https://github.com/z-shell/F-Sy-H.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/F-Sy-H
|
|
||||||
```
|
|
||||||
|
|
||||||
- replace `.zshrc` file
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
yay -S dotdrop
|
|
||||||
dotdrop --cfg=~/.dotfiles/config.yaml install
|
|
||||||
source ~/.zshrc
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
### install desktop environment
|
|
||||||
|
|
||||||
1. install hyprland
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
sudo pacman -S \
|
|
||||||
hyprland xdg-desktop-portal-hyprland wofi \
|
|
||||||
kitty mako swaylock-effects udiskie thunar btop \
|
|
||||||
polkit-kde-agent waybar-hyprland-git sddm
|
|
||||||
|
|
||||||
yay -S wlogout swww
|
|
||||||
```
|
|
||||||
|
|
||||||
2. install fonts and fcitx5
|
|
||||||
|
|
||||||
- fonts
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
sudo pacman -S \
|
|
||||||
ttf-jetbrains-mono-nerd noto-fonts-emoji wqy-zenhei \
|
|
||||||
wqy-microhei wqy-microhei-lite wqy-bitmapfont
|
|
||||||
```
|
|
||||||
|
|
||||||
- fcitx5
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
sudo pacman -S \
|
|
||||||
fcitx5-im fcitx5-rime fcitx5-chinese-addons \
|
|
||||||
fcitx5-material-color fcitx5-configtool fcitx5-pinyin-zhwiki
|
|
||||||
|
|
||||||
yay -S fcitx5-input-support
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
3. install some tools
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
sudo pacman -S \
|
|
||||||
blueman ufw network-manager-applet timeshift\
|
|
||||||
neofetch github-desktop-bin aria2 motrix \
|
|
||||||
zathura zathura-mu-pdf
|
|
||||||
```
|
|
||||||
|
|
||||||
4. documents view and edit
|
|
||||||
```zsh
|
|
||||||
sudo pacman -S kate okular jupyterlab
|
|
||||||
|
|
||||||
yay -S microsoft-edge-stable visual-studio-code-bin \
|
|
||||||
ttf-wps-fonts wps-office-cn
|
|
||||||
```
|
|
||||||
|
|
||||||
5. develop tools
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
sudo pacman -S \
|
|
||||||
mariadb mariadb-libs \
|
|
||||||
clang go python-pip cargo npm jdk-openjdk
|
|
||||||
|
|
||||||
yay -S jetbrains-toolbox
|
|
||||||
```
|
|
||||||
|
|
||||||
6. install sound
|
|
||||||
|
|
||||||
> have some unknown problem
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
alsa-utils pulseaudio pulseaudio-alsa pamixer pavucontrol
|
|
||||||
```
|
|
||||||
|
|
||||||
7. install note software
|
|
||||||
```zsh
|
|
||||||
yay -S \
|
|
||||||
obsidian nothon-app-enhanced typora-free\
|
|
||||||
logseq-desktop-wayland-bin anytype-bin
|
|
||||||
```
|
|
||||||
|
|
||||||
### other software
|
|
||||||
|
|
||||||
- pacman
|
|
||||||
|
|
||||||
plasma-desktop
|
|
||||||
|
|
||||||
- yay
|
|
||||||
|
|
||||||
aliyunpan-odomu \
|
|
||||||
|
|
||||||
sddm-config-editor-git hyprland-autoname-workspace-git
|
|
||||||
|
|
||||||
### git init
|
|
||||||
git config --global user.name lostecho
|
|
||||||
git config --global user.email 752549025@qq.com
|
|
||||||
git config --global credential.helper store
|
|
||||||
|
|
||||||
### some git repositories
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
git clone https://github.com/selfteaching/the-craft-of-selfteaching.git
|
|
||||||
git clone https://github.com/xiaolai/regular-investing-in-box.git
|
|
||||||
git clone https://github.com/xiaolai/everyone-can-use-english.git
|
|
||||||
git clone https://github.com/xiaolai/time-as-a-friend.git
|
|
||||||
```
|
|
||||||
|
|
||||||
# hyprload
|
|
||||||
curl -sSL https://raw.githubusercontent.com/Duckonaut/hyprload/main/install.sh | bash
|
|
||||||
|
|
||||||
ghp_0ykTi91rAkLtVnxhBcLssmIZaUxVvR2hWODQ
|
|
||||||
|
|||||||
11
config.yaml
11
config.yaml
@@ -11,7 +11,16 @@ dotfiles:
|
|||||||
f_zshrc:
|
f_zshrc:
|
||||||
src: zshrc
|
src: zshrc
|
||||||
dst: ~/.zshrc
|
dst: ~/.zshrc
|
||||||
|
d_oh-my-zsh:
|
||||||
|
src: oh-my-zsh
|
||||||
|
dst: ~/.oh-my-zsh
|
||||||
|
chmod: '751'
|
||||||
|
d_applications:
|
||||||
|
src: local/share/applications
|
||||||
|
dst: ~/.local/share/applications
|
||||||
profiles:
|
profiles:
|
||||||
lostecho-nuc11pahi5:
|
penguin:
|
||||||
dotfiles:
|
dotfiles:
|
||||||
- f_zshrc
|
- f_zshrc
|
||||||
|
- d_oh-my-zsh
|
||||||
|
- d_applications
|
||||||
|
|||||||
1
dotdrop
Submodule
1
dotdrop
Submodule
Submodule dotdrop added at c1ab5cde54
11
dotfiles/local/share/applications/Logseq.desktop
Normal file
11
dotfiles/local/share/applications/Logseq.desktop
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Logseq
|
||||||
|
Exec=/home/lonelinster/Logseq-linux-x64-0.9.11.AppImage
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Icon=~/.local/share/applications/Logseq.png
|
||||||
|
StartupWMClass=Logseq
|
||||||
|
X-AppImage-Version=0.9.11
|
||||||
|
Comment=A privacy-first, open-source platform for knowledge management and collaboration.
|
||||||
|
MimeType=x-scheme-handler/logseq
|
||||||
|
Categories=Utility
|
||||||
BIN
dotfiles/local/share/applications/Logseq.png
Normal file
BIN
dotfiles/local/share/applications/Logseq.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
1
dotfiles/oh-my-zsh
Submodule
1
dotfiles/oh-my-zsh
Submodule
Submodule dotfiles/oh-my-zsh added at fe4b565986
@@ -1,6 +1,5 @@
|
|||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
export PATH="$HOME/bin:/usr/local/bin:$HOME/.cargo/bin:$PATH"
|
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
@@ -72,8 +71,9 @@ ZSH_THEME="zhann"
|
|||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(
|
plugins=(
|
||||||
git
|
#git
|
||||||
sudo
|
sudo
|
||||||
|
#zsh-syntax-highlighting
|
||||||
F-Sy-H
|
F-Sy-H
|
||||||
zsh-autosuggestions
|
zsh-autosuggestions
|
||||||
history-substring-search
|
history-substring-search
|
||||||
@@ -84,6 +84,7 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
# User configuration
|
# User configuration
|
||||||
|
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
export PATH="/home/lonelinster/.local/bin:/home/lonelinster/.cargo/bin:$PATH"
|
||||||
|
|
||||||
# You may need to manually set your language environment
|
# You may need to manually set your language environment
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
@@ -112,34 +113,25 @@ export EDITOR=nvim
|
|||||||
|
|
||||||
# proxy alias
|
# proxy alias
|
||||||
alias proxy="export all_proxy=http://192.168.31.40:7890" # for home network enviroment
|
alias proxy="export all_proxy=http://192.168.31.40:7890" # for home network enviroment
|
||||||
alias proxyl="export all_proxy=http://127.0.0.1:10809" # for home network enviroment
|
|
||||||
alias noproxy="export all_proxy=''" # cancel proxy mode
|
alias noproxy="export all_proxy=''" # cancel proxy mode
|
||||||
|
|
||||||
# dordrop config file alias
|
|
||||||
alias dotdrop="dotdrop --cfg=~/.dotfiles/config.yaml"
|
alias dotdrop="dotdrop --cfg=~/.dotfiles/config.yaml"
|
||||||
|
|
||||||
# config file shortcut
|
# config file shortcut
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
alias vhypr="vim ~/.config/hypr/hyprland.conf" # edit hyprland config
|
alias vz="vim ~/.zshrc" # edit zsh config
|
||||||
alias vzsh="vim ~/.zshrc" # edit zsh config
|
alias sz="source ~/.zshrc" # source the zshrc file
|
||||||
alias szsh="source ~/.zshrc" # source the zshrc file
|
|
||||||
alias hyprloadreload="curl -sSL https://raw.githubusercontent.com/Duckonaut/hyprload/main/install.sh | bash"
|
|
||||||
|
|
||||||
# quick command
|
|
||||||
alias pdf="zathura"
|
|
||||||
|
|
||||||
# remotedesktop
|
# remotedesktop
|
||||||
alias nuc="wlfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:NUC /f"
|
alias remm="remmina -c .local/share/remmina/group_rdp_nuc_43-249-192-204-45561.remmina"
|
||||||
alias nucs="xfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:192.168.31.15 /f"
|
#alias nuc="wlfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:NUC /f /sound"
|
||||||
|
alias nuc="wlfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:192.168.31.15 /f /sound"
|
||||||
|
alias nucx="xfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:43.249.192.204:45561 /f /sound -themes +multitouch -wallpaper"
|
||||||
|
#alias nucx="xfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:43.249.192.204:45561 /f /sound /floatbar:sticky:off,default:hidden,show:window -themes +multitouch /video -wallpaper +nego +smart-sizing"
|
||||||
|
#alias nucwl="wlfreerdp /u:752549025@qq.com /p:nebkij-xevkec-Zyvha9 /v:43.249.192.204:45561 /f /sound /floatbar:sticky:off,default:hidden,show:window -themes -toggle-fullscreen +multitouch /video -wallpaper +nego +smart-sizing"
|
||||||
|
|
||||||
|
# git alias
|
||||||
|
alias gup="git pull --rebase"
|
||||||
|
alias gall="git add . && git commit -a -m 'update' && git push"
|
||||||
|
|
||||||
# install software
|
|
||||||
alias installpac="sudo pacman -S archlinuxcn-keyring yay paru zsh curl \
|
|
||||||
hyprland xdg-desktop-portal-hyprland \
|
|
||||||
kitty dunst swaylock-effects udiskie \
|
|
||||||
polkit-kde-agent wofi waybar-hyprland-git sddm btop \
|
|
||||||
ttf-jetbrains-mono-nerd noto-fonts-emoji wqy-zenhei wqy-microhei wqy-microhei-lite wqy-bitmapfont \
|
|
||||||
alsa-utils pulseaudio pamixer pavucontrol blueman network-manager-applet \
|
|
||||||
fcitx5 fcitx5-rime fcitx5-chinese-addons fcitx5-material-color fcitx5-configtool \
|
|
||||||
obsidian neofetch notion-app-enhanced vscodium-bin "
|
|
||||||
alias installyay="yay -S google-chrome dotdrop swww wlogout logseq-desktop-wayland-bin anytype-bin"
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user