初始化dotfiles

This commit is contained in:
2026-06-18 11:36:12 +08:00
commit f4305709a5
37 changed files with 1540 additions and 0 deletions

20
hypr/scripts/screenshot Executable file
View File

@ -0,0 +1,20 @@
#!/bin/sh
# 截图保存到文件并复制到剪贴板
# 用法: screenshot [full|area]
dir=~/Pictures/Screenshots
mkdir -p "$dir"
file="$dir/$(date +%Y%m%d_%H%M%S).png"
if [ "$1" = "area" ]; then
grim -g "$(slurp)" "$file"
else
grim "$file"
fi
if [ -f "$file" ]; then
wl-copy < "$file"
notify-send -a 截图 "已保存并复制到剪贴板" -i "$file"
else
notify-send -a 截图 "截图失败"
fi