memos
This commit is contained in:
15
.memo/dolphin-foreground.md
Normal file
15
.memo/dolphin-foreground.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
WM 下 Dolphin 的前景色可能会很奇怪,在 .config/dolphinrc 中添加以下内容可以解决:
|
||||||
|
|
||||||
|
```conf
|
||||||
|
[UiSettigs]
|
||||||
|
ColorScheme=<name>
|
||||||
|
```
|
||||||
|
|
||||||
|
例如<s>大家都喜欢的</s>猫布奇-抹茶-蓝
|
||||||
|
|
||||||
|
```conf
|
||||||
|
[UiSettigs]
|
||||||
|
ColorScheme=Catppuccin Mocha Blue
|
||||||
|
```
|
||||||
|
|
||||||
|
colorscheme 名(大概)可以在 `~/.local/share/color-schemes/`下的文件中查看。
|
||||||
@@ -3,8 +3,8 @@ things I have installed:
|
|||||||
full KDE Plasma 6 setup # not essential for sure
|
full KDE Plasma 6 setup # not essential for sure
|
||||||
which can provide:
|
which can provide:
|
||||||
SDDM theme # Breeze is enough
|
SDDM theme # Breeze is enough
|
||||||
kcalc/kalc # calculator(s)
|
kcalc/kalc # calculator(s), what's the difference?
|
||||||
kcolorchooser # works smoothly on hyprland
|
kcolorchooser # or hyprpicker
|
||||||
pipewire & friends
|
pipewire & friends
|
||||||
...
|
...
|
||||||
|
|
||||||
@@ -14,31 +14,28 @@ hyprpaper
|
|||||||
hypridle
|
hypridle
|
||||||
hyprlock
|
hyprlock
|
||||||
hyprshot
|
hyprshot
|
||||||
hyprlicker # kcolorchooser also works though
|
hyprpicker
|
||||||
hyprland-plugin-hyprexpo # scale workspaces and put them in a grid
|
hyprland-plugin-hyprexpo # scale workspaces and put them in a grid
|
||||||
|
|
||||||
# xdg-desktop-portal*
|
# xdg-desktop-portal*
|
||||||
xdg-desktop-portal
|
xdg-desktop-portal
|
||||||
xdg-desktop-portal-kde # Dolphin as file picker (change value of widget.use-xdg-desktop-portal.file-picker in about:config if not working correctly in firefox)
|
xdg-desktop-portal-kde # Dolphin as file picker (for firefox, change value of widget.use-xdg-desktop-portal.file-picker in about:config if not working correctly)
|
||||||
xdg-desktop-portal-hyprland # not working with my Intel iGPU, but fine with NVIDIA dGPU
|
xdg-desktop-portal-hyprland # not working with my Intel iGPU, but fine with NVIDIA dGPU
|
||||||
|
|
||||||
# terminal emulator(s)
|
# terminal emulator(s)
|
||||||
kitty # normal terminal
|
kitty # normal terminal
|
||||||
ghostty # floating terminal, for btop for example#
|
ghostty # floating terminal, for btop for example
|
||||||
|
|
||||||
# under surface
|
# under surface
|
||||||
mako # notification daemon
|
mako # notification daemon
|
||||||
gnome-keyring # --password-store=gnome-libsecret
|
gnome-keyring # --password-store=gnome-libsecret
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
cliphist # clipboard history
|
cliphist # clipboard history
|
||||||
network-manager-applet # nm-applet
|
|
||||||
slurp # region selector
|
slurp # region selector
|
||||||
wf-recorder # screen recorder
|
wf-recorder # screen recorder
|
||||||
brightnessctl
|
brightnessctl
|
||||||
playerctl
|
playerctl
|
||||||
pamixer
|
pamixer
|
||||||
qt5ct
|
|
||||||
qt6ct
|
|
||||||
|
|
||||||
# GUI
|
# GUI
|
||||||
waybar
|
waybar
|
||||||
@@ -46,6 +43,7 @@ eww
|
|||||||
wlogout
|
wlogout
|
||||||
rofi(-wayland)
|
rofi(-wayland)
|
||||||
mpv
|
mpv
|
||||||
|
network-manager-applet # nm-applet
|
||||||
blueman # bluetooth GUI & applet
|
blueman # bluetooth GUI & applet
|
||||||
pavucontrol
|
pavucontrol
|
||||||
gnome-text-editor # or kwrite, just notepad replacement
|
gnome-text-editor # or kwrite, just notepad replacement
|
||||||
@@ -62,6 +60,9 @@ spicetify # spotify tweaks
|
|||||||
spicetify-maketplace # spotify themes
|
spicetify-maketplace # spotify themes
|
||||||
nwg-look # theme of GTK apps
|
nwg-look # theme of GTK apps
|
||||||
catppuccin-gtk-theme-mocha # theme of GTK apps
|
catppuccin-gtk-theme-mocha # theme of GTK apps
|
||||||
|
kvantum
|
||||||
|
qt5ct
|
||||||
|
qt6ct
|
||||||
|
|
||||||
# utils
|
# utils
|
||||||
bc
|
bc
|
||||||
29
.memo/logi-mouse-suspend.txt
Normal file
29
.memo/logi-mouse-suspend.txt
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
虽然不是很确定发生了什么,但总归记录一下
|
||||||
|
|
||||||
|
问题:
|
||||||
|
休眠后立即唤醒
|
||||||
|
|
||||||
|
环境:
|
||||||
|
hyprland (kde 下无此问题)
|
||||||
|
hybrid (独显直连没有测试)
|
||||||
|
|
||||||
|
结论:
|
||||||
|
罗技 Bolt 接收器导致的
|
||||||
|
|
||||||
|
解决1:
|
||||||
|
修改 /proc/acpi/wakeup 禁用 usb 唤醒
|
||||||
|
修改什么?问 LLM 吧,现在的我也不知道 :)
|
||||||
|
|
||||||
|
解决2:
|
||||||
|
安装 solaar 并启动
|
||||||
|
步骤:
|
||||||
|
创建 plugdev 用户组:
|
||||||
|
sudo groupadd plugdev
|
||||||
|
sudo usermod $(whoami) -aG plugdev
|
||||||
|
安装 solaar
|
||||||
|
启用驱动:
|
||||||
|
sudo modprobe hid_logitech_dj
|
||||||
|
重载 udev 规则:
|
||||||
|
sudo udevadm control --reload-rules
|
||||||
|
插拔 Bolt 接收器
|
||||||
|
启动!
|
||||||
35
.memo/plasma-wrong-ntfmgr.md
Normal file
35
.memo/plasma-wrong-ntfmgr.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
当安装了其他 notification manager 时,plasma 在启动时可能会选择错误的 notification manager 导致通知中心无法正常工作 <s>(虽然平时也并不怎么在意这玩意,用什么 daemon 都无所谓,只要有通知看就行)</s>
|
||||||
|
|
||||||
|
如何知道是否是这种情况呢?以 mako 为例:
|
||||||
|
|
||||||
|
1. 先知道 mako 是什么时候被启动的 (或者自己推算时间):
|
||||||
|
```sh
|
||||||
|
journalctl --user -u mako.service --no-pager -g 'Starting'
|
||||||
|
```
|
||||||
|
2. 查看先后的日志:
|
||||||
|
```sh
|
||||||
|
journalctl --user --since '2025-07-29 00:43:16' --until '2025-07-29 00:43:18'
|
||||||
|
```
|
||||||
|
3. 如果发现类似以下内容:
|
||||||
|
```
|
||||||
|
...
|
||||||
|
Jul 29 00:43:17 Artemisia systemd[1080]: Starting Lightweight Wayland notification daemon...
|
||||||
|
Jul 29 00:43:17 Artemisia systemd[1080]: Started Lightweight Wayland notification daemon.
|
||||||
|
...
|
||||||
|
Jul 29 00:43:17 Artemisia plasmashell[1599]: org.kde.plasma.notificationmanager: Failed to register Notification service on DBus
|
||||||
|
...
|
||||||
|
```
|
||||||
|
那就是这种情况了。
|
||||||
|
|
||||||
|
解决方法也很简单,启动时屏蔽掉错误的服务,例如:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
systemctl --user mask mako.service
|
||||||
|
```
|
||||||
|
|
||||||
|
或者将 plasmashell 的 notificationmanager 优先级提高:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
mkdir -p ~/.local/share/dbus-1/services/
|
||||||
|
ln -s /usr/share/dbus-1/services/org.kde.plasma.Notifications.service ~/.local/share/dbus-1/services/org.kde.plasma.Notifications.service
|
||||||
|
```
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
在 btrfs 分区下使用 swapfile 创建虚拟内存:
|
在 btrfs 分区下使用 swapfile 创建虚拟内存 (复杂方法):
|
||||||
|
|
||||||
1. 创建 swap 子卷 (假定已经挂载到 /mnt):
|
1. 创建 swap 子卷 (假定已经挂载到 /mnt):
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ btrfs subvolume create /mnt/@swap
|
|||||||
touch /mnt/@swap/swapfile
|
touch /mnt/@swap/swapfile
|
||||||
```
|
```
|
||||||
|
|
||||||
3. 设置 COW 禁用属性:
|
3. 禁用 COW:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
chattr +C /mnt/@swap/swapfile
|
chattr +C /mnt/@swap/swapfile
|
||||||
@@ -44,9 +44,7 @@ swapon --show
|
|||||||
7. 修改 `/etc/fstab` 以自动挂载 swap 文件:
|
7. 修改 `/etc/fstab` 以自动挂载 swap 文件:
|
||||||
|
|
||||||
```conf
|
```conf
|
||||||
# Btrfs @swap subvolume
|
UUID={btrfs-uuid} /swap btrfs rw,noatime,ssd,discard=async,space_cache=v2,subvol=/@swap 0 0
|
||||||
UUID={btrfs-uuid} /swap btrfs subvol=@swap,defaults,noatime 0 0
|
|
||||||
|
|
||||||
# Swap file
|
|
||||||
/swap/swapfile none swap sw 0 0
|
/swap/swapfile none swap sw 0 0
|
||||||
```
|
```
|
||||||
|
|||||||
6
.memo/waydroid-google-assistant.txt
Normal file
6
.memo/waydroid-google-assistant.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
安卓 13
|
||||||
|
|
||||||
|
搜索 Assistant,点进 General,禁用
|
||||||
|
搜索 Default Apps,将 Digital assistant app 设置为 None
|
||||||
|
|
||||||
|
这样按 super 键就不会弹出 Google Assistant 了
|
||||||
@@ -1,13 +1,8 @@
|
|||||||
#!/bin/env bash
|
#!/bin/env bash
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
if pgrep -x "waybar" > /dev/null; then
|
|
||||||
killall -q waybar
|
killall -q waybar
|
||||||
|
|
||||||
# Wait until the processes have been shut down
|
|
||||||
while pgrep -x waybar >/dev/null; do sleep 1; done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Also close the lyrics widget if open
|
# Also close the lyrics widget if open
|
||||||
if eww active-windows | grep -q "lyrics-single"; then
|
if eww active-windows | grep -q "lyrics-single"; then
|
||||||
eww close lyrics-single
|
eww close lyrics-single
|
||||||
@@ -15,19 +10,28 @@ function close() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function open() {
|
function open() {
|
||||||
|
# the system tray will not work with kded6 started
|
||||||
|
if killall -q "kded6"; then
|
||||||
|
while pgrep -x "kded6" >/dev/null; do
|
||||||
|
sleep 0.2
|
||||||
|
done
|
||||||
|
fi
|
||||||
waybar &
|
waybar &
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
close
|
close
|
||||||
|
while pgrep -x "waybar" >/dev/null; do
|
||||||
|
sleep 0.2
|
||||||
|
done
|
||||||
open
|
open
|
||||||
elif [ "$1" = "close" ]; then
|
elif [ "$1" = "close" ]; then
|
||||||
if ! pgrep -x "waybar" > /dev/null; then
|
if ! pgrep -x "waybar" >/dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
close
|
close
|
||||||
elif [ "$1" = "open" ]; then
|
elif [ "$1" = "open" ]; then
|
||||||
if pgrep -x "waybar" > /dev/null; then
|
if pgrep -x "waybar" >/dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
open
|
open
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ env = NVD_BACKEND,direct
|
|||||||
env = XCURSOR_SIZE,24
|
env = XCURSOR_SIZE,24
|
||||||
env = HYPRCURSOR_SIZE,24
|
env = HYPRCURSOR_SIZE,24
|
||||||
env = ELECTRON_OZONE_PLATFORM_HINT,auto
|
env = ELECTRON_OZONE_PLATFORM_HINT,auto
|
||||||
env = DISPLAY_DEVICE,intel_backlight # or nvidia_0
|
env = DISPLAY_DEVICE,nvidia_0 # or nvidia_0
|
||||||
@@ -49,7 +49,7 @@ general {
|
|||||||
gaps_in = 2
|
gaps_in = 2
|
||||||
gaps_out = 0, 3, 3, 3
|
gaps_out = 0, 3, 3, 3
|
||||||
gaps_workspaces = 50
|
gaps_workspaces = 50
|
||||||
border_size = 1
|
border_size = 2
|
||||||
|
|
||||||
resize_on_border = true
|
resize_on_border = true
|
||||||
no_focus_fallback = true
|
no_focus_fallback = true
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
bind = Super, C, exec, code --password-store=gnome-libsecret # Launch VSCode (editor)
|
bind = Super, C, exec, code --password-store=gnome-libsecret # Launch VSCode (editor)
|
||||||
bind = Super, E, exec, dolphin --new-window # Launch Dolphin (file manager)
|
bind = Super, E, exec, dolphin --new-window # Launch Dolphin (file manager)
|
||||||
bind = Super, W, exec, firefox --new-window # Launch Firefox
|
bind = Super, W, exec, firefox --new-window # Launch Firefox
|
||||||
bind = Super, X, exec, gnome-text-editor --new-window # Launch GNOME Text Editor
|
bind = Super, X, exec, kwrite # Launch GNOME Text Editor
|
||||||
bind = Super, B, exec, killall btop || ghostty -e btop # Launch btop (system monitor)
|
bind = Super, B, exec, killall btop || ghostty -e btop # Launch btop (system monitor)
|
||||||
bind = Super, Space, exec, eww open main --toggle # Launch dashboard (eww)
|
bind = Super, Space, exec, eww open main --toggle # Launch dashboard (eww)
|
||||||
bind = Super+Shift, V, exec, pavucontrol # Launch pavucontrol (volume mixer)
|
bind = Super+Shift, V, exec, pavucontrol # Launch pavucontrol (volume mixer)
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"interval": "once",
|
"interval": "once",
|
||||||
"exec": "$HOME/.config/waybar/modules/caffeine.sh",
|
"exec": "$HOME/.config/waybar/modules/caffeine.sh",
|
||||||
"on-click": "$HOME/.config/waybar/modules/caffeine.sh toggle && sleep 1",
|
"on-click": "$HOME/.config/waybar/modules/caffeine.sh toggle && sleep 0.2",
|
||||||
"exec-on-event": true,
|
"exec-on-event": true,
|
||||||
"min-length": 2,
|
"min-length": 2,
|
||||||
"max-length": 2,
|
"max-length": 2,
|
||||||
|
|||||||
@@ -11,18 +11,18 @@ if [ -n "$1" ]; then
|
|||||||
pid=$(pgrep -x "hypridle")
|
pid=$(pgrep -x "hypridle")
|
||||||
if [ -n "$pid" ]; then
|
if [ -n "$pid" ]; then
|
||||||
killall hypridle > /dev/null 2>&1
|
killall hypridle > /dev/null 2>&1
|
||||||
|
notify-send "Caffeine enabled" "POWERRR!!!"
|
||||||
else
|
else
|
||||||
hyprctl dispatch exec hypridle > /dev/null 2>&1
|
hyprctl dispatch exec hypridle > /dev/null 2>&1
|
||||||
|
notify-send "Caffeine disabled" "zzz..."
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 0.3 # Allow hypridle to start
|
# sleep 0.2 # Allow hypridle to start
|
||||||
pid=$(pgrep -x "hypridle")
|
pid=$(pgrep -x "hypridle")
|
||||||
if [ -n "$pid" ]; then
|
if [ -n "$pid" ]; then
|
||||||
output "inactive" "inactive"
|
output "inactive" "inactive"
|
||||||
notify-send "Caffeine disabled" "zzz..."
|
|
||||||
else
|
else
|
||||||
output "active" "active"
|
output "active" "active"
|
||||||
notify-send "Caffeine enabled" "POWERRR!!!"
|
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user