- 修饰键
- Fn -> CapsLock
- Ctrl -> Fn
- Option -> Control
- Command -> Option
- CapsLock -> Command
ms office install
mklink /D "C:\Program Files\Microsoft Office" "D:\Program Files\Microsoft Office"
apps not in scoop
dell G3,ssd + ssd;uefi + GPT
sudo pacman-mirrors -i -c China -m rank
sudo pacman -S yay
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer
yay -S clang llvm lld lldb cmake make tldr gnucash wget git vim postgresql
yay -S google-chrome visual-studio-code-bin
yay -S rustup prettier unzip codespell
yay -S v2raya-bin v2ray
yay -S fcitx5 fcitx5-qt fcitx5-configtool fcitx5-rime fcitx5-gtk
/usr/share/rime-data/build/
vim ~/.xprofile
export INPUT_METHOD=fcitx5
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx5
fcitx5 &
yay -S zsh
chsh -s $(which zsh)
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
/.zshrc ZSH-THEME="simple"
alias ins="yay -S"
alias unins="yay -Rns"
alias up="yay -Syyu"
alias clean="yay -Rns $(pacman -Qdtq)"
alias szsh="source ~/.zshrc"
mkdir GnuCash && cd GnuCash
git clone --depth=1 git@github.com:YtxCash/gnucash.git
cd .. && mkdir gnucash-build && cd gnucash-build
cmake -G Ninja ../gnucash
ninja
ninja check
update_cache tldr -u
when C++ files suffix with ".hh .cc"
If Q_OBJECT is in the foo.h (i.e. QObject is declared in the header file), then in the corresponding foo.cpp add the following command, preferably at the end of the file.
#include "moc_foo.cpp"
If Q_OBJECT is in the foo.cpp (i.e. QObject is declared in the source file), then, again, in the foo.cpp itself add the following command , preferably at the end of the file.
#include "foo.moc"
if want to use Ui in console project, replace Core
with Widgets
in CMakeList.txt
hardware -> input devices -> Keyboard -> advanced -> ctrl positons -> swap ctrl and capslock
hardware -> input devices -> Keyboard -> Hardware -> NumLock on Plasma Startup -> Turn on
workspace -> workspace behavior -> activities -> privacy -> do not remember
yay -Rns firefox
yay -Scc