echo $XDG_SESSION_TYPE
sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml
sudo chown gdm:gdm ~gdm/.config/monitors.xml
- for GDM:
sudo machinectl shell gdm@ /bin/bash
echo $XDG_SESSION_TYPE
sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml
sudo chown gdm:gdm ~gdm/.config/monitors.xml
sudo machinectl shell gdm@ /bin/bash
GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=60"
setterm -blank X
(X in minutes) in shell init file (.bashrc
) or /etc/rc.local
.Then, prevent sleep when lid close:
sudoedit /etc/systemd/logind.conf
:
HandleLidSwitch=ignore
"$schema" = 'https://starship.rs/config-schema.json' | |
# Inserts a blank line between shell prompts | |
add_newline = false | |
format = """ | |
[](surface0)\ | |
$os\ | |
$username\ | |
[](bg:peach fg:surface0)\ |
# $HOME/Library/Application\ Support/com.mitchellh.ghostty/config | |
theme = dark:Adwaita Dark,light:Adwaita | |
# theme = Adwaita Dark | |
font-family = "CaskaydiaCove Nerd Font Mono" | |
window-theme = auto | |
window-height = 33 | |
window-width = 110 | |
window-colorspace = display-p3 |
[wsl2] | |
dnsTunneling=false | |
networkingMode=NAT # mirrored | |
dnsProxy=true | |
autoProxy=true | |
firewall=false |
# ~/.config/mpv/input.conf | |
r cycle_values video-rotate 90 180 270 0 |
sudo apt install ibus ibus-rime ibus-gtk ibus-gtk4 ibus-gtk3
sudo apt install ibus-pinyin ibus-sunpinyin
重新login後,在keyboard選擇:
ibus-rime
默認爲繁體,ibus-pinyin
與ibus-sunpinyin
爲簡體。
sudo vim /etc/environment
.plist
to /Library/LaunchDaemons/sudo chown root:wheel
(and sudo chmod 755
) with .plist
file pathsudo launchctl load
with .plist
file pathRef:
patch: | |
"menu/page_size": 8 | |
"translator/enable_user_dict": true | |
"translator/enable_encoder": true #是否开启自动造词〔仅table_translator有效〕 | |
"translator/encode_commit_history": true #是否对已上屛词自动成词〔仅table_translator效〕 | |
"translator/enable_sentence": true #是否开启自动造句 | |
"translator/enable_completion": true #编码逐渐提示开关;编码提示 | |
"translator/enable_charset_filter": true #字符集过滤,低重形码用不着 |