美化
壁纸
用的是swww
在hyprland里加上
exec-once = swww-daemon
exec-once = sleep 0.5 && ~/.local/share/bin/set_random_wallpaper.sh
bind = $mainMod SHIFT, W, exec, ~/.local/share/bin/set_random_wallpaper.sh
定时切换
~/.config/systemd/user/wallpaper-switch.service
[Unit]
Description=Switch wallpaper every 10 minutes
[Service]
ExecStart=/home/7air/.local/share/bin/set_random_wallpaper.sh
[Install]
WantedBy=default.target
以及~/.config/systemd/user/wallpaper-switch.timer
[Unit]
Description=Timer to switch wallpaper every 10 minutes
[Timer]
OnUnitActiveSec=10m
Unit=wallpaper-switch.service
[Install]
WantedBy=timers.target
脚本内容随便写个swww切换就行
#!/bin/bash
WALLPAPER_DIR="$HOME/pictures/"
if ! pgrep -x "swww-daemon" >/dev/null; then
exit 1
fi
if [ ! -d "$WALLPAPER_DIR" ]; then
exit 1
fi
RANDOM_WALLPAPER=$(find "$WALLPAPER_DIR" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.gif" \) -print0 | shuf -n1 -z | xargs -0 echo)
if [ -z "$RANDOM_WALLPAPER" ]; then
exit 1
elif [ ! -f "$RANDOM_WALLPAPER" ]; then
exit 1
fi
swww img "$RANDOM_WALLPAPER" --transition-type random --transition-fps 60 --transition-duration 1
键盘LED
用的是asusctl
在/usr/share/ausud/*.ron
中加入幻16的设备id即可
(
device_name: "GU605CR",
product_id: "",
layout_name: "ga401q",
basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse],
basic_zones: [],
advanced_type: Zoned([SingleZone]),
power_zones: [Keyboard],
)
触控板
hyprland
默认关闭
# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
workspace_swipe = true
workspace_swipe_fingers = 3
workspace_swipe_min_speed_to_force = 20
workspace_swipe_cancel_ratio = 0.25
workspace_swipe_direction_lock = true
workspace_swipe_direction_lock_threshold = 15
}
显示器backlight
在内核参数里加上这个
i915.enable_dpcd_backlight=3