Skip to content

YtxCash/Laptop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Settings

Mac

  1. 修饰键
    1. Fn -> CapsLock
    2. Ctrl -> Fn
    3. Option -> Control
    4. Command -> Option
    5. CapsLock -> Command

Windows

ms office install

mklink /D "C:\Program Files\Microsoft Office" "D:\Program Files\Microsoft Office"

apps not in scoop

  1. neovim
  2. wps
  3. Qt
  4. advanced system care
  5. Predator PHN16-72

Manjaro

Boot

dell G3,ssd + ssd;uefi + GPT

Ventoy + Manjaro + Win11

sudo pacman-mirrors -i -c China -m rank
sudo pacman -S yay

SSD

sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer

Software

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

Rime

/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 &

Zsh

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"

GnuCash

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

Tldr

update_cache tldr -u

Qt 6.X

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

Configuration

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published