# 安装并配置 xray
export http_proxy=http://127.0.0.1:10809
export https_proxy=http://127.0.0.1:10809
# SwitchyOmega
https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
sudo pacman -Syu --needed --noconfirm \
emacs alacritty base-devel tmux fcitx5-im fcitx5-rime \
flameshot rofi lsd bat i3-wm feh tig papirus-icon-theme
paru -S visual-studio-code-bin nerd-fonts-noto-sans-mono watchexec jq \
screenkey polybar tokei xclip stylua-bin nutstore-experimental screenfetch \
btop copyq picom xfce-polkit bottom
xfce-polkit
用来程序处理特权请求,i3中需要配置:/usr/lib/xfce-polkit/xfce-polkit
开机运行。bottom 用来看IO等信息,btm
git config --global user.name kaigedong
git config --global user.email dongkaige@gmail.com
git config --global commit.gpgsign true
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
~/.emacs.d/bin/doom install
echo "GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
INPUT_METHOD=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus" >>/etc/environment
cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart/
curl https://getsubstrate.io -sSf | bash -s -- --fast
source ~/.cargo/env
cargo install --force subkey --git https://github.com/paritytech/substrate --version 2.0.2 --locked
cargo install tealdeer ripgrep fd-find lolcat coreutils fnm cargo-update coreutils
tldr --update
# under bash: init fnm
eval "$(fnm env --use-on-cd)" && fnm install 14 && fnm default 14
# nvm
#curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
#export NVM_DIR="$HOME/.nvm"
#[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
#nvm install 14
# emacs 需要安装依赖以format json等
npm install --global prettier @prettier/plugin-php prettier-plugin-solidity prettier-plugin-toml yarn
npm i -g alacritty-themes
# pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
cd ~/.pyenv && src/configure && make -C src
# tmux
git clone https://github.com/gpakosz/.tmux.git ~/.tmux
ln -s -f ~/.tmux/.tmux.conf ~/.tmux.conf
#安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#zsh theme
mkdir -p "$HOME/.zsh"
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
# git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
#zsh plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/sukkaw/zsh-proxy.git ~/.oh-my-zsh/custom/plugins/zsh-proxy
rofi -show combi -combi-modi window,drun,run,ssh -modi combi -show-icons -dpi 180 -icon-theme 'Papirus'
https://extensions.gnome.org/extension/2986/runcat/
https://extensions.gnome.org/extension/3724/net-speed-simplified/
https://extensions.gnome.org/extension/261/kimpanel/
https://extensions.gnome.org/extension/723/pixel-saver/
paru -S dconf-editor # (查看桌面的快捷方式):
# 导航到 /org/gnome/desktop/wm/keybindings 可以看到所有的快捷键。修改对应的即可。
# 也可以通过命令行进行修改:
# 查看快捷键绑定:
dconf read /org/gnome/desktop/wm/keybindings/switch-to-workspace-1
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-5 "['<Super>5']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-6 "['<Super>6']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-7 "['<Super>7']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-8 "['<Super>8']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-9 "['<Super>9']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-10 "['<Super>0']"
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-5 "['<Shift><Super>percent']"
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-6 "['<Shift><Super>asciicircum']"
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-7 "['<Shift><Super>ampersand']"
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-8 "['<Shift><Super>asterisk']"
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-9 "['<Shift><Super>parenleft']"
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-10 "['<Shift><Super>parenright']"
https://winaero.com/enable-hidpi-scaling-firefox/
about:config
– layout.css.devPixelsPerPx
, the default value is -1
, it means follow the system settings
.
You can change it to 1.5
about:config
– accessibility.typeaheadfind.enablesound
, set it to false
.
gcc -c zsh_history_to_utf8.c && gcc zsh_history_to_utf8.o -o zsh_history_to_utf8
cat ~/.zsh_history | ./zsh_history_to_utf8 > zsh_history
python zsh_history_to_fish.py
cat fish_history >> ~/.local/share/fish/fish_history
# 将硬件时间设置为localtime
sudo timedatectl set-local-rtc true
sudo timedatectl set-ntp true
echo "zh_CN.UTF-8 UTF-8" >>/etc/locale.gen
sudo locale-gen
# 查询有哪些共享目录:
smbclient -L //192.168.1.4 -U bobo
在 manjaro 中报错:
❯ smbclient -L //192.168.1.4/ -U bobo
Password for [WORKGROUP\bobo]:
Sharename Type Comment
--------- ---- -------
cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe srvsvc failed with error NT_STATUS_CONNECTION_DISCONNECTED
SMB1 disabled -- no workgroup available
sudo aa-complain /usr/bin/smbd
sudo aa-complain samba-dcerpcd samba-bgqd samba-rpcd samba-rpcd-classic samba-rpcd-spoolss
修复鼠标消失的问题
# sudo nvim /usr/share/wayland-sessions/hyprland.desktop
Exec=env WLR_NO_HARDWARE_CURSORS=1 Hyprland