按照wiki走一遍,不行就再来一遍。有可能踩坑:
ntfs-3g udevil
,同时当前用户要增加权限。解决弹出提示输入密码的问题:链接编辑:/etc/pacman.d/mirrorlist
生成地址: https://archlinux.org/mirrorlist/
yay -Ps
现状展示 yay -Qu
查看待升级的包
yay -Sc
清理
查看中文字体: fc-list :lang=zh
可以看到字体名,便于配置软件
pacman -S ttf-dejavu
noto-fonts-cjk
yay -S nerd-fonts-sarasa-mono
自己安装的字体放到 ~/.local/share/fonts
适合阅读和电纸书的字体
声音:安装 alsa-utils 和
pulseaudio。安装 xfce4-pulseaudio-plugin
,面板添加音量图标。
主题: arc-gtk-theme 图标: papirus-icon-theme
配置桌面快捷键:
flameshot gui > win+3
壁纸位置在:~/.local/share/xfce4/backdrops/
【故障】桌面窗口标题栏消失,无法拖动和改变大小,或者面板消失。解决方法:
xfwm4 --replace &
所有的图标在:/usr/share/icons/
查询本机ip: $curl ipinfo.io
alias setproxy="export ALL_PROXY=socks5://127.0.0.1:1080"
alias unsetproxy="unset ALL_PROXY"
aliass ip="curl ipinfo.io"
Uluancher,简单高效。无论用哪个平台都应该又一款趁手的启动器。
支持使用 goldendict $1
来调用 goldendict 查词
解压缩:File Roller ,文件搜索:catfish 。访问共享,安装
gvfs-smb
Firefox 主力可同步,Chrome 备用
Firefox 自定义布局: https://github.com/Dook97/firefox-qutebrowser-userchrome
选择 fcitx5 和 rime ,使用:
比起默认的拼音更适合简体中文用户。一些快捷键:
编辑器用 GIMP,用惯了也还好。看图用 ristretto ,看漫画可以用 MComix
或 Foliate。截图用火焰截图 Flameshot
,截图可以绑定快捷键到 flameshot gui
MPV 主力播放, VLC 可以看网络直播流,也适合播放整个文件夹。音乐播放用 Audacious ,需要编辑音乐信息装一个 Kid3。听在线音乐可以用 Listen 1 音乐播放器 。录音用 yAudacity。
VLC可以批量转换音频视频,也可以订阅 podcast
mpv some-video.mp4 –sub-file=sub1.srt –sub-file=sub2.srt –secondary-sid=2
在线工具合并两个字幕: https://easypronunciation.com/zh/merge-two-subtitle-files-online
mpv调整字幕大小
官方快捷键: https://mpv.io/manual/master/
Calibre 安装好,导入书库。需要编辑epub 可以安装
Sigil,有打包电子书的需要装 pandoc ,安装
yay -S pandoc-bin
pdf浏览就装 Evince ,图形化的PDF剪裁工具 krop
pdftk 1.pdf dump_data output out.txt
pdftk 1.pdf update_info out.txt output new.pdf
pdftk file1.pdf file2.pdf cat output output.pdf
qpdf --empty --pages infile.pdf 1-5 -- outfile.pdf
Typora 收费后,直接全部用 Obsidian 解决笔记问题,markdown无敌。Code-OSS 编辑多个文件,单个文件用系统自带的 mousepad 打开。LibreOffice 或者用腾讯在线文档对付 msoffice 格式。
sudo pacman -S libreoffice-still libreoffice-still-zh-cn
QuiteRss 支持socks5代理,自定义快捷键。之前用了几年Liferea
### 下载
wget / lux-dl / youtube-dl / qbittorrent / AriaNg
阿里云推荐用:阿里云盘小白羊版 https://github.com/liupan1890/aliyunpan
微信,统信 UOS 版有小问题,也可以用下面命令开一个独立窗口。
google-chrome-stable --new-window --app=https://wx.qq.com
坚果云打开后白屏,按照这里的提示,执行:
sudo sed -i 's|webui.enable=true|webui.enable=false|' /opt/nutstore/conf/nutstore.properties
2022.5 坚果云会默认安装轻应用,会自动关联md格式,已放弃。改用 Syncthing
sudo systemctl enable syncthing@laodu.service
sudo systemctl start syncthing@laodu.service
GoldenDict 和 anki 装好每天都用
ssh-keygen -t rsa -C "youremail@example.com"
~.ssh/id_rsa.pub
内容到github-Account settings-SSH
Keys,Title随意~/.local/share/applications
找到 userapp-Telegram
Desktop-xxxx.desktop ,在文件的最后添加一行:
MimeType=application/x-xdg-protocol-tg;x-scheme-handler/tg;
invalid pgp key错误解决 :
$ sudo pacman-key --refresh-keys
pacman -Syu 升级系统 pacman -Syy 同步软件列表 pacman -Scc 清理软件包 pacman -S xxx 安装 pacman -Ss xxx 查询 pacman -R xxx 卸载 pacman -Qs xxx 查询已安装包
编辑 ~/.bashrc
,加入
export PATH=$PATH:/somepath
编辑: /etc/systemd/logind.conf 加入以下两行,实现笔记本合盖挂起系统:
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
然后执行:systemctl restart systemd-logind
使用xfce后默认锁屏是xfce4-screensaver,调用 xflock4,黑屏无提示。卸载掉 xfce4-screensaver ,安装
sudo pacman -S light-locker
yay light-locker-settings
然后在 设置>配置编辑器>xfce4-session>general>LockCommand 加入
light-locker-command --lock
则可以使用 ctrl+alt +L 锁定,返回 lightdm登录界面。可以安装 lightdm-gtk-greeter-settings 进一步美化登录界面。
!!! 问题,关闭笔记本盖子再打开,屏幕会出现
#: ../src/xfpm-power.c:436 msgid “” “None of the screen lock tools ran successfully, the screen will not be locked.” “Do you still want to continue to suspend the system?” msgstr “嘿,所有锁屏工具都不能正常运行呢,所以我就无法锁定屏幕啦。?”
edit /usr/bin/xflock4
奥卡姆剃刀原则说:如无必要、勿增实体。够用好用,还要怎样?
Date: 2022-12-04