2
This commit is contained in:
42
minimal-niri-dotfiles/.config/MangoHud/MangoHud.conf
Normal file
42
minimal-niri-dotfiles/.config/MangoHud/MangoHud.conf
Normal file
@ -0,0 +1,42 @@
|
||||
# Config Generated by MangoJuice #
|
||||
legacy_layout=false
|
||||
gpu_stats
|
||||
gpu_temp
|
||||
gpu_power
|
||||
gpu_voltage
|
||||
cpu_stats
|
||||
cpu_temp
|
||||
cpu_power
|
||||
ram
|
||||
fps
|
||||
fps_metrics=avg,0.01
|
||||
frame_timing
|
||||
frame_timing_detailed
|
||||
wine
|
||||
toggle_logging=Shift_L+F2
|
||||
toggle_hud_position=Shift_R+F11
|
||||
fps_limit_method=late
|
||||
toggle_fps_limit=Shift_L+F1
|
||||
background_alpha=0.5
|
||||
position=top-left
|
||||
table_columns=4
|
||||
toggle_hud=Shift_R+F12
|
||||
gpu_color=2e9762
|
||||
cpu_color=2e97cb
|
||||
fps_value=30,60
|
||||
fps_color=cc0000,ffaa7f,92e79a
|
||||
gpu_load_value=60,90
|
||||
gpu_load_color=92e79a,ffaa7f,cc0000
|
||||
cpu_load_value=60,90
|
||||
cpu_load_color=92e79a,ffaa7f,cc0000
|
||||
background_color=000000
|
||||
frametime_color=00ff00
|
||||
vram_color=ad64c1
|
||||
ram_color=c26693
|
||||
wine_color=eb5b5b
|
||||
engine_color=eb5b5b
|
||||
text_color=ffffff
|
||||
media_player_color=ffffff
|
||||
network_color=e07b85
|
||||
battery_color=92e79a
|
||||
media_player_format={title};{artist};{album}
|
||||
136
minimal-niri-dotfiles/.config/Thunar/accels.scm
Normal file
136
minimal-niri-dotfiles/.config/Thunar/accels.scm
Normal file
@ -0,0 +1,136 @@
|
||||
; thunar GtkAccelMap rc-file -*- scheme -*-
|
||||
; this file is an automated accelerator map dump
|
||||
;
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/sort-by-type" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStatusBar/toggle-last-modified" "")
|
||||
; (gtk_accel_path "<Actions>/Thunarwindow/menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/cut" "<Primary>x")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/sort-by-size" "")
|
||||
(gtk_accel_path "<Actions>/ThunarActions/uca-action-1769427857102992-1" "<Primary><Shift>v")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/file-menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/close-tab" "<Primary>w")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/switch-previous-tab-alt" "<Primary><Shift>ISO_Left_Tab")
|
||||
; (gtk_accel_path "<Actions>/ThunarStatusBar/toggle-size" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/new-window" "<Primary>n")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/clear-directory-specific-settings" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/close-window" "<Primary>q")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-parent" "<Alt>Up")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-side-pane-menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStatusBar/toggle-size-in-bytes" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/switch-previous-tab" "<Primary>Page_Up")
|
||||
; (gtk_accel_path "<Actions>/ThunarBookmarks/43958e0ed33f21f69df101ad8063a653" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/open" "<Primary>o")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/sort-ascending" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/toggle-split-view" "F3")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/copy-2" "<Primary>Insert")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/trash-delete" "Delete")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-recent" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-configure-toolbar" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/forward" "<Alt>Right")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/restore" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-location-alt" "<Alt>d")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/select-by-pattern" "<Primary>s")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/zoom-out-alt" "<Primary>KP_Subtract")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/contents" "F1")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-file-menu" "F10")
|
||||
; (gtk_accel_path "<Actions>/ThunarBookmarks/54761b802eb6de69c74ff01588374999" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/show-highlight" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/sort-descending" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/sort-by-name" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/select-all-files" "<Primary>a")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/execute" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/properties" "<Alt>Return")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/cut-2" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/sort-by-dtime" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-templates" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/paste-2" "<Shift>Insert")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/switch-next-tab" "<Primary>Page_Down")
|
||||
; (gtk_accel_path "<Actions>/ThunarStatusBar/toggle-filetype" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/close-all-windows" "<Primary><Shift>w")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/create-document" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/detach-tab" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/cancel-search" "Escape")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/zoom-in-alt2" "<Primary>equal")
|
||||
; (gtk_accel_path "<Actions>/ThunarStatusBar/toggle-hidden-count" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarShortcutsPane/sendto-shortcuts" "<Primary>d")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/undo" "<Primary>z")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-location-selector-entry" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/toggle-sort-order" "")
|
||||
(gtk_accel_path "<Actions>/ThunarActions/uca-action-1769429285959977-2" "<Primary><Alt>v")
|
||||
; (gtk_accel_path "<Actions>/ThunarBookmarks/974ddf6f60ae0a85b557432c4c4f2cd9" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/paste" "<Primary>v")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/zoom-in-alt1" "<Primary>KP_Add")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-menubar" "<Primary>m")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/restore-show" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-desktop" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-as-detailed-list" "<Primary>2")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/back" "<Alt>Left")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/zoom-out" "<Primary>minus")
|
||||
; (gtk_accel_path "<Actions>/ThunarStatusBar/toggle-display-name" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/sendto-menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/go-menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/remove-from-recent" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarBookmarks/cfa69549cdb5c4c993b09b04df44c6b4" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/open-with-other" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/invert-selection" "<Primary><Shift>i")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-side-pane-shortcuts" "<Primary>b")
|
||||
; (gtk_accel_path "<Actions>/ThunarBookmarks/cab0112e8c7d4b26ba7cf8d0f8b46cc6" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/reload-alt-2" "Reload")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-location-selector-menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/edit-menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/copy" "<Primary>c")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/sort-by-mtime" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/forward-alt" "Forward")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/move-to-trash" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/reload-alt-1" "F5")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/delete-3" "<Shift>KP_Delete")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/unselect-all-files" "Escape")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/arrange-items-menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/bookmarks-menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/reload" "<Primary>r")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-computer" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/toggle-image-preview" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/toggle-side-pane" "F9")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-as-icons" "<Primary>1")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/delete-2" "<Shift>Delete")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/zoom-in" "<Primary>plus")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/rename" "F2")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-location" "<Primary>l")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-as-compact-list" "<Primary>3")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/search" "<Primary>f")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/new-tab" "<Primary>t")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/zoom-reset" "<Primary>0")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/contents/help-menu" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/open-in-new-tab" "<Primary><Shift>p")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-location-selector-buttons" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/back-alt2" "Back")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/redo" "<Primary><Shift>z")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-trash" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/open-in-new-window" "<Primary><Shift>o")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-statusbar" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/open-location" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/duplicate" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/trash-delete-2" "KP_Delete")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/back-alt1" "BackSpace")
|
||||
; (gtk_accel_path "<Actions>/ThunarBookmarks/8b904a8394ac05541f9a6e2192949ce2" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarBookmarks/88b2652848ed389ddc7f23513e177f1d" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/create-folder" "<Primary><Shift>n")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-home" "<Alt>Home")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/switch-focused-split-view-pane" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/show-hidden" "<Primary>h")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/set-default-app" "")
|
||||
(gtk_accel_path "<Actions>/ThunarActions/uca-action-1763109685799433-1" "<Alt>t")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/empty-trash" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/preferences" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/delete" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-network" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/view-side-pane-tree" "<Primary>e")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/open-file-system" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/search-alt" "Search")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/switch-next-tab-alt" "<Primary>Tab")
|
||||
; (gtk_accel_path "<Actions>/ThunarActionManager/sendto-desktop" "")
|
||||
; (gtk_accel_path "<Actions>/ThunarStandardView/make-link" "")
|
||||
(gtk_accel_path "<Actions>/ThunarActions/uca-action-1770297188807065-1" "<Primary>space")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/zoom-reset-alt" "<Primary>KP_0")
|
||||
; (gtk_accel_path "<Actions>/ThunarWindow/about" "")
|
||||
123
minimal-niri-dotfiles/.config/Thunar/uca.xml
Normal file
123
minimal-niri-dotfiles/.config/Thunar/uca.xml
Normal file
@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<actions>
|
||||
<action>
|
||||
<icon>utilities-terminal</icon>
|
||||
<name>Open Terminal Here</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1763109685799433-1</unique-id>
|
||||
<command>kitty -e fish</command>
|
||||
<description>Example for a custom action</description>
|
||||
<range></range>
|
||||
<patterns>*</patterns>
|
||||
<startup-notify/>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon></icon>
|
||||
<name>多媒体信息</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1769424941490550-1</unique-id>
|
||||
<command>kitty --class "media_info" -e media-info %f </command>
|
||||
<description></description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<audio-files/>
|
||||
<video-files/>
|
||||
</action>
|
||||
<action>
|
||||
<icon></icon>
|
||||
<name>粘贴为链接</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1769427857102992-1</unique-id>
|
||||
<command>sh -c 'wl-paste -t text/uri-list | python3 -c "
|
||||
import sys, os, urllib.parse
|
||||
dest_dir = sys.argv[1]
|
||||
|
||||
# 逐行读取剪贴板里的文件
|
||||
for line in sys.stdin:
|
||||
# 1. 清理路径:解码URL并去掉 file:// 前缀
|
||||
src = urllib.parse.unquote(line.strip()).replace(\"file://\", \"\")
|
||||
|
||||
# 2. 基础检查
|
||||
if not src or not os.path.exists(src): continue
|
||||
|
||||
# 3. 计算目标文件名
|
||||
filename = os.path.basename(src)
|
||||
target = os.path.join(dest_dir, filename)
|
||||
|
||||
# 4. 重名检测循环:如果有同名文件,变成 \"文件名 (1).后缀\"
|
||||
root, ext = os.path.splitext(filename)
|
||||
counter = 1
|
||||
while os.path.exists(target):
|
||||
target = os.path.join(dest_dir, f\"{root} ({counter}){ext}\")
|
||||
counter += 1
|
||||
|
||||
# 5. 创建链接
|
||||
try: os.symlink(src, target)
|
||||
except: pass
|
||||
" %f'</command>
|
||||
<description></description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon></icon>
|
||||
<name>粘贴剪贴板图片</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1769429285959977-2</unique-id>
|
||||
<command>bash -c 'd="%f";[ -d "$d" ]||d="$(dirname "$d")";cd "$d"||exit;n="img_$(date -Iseconds|cut -d+ -f1|tr T _|tr : -)";t=$(wl-paste -l);if echo "$t"|grep -q "^image/";then wl-paste -t image/png>"$n.png";elif echo "$t"|grep -q "text/uri-list";then u=$(wl-paste -t text/uri-list|head -n1);if [[ "$u" == file://* ]];then p="${u#file://}";f=$(python3 -c "import sys,urllib.parse;print(urllib.parse.unquote(sys.argv[1]))" "$p");[ -f "$f" ]&&cp "$f" "$n.${f##*.}";fi;fi'</command>
|
||||
<description></description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon></icon>
|
||||
<name>视频转gif</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1769514623477685-1</unique-id>
|
||||
<command>kitty --class="floating-term" -e video2gif %F</command>
|
||||
<description></description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<video-files/>
|
||||
</action>
|
||||
<action>
|
||||
<icon></icon>
|
||||
<name>图片转png</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1769516013413116-2</unique-id>
|
||||
<command>bash -c 'exec 1>>/tmp/img_err.log 2>&1; /usr/bin/notify-send "图片转换" "正在后台处理 $# 张图片..."; for f in "$@"; do /usr/bin/magick -background none "$f" -delete 1--1 "$(echo "$f" | sed "s/\.[^.]*$//").png"; done; /usr/bin/notify-send "图片转换" "处理完成"' -- %F</command>
|
||||
<description></description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<image-files/>
|
||||
</action>
|
||||
<action>
|
||||
<icon></icon>
|
||||
<name>压缩视频大小</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1770021157399945-1</unique-id>
|
||||
<command>kitty --class floating-term bash -c 'f="$1"; out="$(echo "$f" | sed "s/\.[^.]*$//")_compressed.mp4"; echo "正在处理: $f"; if ffmpeg -i "$f" -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -crf 26 -preset slow -c:a aac -b:a 128k -pix_fmt yuv420p "$out"; then echo -e "\n✅ 压缩完成!文件已保存为: $out"; else echo -e "\n❌ 压缩失败,请查看上方报错信息。"; fi; read -n 1 -s -r -p "按任意键退出..."' -- %f</command>
|
||||
<description></description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<video-files/>
|
||||
</action>
|
||||
<action>
|
||||
<icon></icon>
|
||||
<name>快速查看</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1770297188807065-1</unique-id>
|
||||
<command>kitty --class="floating-term" -e bash -c "~/.local/bin/preview \"\$1\"; read -n 1 -s -r" -- %f</command>
|
||||
<description></description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
<audio-files/>
|
||||
<image-files/>
|
||||
<text-files/>
|
||||
<video-files/>
|
||||
</action>
|
||||
</actions>
|
||||
124
minimal-niri-dotfiles/.config/fastfetch/config.jsonc
Normal file
124
minimal-niri-dotfiles/.config/fastfetch/config.jsonc
Normal file
@ -0,0 +1,124 @@
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json",
|
||||
"logo": {
|
||||
"type":"sixel",
|
||||
//"source": "/home/shorin/Pictures/picture.png",
|
||||
"width": 25,
|
||||
// "height":20,
|
||||
"padding": {
|
||||
"top": 1, // Top padding
|
||||
"left": 2, // Left padding
|
||||
"right": 2 // Right padding
|
||||
},
|
||||
},
|
||||
"display": {
|
||||
"separator": " ", // Separator between keys and values
|
||||
"color": {
|
||||
//"keys": "#b2ccc1", // Key color module名字的颜色
|
||||
"title": "#bfc9c3", // Title color 主机名的颜色
|
||||
"output": "#bfc9c3"
|
||||
},
|
||||
},
|
||||
"modules": [
|
||||
"break",
|
||||
{
|
||||
"type": "os", //这是哪个module
|
||||
"key": "OS", //module名字的显示
|
||||
// "keyColor": "#00ff00", //module名字颜色
|
||||
// "format": "{name} {version}", //具体内容
|
||||
"keyColor": "#88d6bb",
|
||||
|
||||
},
|
||||
{
|
||||
"type": "kernel",
|
||||
"key": " ├ KER ",
|
||||
"keyColor": "#88d6bb",
|
||||
|
||||
},
|
||||
{
|
||||
"type": "packages",
|
||||
"key": " ├ PAK ",
|
||||
"format": "{all}",
|
||||
"keyColor": "#88d6bb",
|
||||
},
|
||||
{
|
||||
"type": "title",
|
||||
"key": " └ USR ",
|
||||
"keyColor": "#88d6bb",
|
||||
},
|
||||
"break",
|
||||
"break",
|
||||
{
|
||||
"type": "wm",
|
||||
"key": "WM",
|
||||
"keyColor": "#a8cbe2",
|
||||
},
|
||||
{
|
||||
"type": "de",
|
||||
"key": " ├ DES ",
|
||||
"keyColor": "#a8cbe2",
|
||||
//"outputColor": "#a8cbe2"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"key": " ├ SHE ",
|
||||
"keyColor": "#a8cbe2",
|
||||
//"outputColor": "#a8cbe2"
|
||||
},
|
||||
{
|
||||
"type": "terminal",
|
||||
"key": " ├ TER ",
|
||||
"keyColor": "#a8cbe2",
|
||||
//"outputColor": "#a8cbe2"
|
||||
},
|
||||
{
|
||||
"type": "terminalfont",
|
||||
"key": " └ TFO ",
|
||||
"keyColor": "#a8cbe2",
|
||||
//"outputColor": "#a8cbe2"
|
||||
},
|
||||
"break",
|
||||
"break",
|
||||
{
|
||||
"type": "host",
|
||||
"key": "PC ",
|
||||
"keyColor": "#cee9dd",
|
||||
//"outputColor": "#b2ccc1"
|
||||
},
|
||||
{
|
||||
"type": "cpu",
|
||||
"key": " ├ CPU ",
|
||||
"keyColor": "#cee9dd",
|
||||
//"outputColor": "#b2ccc1"
|
||||
},
|
||||
{
|
||||
"type": "memory",
|
||||
"key": " ├ MEM ",
|
||||
"keyColor": "#cee9dd",
|
||||
//"outputColor": "#b2ccc1"
|
||||
},
|
||||
{
|
||||
"type": "gpu",
|
||||
"key": " ├ GPU ",
|
||||
"format": "{1} {2}",
|
||||
"keyColor": "#cee9dd",
|
||||
//"outputColor": "#b2ccc1"
|
||||
},
|
||||
{
|
||||
"type": "display",
|
||||
"key": " ├ MON ",
|
||||
"format": "{name} {width}x{height}@{refresh-rate} ",
|
||||
"keyColor": "#cee9dd",
|
||||
//"outputColor": "#b2ccc1"
|
||||
},
|
||||
{
|
||||
"type": "disk",
|
||||
"key": " └ DIS ",
|
||||
"keyColor": "#cee9dd",
|
||||
//"outputColor": "#b2ccc1"
|
||||
},
|
||||
"break",
|
||||
"break",
|
||||
"colors"
|
||||
]
|
||||
}
|
||||
3745
minimal-niri-dotfiles/.config/fcitx5/conf/cached_layouts
Normal file
3745
minimal-niri-dotfiles/.config/fcitx5/conf/cached_layouts
Normal file
File diff suppressed because it is too large
Load Diff
12
minimal-niri-dotfiles/.config/fcitx5/conf/chttrans.conf
Normal file
12
minimal-niri-dotfiles/.config/fcitx5/conf/chttrans.conf
Normal file
@ -0,0 +1,12 @@
|
||||
# 转换引擎
|
||||
Engine=OpenCC
|
||||
# 启用的输入法
|
||||
EnabledIM=
|
||||
# 简转繁的 OpenCC 配置
|
||||
OpenCCS2TProfile=default
|
||||
# 繁转简的 OpenCC 配置
|
||||
OpenCCT2SProfile=default
|
||||
|
||||
[Hotkey]
|
||||
0=Control+Shift+F
|
||||
|
||||
35
minimal-niri-dotfiles/.config/fcitx5/conf/classicui.conf
Normal file
35
minimal-niri-dotfiles/.config/fcitx5/conf/classicui.conf
Normal file
@ -0,0 +1,35 @@
|
||||
# 垂直候选列表
|
||||
Vertical Candidate List=True
|
||||
# 使用鼠标滚轮翻页
|
||||
WheelForPaging=True
|
||||
# 字体
|
||||
Font="Sans Serif 11"
|
||||
# 菜单字体
|
||||
MenuFont="Sans Serif 10"
|
||||
# 托盘字体
|
||||
TrayFont="Sans Serif 10"
|
||||
# 托盘标签轮廓颜色
|
||||
TrayOutlineColor=#000000
|
||||
# 托盘标签文本颜色
|
||||
TrayTextColor=#ffffff
|
||||
# 优先使用文字图标
|
||||
PreferTextIcon=False
|
||||
# 在图标中显示布局名称
|
||||
ShowLayoutNameInIcon=True
|
||||
# 使用输入法的语言来显示文字
|
||||
UseInputMethodLanguageToDisplayText=True
|
||||
# 主题
|
||||
Theme=default
|
||||
# 深色主题
|
||||
DarkTheme=default-dark
|
||||
# 跟随系统浅色/深色设置
|
||||
UseDarkTheme=True
|
||||
# 当被主题和桌面支持时使用系统的重点色
|
||||
UseAccentColor=True
|
||||
# 在 X11 上针对不同屏幕使用单独的 DPI
|
||||
PerScreenDPI=False
|
||||
# 固定 Wayland 的字体 DPI
|
||||
ForceWaylandDPI=0
|
||||
# 在 Wayland 下启用分数缩放
|
||||
EnableFractionalScale=True
|
||||
|
||||
@ -0,0 +1,3 @@
|
||||
# 隐藏通知
|
||||
HiddenNotifications=
|
||||
|
||||
150
minimal-niri-dotfiles/.config/fcitx5/conf/pinyin.conf
Normal file
150
minimal-niri-dotfiles/.config/fcitx5/conf/pinyin.conf
Normal file
@ -0,0 +1,150 @@
|
||||
# 双拼方案
|
||||
ShuangpinProfile=Ziranma
|
||||
# 显示当前双拼模式
|
||||
ShowShuangpinMode=True
|
||||
# 每页候选词
|
||||
PageSize=5
|
||||
# 显示英文候选词
|
||||
SpellEnabled=True
|
||||
# 显示符号候选词
|
||||
SymbolsEnabled=True
|
||||
# 显示拆字候选词
|
||||
ChaiziEnabled=True
|
||||
# 启用 Unicode CJK 拓展区 B 之后的更多字符
|
||||
ExtBEnabled=True
|
||||
# 输入 h(横),s(竖),p(撇),n(捺),z(折) 时显示笔画候选词
|
||||
StrokeCandidateEnabled=True
|
||||
# 启用云拼音
|
||||
CloudPinyinEnabled=True
|
||||
# 云拼音候选词顺序
|
||||
CloudPinyinIndex=2
|
||||
# 加载云拼音的时候显示动画
|
||||
CloudPinyinAnimation=True
|
||||
# 总是显示云拼音的占位符
|
||||
KeepCloudPinyinPlaceHolder=False
|
||||
# 预编辑模式
|
||||
PreeditMode="Composing pinyin"
|
||||
# 将嵌入预编辑文本的光标固定在开头
|
||||
PreeditCursorPositionAtBeginning=True
|
||||
# 在预编辑中显示完整拼音
|
||||
PinyinInPreedit=False
|
||||
# 启用预测
|
||||
Prediction=False
|
||||
# Keep the current typed text for next input prediction
|
||||
KeepCurrentContext=True
|
||||
# 预测数量
|
||||
PredictionSize=49
|
||||
# 预测时退格键的行为
|
||||
BackspaceBehaviorOnPrediction="Backspace when not using on-screen keyboard"
|
||||
# 切换输入法时的行为
|
||||
SwitchInputMethodBehavior="Commit current preedit"
|
||||
# 选择第二个候选词
|
||||
SecondCandidate=
|
||||
# 选择第三个候选词
|
||||
ThirdCandidate=
|
||||
# 使用数字键盘选词
|
||||
UseKeypadAsSelection=False
|
||||
# 使用退格键取消选词
|
||||
BackSpaceToUnselect=True
|
||||
# 句子数量
|
||||
Number of sentence=2
|
||||
# 词组候选词数
|
||||
WordCandidateLimit=15
|
||||
# 输入长于...时提示长词 (设置为 0 时禁用)
|
||||
LongWordLengthLimit=4
|
||||
# 快速输入的触发键
|
||||
QuickPhraseKey=semicolon
|
||||
# 使用 V 来触发快速输入
|
||||
VAsQuickphrase=True
|
||||
# FirstRun
|
||||
FirstRun=False
|
||||
|
||||
[ForgetWord]
|
||||
0=Control+7
|
||||
|
||||
[PrevPage]
|
||||
0=minus
|
||||
1=Up
|
||||
2=KP_Up
|
||||
3=Page_Up
|
||||
|
||||
[NextPage]
|
||||
0=equal
|
||||
1=Down
|
||||
2=KP_Down
|
||||
3=Next
|
||||
|
||||
[PrevCandidate]
|
||||
0=Shift+Tab
|
||||
|
||||
[NextCandidate]
|
||||
0=Tab
|
||||
|
||||
[CurrentCandidate]
|
||||
0=space
|
||||
1=KP_Space
|
||||
|
||||
[CommitRawInput]
|
||||
0=Return
|
||||
1=KP_Enter
|
||||
2=Control+Return
|
||||
3=Control+KP_Enter
|
||||
4=Shift+Return
|
||||
5=Shift+KP_Enter
|
||||
6=Control+Shift+Return
|
||||
7=Control+Shift+KP_Enter
|
||||
|
||||
[ChooseCharFromPhrase]
|
||||
0=bracketleft
|
||||
1=bracketright
|
||||
|
||||
[FilterByStroke]
|
||||
0=grave
|
||||
|
||||
[QuickPhraseTriggerRegex]
|
||||
0=.(/|@)$
|
||||
1=^(www|bbs|forum|mail|bbs)\\.
|
||||
2=^(http|https|ftp|telnet|mailto):
|
||||
|
||||
[Fuzzy]
|
||||
# ue -> ve
|
||||
VE_UE=True
|
||||
# 常见错误
|
||||
NG_GN=True
|
||||
# 内模糊音节 (xian -> xi'an)
|
||||
Inner=True
|
||||
# 短拼音的内模糊音节 (qie -> qi'e)
|
||||
InnerShort=True
|
||||
# 匹配不完整的元音 (e -> en, eng, ei)
|
||||
PartialFinal=True
|
||||
# 输入长度大于 4 时进行部分双拼匹配
|
||||
PartialSp=False
|
||||
# u <-> v
|
||||
V_U=False
|
||||
# an <-> ang
|
||||
AN_ANG=False
|
||||
# en <-> eng
|
||||
EN_ENG=False
|
||||
# ian <-> iang
|
||||
IAN_IANG=False
|
||||
# in <-> ing
|
||||
IN_ING=False
|
||||
# u <-> ou
|
||||
U_OU=False
|
||||
# uan <-> uang
|
||||
UAN_UANG=False
|
||||
# c <-> ch
|
||||
C_CH=False
|
||||
# f <-> h
|
||||
F_H=False
|
||||
# l <-> n
|
||||
L_N=False
|
||||
# l <-> r
|
||||
L_R=False
|
||||
# s <-> sh
|
||||
S_SH=False
|
||||
# z <-> zh
|
||||
Z_ZH=False
|
||||
# 纠错布局
|
||||
Correction=None
|
||||
|
||||
10
minimal-niri-dotfiles/.config/fcitx5/conf/punctuation.conf
Normal file
10
minimal-niri-dotfiles/.config/fcitx5/conf/punctuation.conf
Normal file
@ -0,0 +1,10 @@
|
||||
# 字母或者数字之后输入半角标点
|
||||
HalfWidthPuncAfterLetterOrNumber=True
|
||||
# 同时输入成对标点 (例如引号)
|
||||
TypePairedPunctuationsTogether=False
|
||||
# Enabled
|
||||
Enabled=True
|
||||
|
||||
[Hotkey]
|
||||
0=Control+period
|
||||
|
||||
83
minimal-niri-dotfiles/.config/fcitx5/config
Normal file
83
minimal-niri-dotfiles/.config/fcitx5/config
Normal file
@ -0,0 +1,83 @@
|
||||
[Hotkey]
|
||||
# 按住切换键的修饰键时进行轮换切换
|
||||
EnumerateWithTriggerKeys=True
|
||||
# 向前切换输入法
|
||||
EnumerateForwardKeys=
|
||||
# 向后切换输入法
|
||||
EnumerateBackwardKeys=
|
||||
# 轮换输入法时跳过第一个输入法
|
||||
EnumerateSkipFirst=False
|
||||
# 触发修饰键快捷键的时限 (毫秒)
|
||||
ModifierOnlyKeyTimeout=250
|
||||
|
||||
[Hotkey/TriggerKeys]
|
||||
0=Super+space
|
||||
1=Zenkaku_Hankaku
|
||||
2=Hangul
|
||||
|
||||
[Hotkey/ActivateKeys]
|
||||
0=Hangul_Hanja
|
||||
|
||||
[Hotkey/DeactivateKeys]
|
||||
0=Hangul_Romaja
|
||||
|
||||
[Hotkey/AltTriggerKeys]
|
||||
0=Shift_L
|
||||
|
||||
[Hotkey/EnumerateGroupForwardKeys]
|
||||
0=Super+space
|
||||
|
||||
[Hotkey/EnumerateGroupBackwardKeys]
|
||||
0=Shift+Super+space
|
||||
|
||||
[Hotkey/PrevPage]
|
||||
0=Up
|
||||
|
||||
[Hotkey/NextPage]
|
||||
0=Down
|
||||
|
||||
[Hotkey/PrevCandidate]
|
||||
0=Shift+Tab
|
||||
|
||||
[Hotkey/NextCandidate]
|
||||
0=Tab
|
||||
|
||||
[Hotkey/TogglePreedit]
|
||||
0=Control+Alt+P
|
||||
|
||||
[Behavior]
|
||||
# 默认状态为激活
|
||||
ActiveByDefault=False
|
||||
# 重新聚焦时重置状态
|
||||
resetStateWhenFocusIn=No
|
||||
# 共享输入状态
|
||||
ShareInputState=No
|
||||
# 在程序中显示预编辑文本
|
||||
PreeditEnabledByDefault=True
|
||||
# 切换输入法时显示输入法信息
|
||||
ShowInputMethodInformation=True
|
||||
# 在焦点更改时显示输入法信息
|
||||
showInputMethodInformationWhenFocusIn=False
|
||||
# 显示紧凑的输入法信息
|
||||
CompactInputMethodInformation=True
|
||||
# 显示第一个输入法的信息
|
||||
ShowFirstInputMethodInformation=True
|
||||
# 默认页大小
|
||||
DefaultPageSize=5
|
||||
# 覆盖 XKB 选项
|
||||
OverrideXkbOption=False
|
||||
# 自定义 XKB 选项
|
||||
CustomXkbOption=
|
||||
# Force Enabled Addons
|
||||
EnabledAddons=
|
||||
# Force Disabled Addons
|
||||
DisabledAddons=
|
||||
# Preload input method to be used by default
|
||||
PreloadInputMethod=True
|
||||
# 允许在密码框中使用输入法
|
||||
AllowInputMethodForPassword=False
|
||||
# 输入密码时显示预编辑文本
|
||||
ShowPreeditForPassword=False
|
||||
# 保存用户数据的时间间隔(以分钟为单位)
|
||||
AutoSavePeriod=30
|
||||
|
||||
29
minimal-niri-dotfiles/.config/fcitx5/profile
Normal file
29
minimal-niri-dotfiles/.config/fcitx5/profile
Normal file
@ -0,0 +1,29 @@
|
||||
[Groups/0]
|
||||
# Group Name
|
||||
Name=Default
|
||||
# Layout
|
||||
Default Layout=us
|
||||
# Default Input Method
|
||||
DefaultIM=rime
|
||||
|
||||
[Groups/0/Items/0]
|
||||
# Name
|
||||
Name=keyboard-us
|
||||
# Layout
|
||||
Layout=
|
||||
|
||||
[Groups/0/Items/1]
|
||||
# Name
|
||||
Name=rime
|
||||
# Layout
|
||||
Layout=
|
||||
|
||||
[Groups/0/Items/2]
|
||||
# Name
|
||||
Name=mozc
|
||||
# Layout
|
||||
Layout=
|
||||
|
||||
[GroupOrder]
|
||||
0=Default
|
||||
|
||||
42
minimal-niri-dotfiles/.config/fontconfig/fonts.conf
Normal file
42
minimal-niri-dotfiles/.config/fontconfig/fonts.conf
Normal file
@ -0,0 +1,42 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
|
||||
<match target="font">
|
||||
<edit name="antialias" mode="assign"><bool>true</bool></edit>
|
||||
<edit name="hinting" mode="assign"><bool>true</bool></edit>
|
||||
<edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
|
||||
<edit name="rgba" mode="assign"><const>rgb</const></edit>
|
||||
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
|
||||
</match>
|
||||
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans CJK SC</family>
|
||||
<family>Adwaita Sans</family>
|
||||
<family>Liberation Sans</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans CJK SC</family>
|
||||
<family>Adwaita Sans</family>
|
||||
<family>Liberation Sans</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>JetBrains Mono</family>
|
||||
<family>JetBrains Maple Mono</family>
|
||||
<family>Adwaita Mono</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
|
||||
</fontconfig>
|
||||
14
minimal-niri-dotfiles/.config/foot/foot.ini
Normal file
14
minimal-niri-dotfiles/.config/foot/foot.ini
Normal file
@ -0,0 +1,14 @@
|
||||
[main]
|
||||
shell=zsh
|
||||
|
||||
font=JetBrains Maple Mono:size=13.5
|
||||
|
||||
pad=5x5
|
||||
|
||||
[cursor]
|
||||
style=block
|
||||
unfocused-style=hollow
|
||||
blink=no
|
||||
|
||||
|
||||
|
||||
127
minimal-niri-dotfiles/.config/fuzzel/fuzzel.ini
Normal file
127
minimal-niri-dotfiles/.config/fuzzel/fuzzel.ini
Normal file
@ -0,0 +1,127 @@
|
||||
[main]
|
||||
# output=<not set>
|
||||
font=adwaita sans:size=13
|
||||
# dpi-aware=auto
|
||||
# use-bold=yes
|
||||
# prompt="> "
|
||||
# placeholder=
|
||||
# icon-theme=default
|
||||
# icons-enabled=yes
|
||||
# hide-before-typing=no
|
||||
# fields=filename,name,generic
|
||||
# password-character=*
|
||||
# filter-desktop=no
|
||||
# match-mode=fzf
|
||||
# sort-result=yes
|
||||
# match-counter=no
|
||||
# delayed-filter-ms=300
|
||||
# delayed-filter-limit=20000
|
||||
# show-actions=no
|
||||
terminal=kitty -e
|
||||
# launch-prefix=<not set>
|
||||
# list-executables-in-path=no
|
||||
|
||||
# anchor=center
|
||||
# x-margin=0
|
||||
# y-margin=0
|
||||
lines=9
|
||||
# minimal-lines=no
|
||||
width=35
|
||||
# tabs=8
|
||||
horizontal-pad=40
|
||||
vertical-pad=15
|
||||
inner-pad=5
|
||||
|
||||
# scaling-filter=box
|
||||
# imagesize-ratio=0.5
|
||||
|
||||
# gamma-correct-blending=no
|
||||
line-height=25
|
||||
# letter-spacing=0
|
||||
|
||||
# layer=overlay
|
||||
# keyboard-focus=exclusive
|
||||
# exit-on-keyboard-focus-loss=yes
|
||||
|
||||
# cache=<not set>
|
||||
|
||||
# render-workers=<number of logical CPUs>
|
||||
# match-workers=<number of logical CPUs>
|
||||
|
||||
# enable-mouse=yes
|
||||
|
||||
[colors]
|
||||
# background=fdf6e3ff
|
||||
# text=657b83ff
|
||||
# prompt=586e75ff
|
||||
# placeholder=93a1a1ff
|
||||
# input=657b83ff
|
||||
# match=cb4b16ff
|
||||
# selection=eee8d5ff
|
||||
# selection-text=586e75ff
|
||||
# selection-match=cb4b16ff
|
||||
# counter=93a1a1ff
|
||||
border=ffffff
|
||||
|
||||
[border]
|
||||
width=2
|
||||
radius=0
|
||||
|
||||
[dmenu]
|
||||
# mode=text # text|index
|
||||
# exit-immediately-if-empty=no
|
||||
|
||||
[key-bindings]
|
||||
prev = Control+k Up Control+w
|
||||
next = Control+j Down Control+s
|
||||
custom-1 = Control+Return Control+h
|
||||
# cancel=Escape Control+g Control+c Control+bracketleft
|
||||
execute=Return KP_Enter Control+l
|
||||
# execute-or-next=Tab
|
||||
# execute-input=Shift+Return Shift+KP_Enter
|
||||
# cursor-left=Left Control+b
|
||||
# cursor-left-word=Control+Left Mod1+b
|
||||
# cursor-right=Right Control+f
|
||||
# cursor-right-word=Control+Right Mod1+f
|
||||
# cursor-home=Home Control+a
|
||||
# cursor-end=End Control+e
|
||||
# delete-line=Control+Shift+BackSpace
|
||||
delete-prev=BackSpace
|
||||
delete-prev-word=Mod1+BackSpace Control+BackSpace
|
||||
# delete-line-backward=Control+u
|
||||
# delete-next=Delete KP_Delete Control+d
|
||||
# delete-next-word=Mod1+d Control+Delete Control+KP_Delete
|
||||
delete-line-forward= none
|
||||
# prev=Up Control+p
|
||||
# prev-with-wrap=ISO_Left_Tab
|
||||
# prev-page=Page_Up KP_Page_Up
|
||||
# next=Down Control+n
|
||||
# next-with-wrap=none
|
||||
# next-page=Page_Down KP_Page_Down
|
||||
# expunge=Shift+Delete
|
||||
# clipboard-paste=Control+v XF86Paste
|
||||
# primary-paste=Shift+Insert Shift+KP_Insert
|
||||
|
||||
# custom-N: *dmenu mode only*. Like execute, but with a non-zero
|
||||
# exit-code; custom-1 exits with code 10, custom-2 with 11, custom-3
|
||||
# with 12, and so on.
|
||||
# custom-1=Mod1+1
|
||||
# custom-2=Mod1+2
|
||||
# custom-3=Mod1+3
|
||||
# custom-4=Mod1+4
|
||||
# custom-5=Mod1+5
|
||||
# custom-6=Mod1+6
|
||||
# custom-7=Mod1+7
|
||||
# custom-8=Mod1+8
|
||||
# custom-9=Mod1+9
|
||||
# custom-10=Mod1+0
|
||||
# custom-11=Mod1+exclam
|
||||
# custom-12=Mod1+at
|
||||
# custom-13=Mod1+numbersign
|
||||
# custom-14=Mod1+dollar
|
||||
# custom-15=Mod1+percent
|
||||
# custom-16=Mod1+dead_circumflex
|
||||
# custom-17=Mod1+ampersand
|
||||
# custom-18=Mod1+asterix
|
||||
# custom-19=Mod1+parentleft
|
||||
|
||||
7
minimal-niri-dotfiles/.config/gtk-3.0/bookmarks
Normal file
7
minimal-niri-dotfiles/.config/gtk-3.0/bookmarks
Normal file
@ -0,0 +1,7 @@
|
||||
file:///home/shorin/Documents Documents
|
||||
file:///home/shorin/Pictures Pictures
|
||||
file:///home/shorin/Videos Videos
|
||||
file:///home/shorin/Music Music
|
||||
file:///home/shorin/Downloads Downloads
|
||||
file:///home/shorin/.config .config
|
||||
file:///home/shorin/.local
|
||||
10
minimal-niri-dotfiles/.config/mako/config
Normal file
10
minimal-niri-dotfiles/.config/mako/config
Normal file
@ -0,0 +1,10 @@
|
||||
border-size=2
|
||||
icons=1
|
||||
anchor=top-right
|
||||
default-timeout=8000
|
||||
margin=10
|
||||
padding=10
|
||||
font=adwaita sans regular 11
|
||||
history=1
|
||||
max-visible=20
|
||||
max-history=100
|
||||
24
minimal-niri-dotfiles/.config/mimeapps.list
Normal file
24
minimal-niri-dotfiles/.config/mimeapps.list
Normal file
@ -0,0 +1,24 @@
|
||||
[Default Applications]
|
||||
image/png=imv.desktop
|
||||
video/webm=mpv.desktop
|
||||
application/x-shellscript=vim.desktop
|
||||
inode/directory=org.gnome.Nautilus.desktop
|
||||
image/jpeg=imv.desktop
|
||||
image/gif=imv.desktop
|
||||
image/webp=imv.desktop
|
||||
image/bmp=imv.desktop
|
||||
image/tiff=imv.desktop
|
||||
video/mp4=mpv.desktop
|
||||
video/x-matroska=mpv.desktop
|
||||
video/avi=mpv.desktop
|
||||
video/quicktime=mpv.desktop
|
||||
text/plain=vim.desktop
|
||||
application/vnd.microsoft.portable-executable=wine.desktop
|
||||
|
||||
[Added Associations]
|
||||
image/png=imv.desktop;
|
||||
video/webm=mpv.desktop;
|
||||
application/x-shellscript=vim.desktop;
|
||||
video/mp4=mpv.desktop;
|
||||
text/plain=vim.desktop;
|
||||
application/vnd.microsoft.portable-executable=wine.desktop;
|
||||
4
minimal-niri-dotfiles/.config/mpv/config
Normal file
4
minimal-niri-dotfiles/.config/mpv/config
Normal file
@ -0,0 +1,4 @@
|
||||
#使用vulkan后端
|
||||
gpu-api=vulkan
|
||||
#通用自动模式硬解
|
||||
hwdec=auto-safe
|
||||
362
minimal-niri-dotfiles/.config/niri/binds.kdl
Normal file
362
minimal-niri-dotfiles/.config/niri/binds.kdl
Normal file
@ -0,0 +1,362 @@
|
||||
//这个文件是快捷键设置
|
||||
|
||||
binds {
|
||||
|
||||
// 显示快捷键教程
|
||||
Mod+Shift+Slash hotkey-overlay-title="快捷键教程 Keybind tutorial" { spawn "~/.config/niri/scripts/niri-binds"; }
|
||||
|
||||
// alt+tab切换窗口
|
||||
Alt+Tab hotkey-overlay-title="快速跳转窗口 Quick window switch menu" {spawn "~/.config/niri/scripts/niri-quick-switch-fuzzel.py";}
|
||||
Mod+F1 hotkey-overlay-title="开关输入法 Toggle fcitx" {spawn-sh "pkill fcitx5 || fcitx5 ";}
|
||||
Mod+F2 hotkey-overlay-title=null {spawn-sh "pkill cava || true && pkill waybar || true && waybar -c $HOME/.config/waybar/config.jsonc -s $HOME/.config/waybar/style.css ";}
|
||||
Mod+F5 hotkey-overlay-title="快速存档 Quick save" {spawn "quicksave";}
|
||||
Mod+F8 hotkey-overlay-title="快速读档 Quick load" {spawn "quickload";}
|
||||
Mod+F9 hotkey-overlay-title="切换护眼模式 Toggle sunset" {spawn "~/.config/niri/scripts/toggle-wlsunset";}
|
||||
|
||||
// 这一行是关闭waybar进程,释放资源占用。在意资源占用的时候使用。
|
||||
Mod+F4 hotkey-overlay-title="开关任务栏 Toggle bar" {spawn-sh "pkill waybar || waybar ";}
|
||||
// 这一行是用waybar自己支持的信号功能隐藏waybar,但进程没有退出,资源占用依旧有
|
||||
Mod+Shift+F4 hotkey-overlay-title="隐藏任务栏 Hide bar" {spawn-sh "killall -SIGUSR1 waybar";}
|
||||
// 临时开一个浮动终端
|
||||
Mod+Slash hotkey-overlay-title="临时终端 Quick Terminal" {spawn "footclient" "-a" "quickterminal";}
|
||||
//打开浏览器
|
||||
Mod+B hotkey-overlay-title="浏览器 Browser" { spawn "firefox"; }
|
||||
|
||||
|
||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+T hotkey-overlay-title="终端 Terminal" { spawn "footclient"; }
|
||||
// 文档管理器。如果有thunar的话会优先打开thunar,没有的话会打开nautilus,不要问我为什么()
|
||||
Mod+E hotkey-overlay-title="文档管理器 Filemanager" { spawn-sh "thunar || env GSK_RENDERER=gl GTK_IM_MODULE=fcitx nautilus"; }
|
||||
// 另一个打开nautilus的快捷键,主要是为了在同时安装thunar和nautilus的情况下打开naultilus
|
||||
Mod+Alt+E hotkey-overlay-title=null {spawn "env" "GSK_RENDERER=gl" "GTK_IM_MODULE=fcitx" "nautilus" "--new-window";}
|
||||
Mod+Z hotkey-overlay-title="程序菜单 Applauncher" { spawn "fuzzel"; }
|
||||
// 锁屏
|
||||
Mod+Alt+L hotkey-overlay-title="锁屏 Lock screen" { spawn-sh "hyprlock -c ~/.config/niri/hyprlock.conf"; }
|
||||
// 这是我自己的剪贴板程序,对应aur包shorinclip-git
|
||||
Mod+Alt+V hotkey-overlay-title="剪贴板 Clipboard" {spawn-sh "footclient -a shorinclip shorinclip";}
|
||||
// 调节音量
|
||||
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "swayosd-client --output-volume +5||wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+"; }
|
||||
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "swayosd-client --output-volume -5||wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"; }
|
||||
XF86AudioMute allow-when-locked=true { spawn-sh "swayosd-client --output-volume mute-toggle||wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
|
||||
XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }
|
||||
|
||||
// 调节屏幕亮度
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+5%"; }
|
||||
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "5%-"; }
|
||||
|
||||
// 切换overview总览
|
||||
Mod+O hotkey-overlay-title="切换总览界面 toggle overview" repeat=false { toggle-overview; }
|
||||
Mod+G repeat=false { toggle-overview; }
|
||||
// 关闭聚焦窗口
|
||||
Mod+Q hotkey-overlay-title="关闭聚焦窗口 Close focus window" repeat=false { close-window; }
|
||||
Alt+F4 hotkey-overlay-title=null repeat=false { close-window; }
|
||||
|
||||
// mod+鼠标中键 关闭窗口
|
||||
Mod+MouseMiddle { close-window; }
|
||||
|
||||
// 下面的快捷键看着很多很复杂,其实并不难记。
|
||||
// 记住三组方向键,wasd、hjkl和上下左右箭头
|
||||
// 总的来说
|
||||
// super+方向键就是切换聚焦,再加上ctrl就是移动窗口
|
||||
// super+a/d 比较特殊,不是切换聚焦而是左右合并colume(相当于左右移动窗口)
|
||||
// super+shift就是跨显示器,加上ctrl就是移动窗口
|
||||
|
||||
// 切换聚焦
|
||||
// super+方向键
|
||||
Mod+Left hotkey-overlay-title=null { focus-column-left; }
|
||||
Mod+Down { focus-window-down; }
|
||||
Mod+Up { focus-window-up; }
|
||||
Mod+Right { focus-column-right; }
|
||||
// super+vim key
|
||||
Mod+H { focus-column-left; }
|
||||
Mod+J { focus-window-down; }
|
||||
Mod+K { focus-window-up; }
|
||||
Mod+L { focus-column-right; }
|
||||
|
||||
// 移动colume(列)
|
||||
// super+ctrl+方向键
|
||||
Mod+Ctrl+Left hotkey-overlay-title=null { move-column-left; }
|
||||
Mod+Ctrl+Down { move-window-down; }
|
||||
Mod+Ctrl+Up { move-window-up; }
|
||||
Mod+Ctrl+Right hotkey-overlay-title=null { move-column-right; }
|
||||
// super+ctrl+vimkey
|
||||
Mod+Ctrl+H { move-column-left; }
|
||||
Mod+Ctrl+J { move-window-down; }
|
||||
Mod+Ctrl+K { move-window-up; }
|
||||
Mod+Ctrl+L { move-column-right; }
|
||||
// super+ctrl+a/d 向左/右移动列
|
||||
Mod+Ctrl+A { move-column-left; }
|
||||
Mod+Ctrl+D { move-column-right; }
|
||||
|
||||
// Alternative commands that move across workspaces when reaching
|
||||
// the first or last window in a column.
|
||||
// Mod+J { focus-window-or-workspace-down; }
|
||||
// Mod+K { focus-window-or-workspace-up; }
|
||||
// Mod+Ctrl+J { move-window-down-or-to-workspace-down; }
|
||||
// Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
|
||||
|
||||
// 切换到第一个colume
|
||||
Mod+Home { focus-column-first; }
|
||||
// 切换到最后一个colume
|
||||
Mod+End { focus-column-last; }
|
||||
// 移动colume到第一个
|
||||
Mod+Ctrl+Home { move-column-to-first; }
|
||||
// 移动colume到最后一个
|
||||
Mod+Ctrl+End { move-column-to-last; }
|
||||
|
||||
// 切换显示器聚焦
|
||||
// mod+shift+方向键
|
||||
Mod+Shift+Left { focus-monitor-left; }
|
||||
Mod+Shift+Down { focus-monitor-down; }
|
||||
Mod+Shift+Up { focus-monitor-up; }
|
||||
Mod+Shift+Right { focus-monitor-right; }
|
||||
// mod+shift+vimkey
|
||||
Mod+Shift+H { focus-monitor-left; }
|
||||
Mod+Shift+J { focus-monitor-down; }
|
||||
Mod+Shift+K { focus-monitor-up; }
|
||||
Mod+Shift+L { focus-monitor-right; }
|
||||
// 跨显示器移动colume
|
||||
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
||||
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
||||
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
||||
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
|
||||
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
|
||||
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||
Mod+Shift+Ctrl+A { move-column-to-monitor-left; }
|
||||
Mod+Shift+Ctrl+S { move-column-to-monitor-down; }
|
||||
Mod+Shift+Ctrl+W { move-column-to-monitor-up; }
|
||||
Mod+Shift+Ctrl+D { move-column-to-monitor-right; }
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
||||
// ...
|
||||
|
||||
// And you can also move a whole workspace to another monitor:
|
||||
|
||||
//移动整个工作区
|
||||
// mod+shift跨显示器,alt代表移动整个工作区,再加上三组方向键
|
||||
Mod+Shift+Alt+W { move-workspace-to-monitor-up; }
|
||||
Mod+Shift+Alt+S { move-workspace-to-monitor-down; }
|
||||
Mod+Shift+Alt+D { move-workspace-to-monitor-right; }
|
||||
Mod+Shift+Alt+A { move-workspace-to-monitor-left; }
|
||||
|
||||
Mod+Shift+Alt+K { move-workspace-to-monitor-up; }
|
||||
Mod+Shift+Alt+J { move-workspace-to-monitor-down; }
|
||||
Mod+Shift+Alt+L { move-workspace-to-monitor-right; }
|
||||
Mod+Shift+Alt+H { move-workspace-to-monitor-left; }
|
||||
|
||||
Mod+Shift+Alt+Up { move-workspace-to-monitor-up; }
|
||||
Mod+Shift+Alt+Down { move-workspace-to-monitor-down; }
|
||||
Mod+Shift+Alt+Right { move-workspace-to-monitor-right; }
|
||||
Mod+Shift+Alt+Left { move-workspace-to-monitor-left; }
|
||||
|
||||
// 上下切换工作区
|
||||
Mod+Page_Down hotkey-overlay-title=null { focus-workspace-down; }
|
||||
Mod+Page_Up hotkey-overlay-title=null { focus-workspace-up; }
|
||||
Mod+U { focus-workspace-down; }
|
||||
Mod+I { focus-workspace-up; }
|
||||
// 上下移动窗口到其他工作区
|
||||
Mod+Ctrl+Page_Down hotkey-overlay-title=null { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+Page_Up hotkey-overlay-title=null { move-column-to-workspace-up; }
|
||||
Mod+Ctrl+U { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+I { move-column-to-workspace-up; }
|
||||
|
||||
// You can bind mouse wheel scroll ticks using the following syntax.
|
||||
// These binds will change direction based on the natural-scroll setting.
|
||||
//
|
||||
// To avoid scrolling through workspaces really fast, you can use
|
||||
// the cooldown-ms property. The bind will be rate-limited to this value.
|
||||
// You can set a cooldown on any bind, but it's most useful for the wheel.
|
||||
|
||||
// mod+shitf+滚轮上下切换工作区
|
||||
Mod+Shift+WheelScrollDown hotkey-overlay-title="切换工作区 Change workspaces" cooldown-ms=150 { focus-workspace-down; }
|
||||
Mod+Shift+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||
//再加上ctrl移动窗口
|
||||
Mod+Ctrl+Shift+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+Shift+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||
|
||||
// 如果滚轮支持左右的话这里可以设置切换聚焦和移动窗口
|
||||
//Mod+WheelScrollRight { focus-column-right; }
|
||||
//Mod+WheelScrollLeft { focus-column-left; }
|
||||
//Mod+Ctrl+WheelScrollRight { move-column-right; }
|
||||
//Mod+Ctrl+WheelScrollLeft { move-column-left; }
|
||||
|
||||
// Usually scrolling up and down with Shift in applications results in
|
||||
// horizontal scrolling; these binds replicate that.
|
||||
|
||||
// mod+滚轮上下 左右切换聚焦
|
||||
Mod+WheelScrollDown hotkey-overlay-title="滚轮切换聚焦 Change focus with wheel" { focus-column-right; }
|
||||
Mod+WheelScrollUp { focus-column-left; }
|
||||
// 再加上ctrl移动colume
|
||||
Mod+Ctrl+WheelScrollDown { move-column-right; }
|
||||
Mod+Ctrl+WheelScrollUp { move-column-left; }
|
||||
|
||||
// Similarly, you can bind touchpad scroll "ticks".
|
||||
// Touchpad scrolling is continuous, so for these binds it is split into
|
||||
// discrete intervals.
|
||||
// These binds are also affected by touchpad's natural-scroll, so these
|
||||
// example binds are "inverted", since we have natural-scroll enabled for
|
||||
// touchpads by default.
|
||||
// Mod+TouchpadScrollDown { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02+"; }
|
||||
// Mod+TouchpadScrollUp { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02-"; }
|
||||
|
||||
// You can refer to workspaces by index. However, keep in mind that
|
||||
// niri is a dynamic workspace system, so these commands are kind of
|
||||
// "best effort". Trying to refer to a workspace index bigger than
|
||||
// the current workspace count will instead refer to the bottommost
|
||||
// (empty) workspace.
|
||||
//
|
||||
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
|
||||
// will all refer to the 3rd workspace.
|
||||
// mod+数字切换工作区
|
||||
Mod+1 { focus-workspace 1; }
|
||||
Mod+2 { focus-workspace 2; }
|
||||
Mod+3 { focus-workspace 3; }
|
||||
Mod+4 { focus-workspace 4; }
|
||||
Mod+5 { focus-workspace 5; }
|
||||
Mod+6 { focus-workspace 6; }
|
||||
Mod+7 { focus-workspace 7; }
|
||||
Mod+8 { focus-workspace 8; }
|
||||
Mod+9 { focus-workspace 9; }
|
||||
// 再加上ctrl移动colume
|
||||
Mod+Ctrl+1 { move-column-to-workspace 1; }
|
||||
Mod+Ctrl+2 { move-column-to-workspace 2; }
|
||||
Mod+Ctrl+3 { move-column-to-workspace 3; }
|
||||
Mod+Ctrl+4 { move-column-to-workspace 4; }
|
||||
Mod+Ctrl+5 { move-column-to-workspace 5; }
|
||||
Mod+Ctrl+6 { move-column-to-workspace 6; }
|
||||
Mod+Ctrl+7 { move-column-to-workspace 7; }
|
||||
Mod+Ctrl+8 { move-column-to-workspace 8; }
|
||||
Mod+Ctrl+9 { move-column-to-workspace 9; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Ctrl+1 { move-window-to-workspace 1; }
|
||||
|
||||
// Switches focus between the current and the previous workspace.
|
||||
//Mod+Tab { focus-workspace-previous; }
|
||||
|
||||
// The following binds move the focused window in and out of a column.
|
||||
// If the window is alone, they will consume it into the nearby column to the side.
|
||||
// If the window is already in a column, they will expel it out.
|
||||
|
||||
// mod+左右方括号 移动窗口(不是移动colume,是允许移动到另一个colume的窗口移动)
|
||||
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||
Mod+BracketRight { consume-or-expel-window-right; }
|
||||
// mod+A/D 同效果
|
||||
Mod+A hotkey-overlay-title="向左移动窗口 Move window to left between columes" { consume-or-expel-window-left; }
|
||||
Mod+D hotkey-overlay-title="向右移动窗口 Move window to right between columes" { consume-or-expel-window-right; }
|
||||
// mod+S/W 上下切换窗口
|
||||
Mod+S { move-window-down; }
|
||||
Mod+W { move-window-up; }
|
||||
|
||||
// mod+逗号/句号 把窗口合并或者踢出当前的colume
|
||||
Mod+Comma { consume-window-into-column; }
|
||||
Mod+Period { expel-window-from-column; }
|
||||
// mod+shift+A/D 同效果
|
||||
Mod+Shift+A { consume-window-into-column; }
|
||||
Mod+Shift+D { expel-window-from-column; }
|
||||
// 开启colume的标签页模式(同一个colume中的窗口会以类似浏览器标签页的形式堆叠)
|
||||
Mod+Shift+X { toggle-column-tabbed-display; }
|
||||
Mod+X { toggle-column-tabbed-display; }
|
||||
// mod+鼠标侧键 上下切换聚焦
|
||||
Mod+MouseForward { focus-window-up; }
|
||||
Mod+MouseBack { focus-window-down; }
|
||||
|
||||
// 按照预设切换窗口宽度
|
||||
Mod+R hotkey-overlay-title="按预设切换宽度 Switch width " { switch-preset-column-width; }
|
||||
// Cycling through the presets in reverse order is also possible.
|
||||
// Mod+R { switch-preset-column-width-back; }
|
||||
|
||||
// 按照预设切换窗口高度
|
||||
Mod+Shift+R { switch-preset-window-height; }
|
||||
// 重置窗口高度
|
||||
Mod+Ctrl+R { reset-window-height; }
|
||||
|
||||
Mod+F hotkey-overlay-title="最大化 maximize" { maximize-column; }
|
||||
Mod+Alt+F hotkey-overlay-title="全屏 fullscreen" { fullscreen-window; }
|
||||
|
||||
// Expand the focused column to space not taken up by other fully visible columns.
|
||||
// Makes the column "fill the rest of the space".
|
||||
// 没什么用。增加窗口宽度占满空闲空间
|
||||
Mod+Ctrl+F { expand-column-to-available-width; }
|
||||
|
||||
// 居中当前聚焦的colume
|
||||
Mod+C { center-column; }
|
||||
|
||||
// Center all fully visible columns on screen.
|
||||
// 没什么用
|
||||
Mod+Ctrl+C { center-visible-columns; }
|
||||
|
||||
// Finer width adjustments.
|
||||
// This command can also:
|
||||
// * set width in pixels: "1000"
|
||||
// * adjust width in pixels: "-5" or "+5"
|
||||
// * set width as a percentage of screen width: "25%"
|
||||
// * adjust width as a percentage of screen width: "-10%" or "+10%"
|
||||
// Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
|
||||
// set-column-width "100" will make the column occupy 200 physical screen pixels.
|
||||
|
||||
// mod+加减号调整窗口宽度
|
||||
Mod+Minus { set-column-width "-5%"; }
|
||||
Mod+Equal { set-column-width "+5%"; }
|
||||
|
||||
// Finer height adjustments when in column with other windows.
|
||||
// mod+shift+加减号调整窗口高度
|
||||
Mod+Shift+Minus { set-window-height "-5%"; }
|
||||
Mod+Shift+Equal { set-window-height "+5%"; }
|
||||
|
||||
// Move the focused window between the floating and the tiling layout.
|
||||
// 切换浮动模式
|
||||
Mod+V hotkey-overlay-title="切换浮动 Toggle floating" { toggle-window-floating; }
|
||||
// 在浮动模式和非浮动模式之间切换聚焦
|
||||
Mod+Shift+V hotkey-overlay-title=null { switch-focus-between-floating-and-tiling; }
|
||||
Mod+N hotkey-overlay-title="切换浮动聚焦 Change focus to floating" { switch-focus-between-floating-and-tiling; }
|
||||
Alt+grave hotkey-overlay-title=null { switch-focus-between-floating-and-tiling; }
|
||||
|
||||
Mod+Alt+N hotkey-overlay-title=null { switch-focus-between-floating-and-tiling; }
|
||||
|
||||
// Toggle tabbed column display mode.
|
||||
// Windows in this column will appear as vertical tabs,
|
||||
// rather than stacked on top of each other.
|
||||
|
||||
|
||||
// Actions to switch layouts.
|
||||
// Note: if you uncomment these, make sure you do NOT have
|
||||
// a matching layout switch hotkey configured in xkb options above.
|
||||
// Having both at once on the same hotkey will break the switching,
|
||||
// since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
|
||||
//Mod+Shift+X { switch-layout "next"; }
|
||||
//Mod+Shift+Z { switch-layout "prev"; }
|
||||
|
||||
// 截图相关
|
||||
// 截图前创建一个用来触发截图音效进程的token
|
||||
Mod+Alt+A hotkey-overlay-title="选取区域截图 Select screenshot" {spawn-sh "niri msg action screenshot --show-pointer false && pkill -f -USR1 screenshot-sound.sh";}
|
||||
Mod+Alt+Ctrl+A hotkey-overlay-title="截取聚焦窗口 Focus-window screenshot" { spawn-sh "niri msg action screenshot-window && pkill -f -USR1 screenshot-sound.sh"; }
|
||||
Mod+Alt+Ctrl+Shift+A hotkey-overlay-title="截取显示器 Monitor screenshot" { spawn-sh "niri msg action screenshot-screen --show-pointer false && pkill -f -USR1 screenshot-sound.sh"; }
|
||||
Print hotkey-overlay-title=null {spawn-sh "niri msg action screenshot --show-pointer false && pkill -f -USR1 screenshot-sound.sh";}
|
||||
Ctrl+Print hotkey-overlay-title=null { spawn-sh "niri msg action screenshot-window --show-pointer false && pkill -f -USR1 screenshot-sound.sh"; }
|
||||
Shift+Print hotkey-overlay-title=null { spawn-sh "niri msg action screenshot-screen --show-pointer false && pkill -f -USR1 screenshot-sound.sh"; }
|
||||
|
||||
//Mod+Shift+S { spawn "~/.config/niri/scripts/satty-screenshot.sh";}
|
||||
Mod+Shift+S hotkey-overlay-title="截图后按下此键进行编辑 Edit the image after screenshot" { spawn-sh "wl-paste | satty -f -";}
|
||||
|
||||
// Applications such as remote-desktop clients and software KVM switches may
|
||||
// request that niri stops processing the keyboard shortcuts defined here
|
||||
// so they may, for example, forward the key presses as-is to a remote machine.
|
||||
// It's a good idea to bind an escape hatch to toggle the inhibitor,
|
||||
// so a buggy application can't hold your session hostage.
|
||||
//
|
||||
// The allow-inhibiting=false property can be applied to other binds as well,
|
||||
// which ensures niri always processes them, even when an inhibitor is active.
|
||||
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
||||
|
||||
// The quit action will show a confirmation dialog to avoid accidental exits.
|
||||
Mod+Shift+Ctrl+Q hotkey-overlay-title=null { spawn "wlogout"; }
|
||||
Mod+Shift+E hotkey-overlay-title="退出niri Quit niri" { quit; }
|
||||
// Powers off the monitors. To turn them back on, do any input like
|
||||
|
||||
// moving the mouse or pressing any other key.
|
||||
Mod+Alt+P hotkey-overlay-title="休眠 Turn off monitors" { spawn-sh "niri msg action power-off-monitors && hyprlock && systemctl suspend"; }
|
||||
|
||||
}
|
||||
210
minimal-niri-dotfiles/.config/niri/config.kdl
Normal file
210
minimal-niri-dotfiles/.config/niri/config.kdl
Normal file
@ -0,0 +1,210 @@
|
||||
// ██████ ██ ██ ██████ ███████ ██ ███ ██
|
||||
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||
// ███████ ███████ ██ ██ ██████ ██ ██ ██ ██
|
||||
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||
// ██████ ██ ██ ██████ ██ ██ ██ ██ ████
|
||||
|
||||
// 自25.11版本开始niri支持配置文件拆分,所有include都代表后面的文件是拆分出去的,不包含在这个文件内
|
||||
// binds里设置了快捷键,rule是窗口和layer规则,output是显示器,如果你用我的脚本安装,output里会是空的,配置方法可以看文档
|
||||
include "binds.kdl"
|
||||
include "rule.kdl"
|
||||
include "output.kdl"
|
||||
include "layout.kdl"
|
||||
// 截图保存位置
|
||||
screenshot-path "~/Pictures/Screenshots/Niri-screenshots/%Y-%m-%d %H-%M-%S.png"
|
||||
|
||||
// 环境变量
|
||||
|
||||
environment {
|
||||
//LC_CTYPE "zh_CN.UTF-8" 会导致输入法出现漏字
|
||||
//LC_MESSAGES "zh_CN.UTF-8" 让系统全局使用英文,仅主要界面为英文时使用这个环境变量
|
||||
// 设置界面语言
|
||||
LANG "zh_CN.UTF-8"
|
||||
LC_CTYPE "en_US.UTF-8" //这一项可以解决漏字问题,但是也许会导致steam之类的x11应用无法使用中文输入法
|
||||
// 输入法环境变量
|
||||
XMODIFIERS "@im=fcitx"
|
||||
// qt主题
|
||||
QT_QPA_PLATFORMTHEME "gtk3"
|
||||
QT_QPA_PLATFORMTHEME_QT6 "gtk3"
|
||||
// 解决quickshell图标主题缺失问题
|
||||
QS_ICON_THEME "Adwaita"
|
||||
// GTK软件使用的渲染器,可以解决n卡双显卡导致的GTK应用启动缓慢问题,AMD或Intel单显卡不需要这行设置可以注释掉
|
||||
GSK_RENDERER "gl"
|
||||
// 默认文本编辑器
|
||||
EDITOR "vim"
|
||||
|
||||
}
|
||||
|
||||
// 光标配置
|
||||
cursor {
|
||||
// 主题,存放路径在~/.local/share/icons
|
||||
xcursor-theme "breeze_cursors"
|
||||
// 大小
|
||||
xcursor-size 30
|
||||
// 闲置多少毫秒自动隐藏光标
|
||||
hide-after-inactive-ms 15000
|
||||
}
|
||||
|
||||
// 带缩略图的alt+tab切换窗口功能(但是我设置的是super+tab,更符合逻辑)
|
||||
recent-windows {
|
||||
// 取消//off的注释可以禁用
|
||||
// off
|
||||
debounce-ms 750
|
||||
open-delay-ms 150
|
||||
|
||||
highlight {
|
||||
active-color "#999999ff"
|
||||
urgent-color "#ff9999ff"
|
||||
// 缩略图背景内间距
|
||||
padding 30
|
||||
// 缩略图的背景圆角
|
||||
corner-radius 12
|
||||
}
|
||||
|
||||
//设置缩略图大小
|
||||
previews {
|
||||
max-height 480
|
||||
max-scale 0.2
|
||||
}
|
||||
|
||||
binds {
|
||||
// scope可以设置显示的窗口是当前工作区的、还是当前显示器的、或者显示全部窗口
|
||||
Mod+Tab { next-window scope="workspace"; }
|
||||
Mod+Shift+Tab { previous-window scope="workspace"; }
|
||||
// grave是波浪键,显示当前应用的所有窗口
|
||||
Mod+grave { next-window filter="app-id"; }
|
||||
Mod+Shift+grave { previous-window filter="app-id"; }
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
// You can set rules, model, layout, variant and options.
|
||||
// For more information, see xkeyboard-config(7).
|
||||
|
||||
// For example:
|
||||
// layout "us,ru"
|
||||
// options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
|
||||
|
||||
// If this section is empty, niri will fetch xkb settings
|
||||
// from org.freedesktop.locale1. You can control these using
|
||||
// localectl set-x11-keymap.
|
||||
}
|
||||
|
||||
// Enable numlock on startup, omitting this setting disables it.
|
||||
//numlock
|
||||
}
|
||||
|
||||
// Next sections include libinput settings.
|
||||
// Omitting settings disables them, or leaves them at their default values.
|
||||
// All commented-out settings here are examples, not defaults.
|
||||
touchpad {
|
||||
// off
|
||||
tap
|
||||
// dwt
|
||||
// dwtp
|
||||
// drag false
|
||||
// drag-lock
|
||||
// nautural-scroll可以翻转触摸板滚动的方向
|
||||
natural-scroll
|
||||
//accel-speed -0.5
|
||||
// accel-profile "flat"
|
||||
// scroll-method "two-finger"
|
||||
// disabled-on-external-mouse
|
||||
}
|
||||
|
||||
mouse {
|
||||
|
||||
// off
|
||||
// natural-scroll
|
||||
// 鼠标速度
|
||||
accel-speed -0.15
|
||||
// 禁用鼠标加速
|
||||
accel-profile "flat"
|
||||
// scroll-method "no-scroll"
|
||||
//speed of scroll,like:
|
||||
//scroll-factor horizontal=2.0 vertical=-5.0
|
||||
}
|
||||
|
||||
trackpoint {
|
||||
// off
|
||||
// natural-scroll
|
||||
// accel-speed 0.2
|
||||
// accel-profile "flat"
|
||||
// scroll-method "on-button-down"
|
||||
// scroll-button 273
|
||||
// scroll-button-lock
|
||||
// middle-emulation
|
||||
}
|
||||
|
||||
// Uncomment this to make the mouse warp to the center of newly focused windows.
|
||||
//warp-mouse-to-focus
|
||||
|
||||
// Focus windows and outputs automatically when moving the mouse into them.
|
||||
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
||||
//focus-follows-mouse max-scroll-amount="50%"
|
||||
}
|
||||
|
||||
//blur
|
||||
//blur {
|
||||
// off
|
||||
//passes 3
|
||||
//offset 2
|
||||
//noise 0.02
|
||||
//saturation 1.5
|
||||
//}
|
||||
|
||||
overview {
|
||||
// 关闭overview里的工作区阴影,配合layout里面的透明工作区背景可以做到让工作区和overview共用同一个背景。在意内存占用的可以把waypaper的后端改成swaybg,然后关闭桌面自动模糊功能,取消swww自动启动,能节省250MB左右内存
|
||||
workspace-shadow {
|
||||
//off
|
||||
}
|
||||
//缩放
|
||||
zoom 0.5
|
||||
}
|
||||
// Add lines like this to spawn processes at startup.
|
||||
// Note that running niri as a session supports xdg-desktop-autostart,
|
||||
// which may be more convenient to use.
|
||||
// See the binds section below for more ipawn examples.
|
||||
|
||||
// 询问管理员权限功能(身份验证)
|
||||
spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
|
||||
// 屏幕分享、录屏相关的环境设置,如果屏幕分享出异常的话可以开启
|
||||
spawn-sh-at-startup "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=niri & /usr/lib/xdg-desktop-portal-gnome"
|
||||
// GNOME tracker修复
|
||||
spawn-sh-at-startup "systemctl --user set-environment XDG_SESSION_CLASS=user"
|
||||
spawn-at-startup "foot" "-s"
|
||||
// 通知程序
|
||||
spawn-at-startup "mako"
|
||||
// 任务栏
|
||||
spawn-at-startup "waybar"
|
||||
// 输入法
|
||||
spawn-at-startup "fcitx5"
|
||||
// 剪贴板守护进程
|
||||
//cliphist
|
||||
spawn-at-startup "wl-paste" "--watch" "cliphist" "store"
|
||||
// wayland <--> x11 剪贴板同步 这个包是我自己推的clipsync-git
|
||||
//spawn-at-startup "systemctl" "--user" "start" "clipsync"
|
||||
// 闲置时自动熄屏锁屏睡眠的脚本,说实话这东西毫无用处,super+alt+P可以熄屏休眠
|
||||
// spawn-at-startup "~/.config/niri/scripts/swayidle.sh"
|
||||
// 自动开启护眼模式,经纬度设置位置
|
||||
spawn-at-startup "~/.config/niri/scripts/toggle-wlsunset"
|
||||
// 截图音效的守护进程
|
||||
spawn-at-startup "~/.config/niri/scripts/screenshot-sound.sh"
|
||||
// 允许root通过用户的xwayland打开窗口
|
||||
spawn-at-startup "xhost" "+si:localuser:root"
|
||||
|
||||
// 取消启动niri时自动开启快捷键教程
|
||||
hotkey-overlay {
|
||||
// Uncomment this line to disable the "Important Hotkeys" pop-up at startup.
|
||||
skip-at-startup
|
||||
}
|
||||
|
||||
// 隐藏窗口标题栏
|
||||
prefer-no-csd
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
101
minimal-niri-dotfiles/.config/niri/hyprlock-colors.conf
Normal file
101
minimal-niri-dotfiles/.config/niri/hyprlock-colors.conf
Normal file
@ -0,0 +1,101 @@
|
||||
|
||||
$background = rgba(131318ff)
|
||||
|
||||
$error = rgba(ffb4abff)
|
||||
|
||||
$error_container = rgba(93000aff)
|
||||
|
||||
$inverse_on_surface = rgba(303036ff)
|
||||
|
||||
$inverse_primary = rgba(555a92ff)
|
||||
|
||||
$inverse_surface = rgba(e4e1e9ff)
|
||||
|
||||
$on_background = rgba(e4e1e9ff)
|
||||
|
||||
$on_error = rgba(690005ff)
|
||||
|
||||
$on_error_container = rgba(ffdad6ff)
|
||||
|
||||
$on_primary = rgba(262b60ff)
|
||||
|
||||
$on_primary_container = rgba(e0e0ffff)
|
||||
|
||||
$on_primary_fixed = rgba(10144bff)
|
||||
|
||||
$on_primary_fixed_variant = rgba(3d4279ff)
|
||||
|
||||
$on_secondary = rgba(2e2f42ff)
|
||||
|
||||
$on_secondary_container = rgba(e1e0f9ff)
|
||||
|
||||
$on_secondary_fixed = rgba(191a2cff)
|
||||
|
||||
$on_secondary_fixed_variant = rgba(444559ff)
|
||||
|
||||
$on_surface = rgba(e4e1e9ff)
|
||||
|
||||
$on_surface_variant = rgba(c7c5d0ff)
|
||||
|
||||
$on_tertiary = rgba(45263cff)
|
||||
|
||||
$on_tertiary_container = rgba(ffd8eeff)
|
||||
|
||||
$on_tertiary_fixed = rgba(2e1126ff)
|
||||
|
||||
$on_tertiary_fixed_variant = rgba(5e3c53ff)
|
||||
|
||||
$outline = rgba(91909aff)
|
||||
|
||||
$outline_variant = rgba(46464fff)
|
||||
|
||||
$primary = rgba(bec2ffff)
|
||||
|
||||
$primary_container = rgba(3d4279ff)
|
||||
|
||||
$primary_fixed = rgba(e0e0ffff)
|
||||
|
||||
$primary_fixed_dim = rgba(bec2ffff)
|
||||
|
||||
$scrim = rgba(000000ff)
|
||||
|
||||
$secondary = rgba(c5c4ddff)
|
||||
|
||||
$secondary_container = rgba(444559ff)
|
||||
|
||||
$secondary_fixed = rgba(e1e0f9ff)
|
||||
|
||||
$secondary_fixed_dim = rgba(c5c4ddff)
|
||||
|
||||
$shadow = rgba(000000ff)
|
||||
|
||||
$source_color = rgba(5a61b1ff)
|
||||
|
||||
$surface = rgba(131318ff)
|
||||
|
||||
$surface_bright = rgba(39393fff)
|
||||
|
||||
$surface_container = rgba(1f1f25ff)
|
||||
|
||||
$surface_container_high = rgba(2a292fff)
|
||||
|
||||
$surface_container_highest = rgba(34343aff)
|
||||
|
||||
$surface_container_low = rgba(1b1b21ff)
|
||||
|
||||
$surface_container_lowest = rgba(0e0e13ff)
|
||||
|
||||
$surface_dim = rgba(131318ff)
|
||||
|
||||
$surface_tint = rgba(bec2ffff)
|
||||
|
||||
$surface_variant = rgba(46464fff)
|
||||
|
||||
$tertiary = rgba(e7b9d5ff)
|
||||
|
||||
$tertiary_container = rgba(5e3c53ff)
|
||||
|
||||
$tertiary_fixed = rgba(ffd8eeff)
|
||||
|
||||
$tertiary_fixed_dim = rgba(e7b9d5ff)
|
||||
|
||||
148
minimal-niri-dotfiles/.config/niri/hyprlock.conf
Normal file
148
minimal-niri-dotfiles/.config/niri/hyprlock.conf
Normal file
@ -0,0 +1,148 @@
|
||||
# 引入 Matugen 生成的颜色文件
|
||||
# 确保 Matugen 已经运行并生成了此文件,否则变量无法解析
|
||||
source = ~/.config/niri/hyprlock-colors.conf
|
||||
|
||||
# 定义字体变量,方便统一修改
|
||||
$font = JetBrains Maple Mono
|
||||
$font_clock = JetBrains Maple Mono
|
||||
|
||||
general {
|
||||
hide_cursor = false # 锁屏时不隐藏鼠标光标
|
||||
ignore_empty_input = true # 开启后,输入框为空时按回车不会显示“验证失败”,而是直接忽略
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = true
|
||||
# 贝塞尔曲线定义 (控制动画速度变化)
|
||||
bezier = linear, 1, 1, 0, 0
|
||||
# 动画定义: 动画名, 开关(1/0), 持续时间, 曲线
|
||||
animation = fadeIn, 1, 3, linear # 淡入动画
|
||||
animation = fadeOut, 1, 5, linear # 淡出动画
|
||||
animation = inputFieldDots, 1, 2, linear # 输入密码时圆点的跳动动画
|
||||
}
|
||||
|
||||
background {
|
||||
monitor = # 留空表示应用到所有显示器
|
||||
path = screenshot # 使用当前屏幕截图作为背景
|
||||
color = $surface # 如果截图加载失败,使用的默认背景色
|
||||
|
||||
# === 高斯模糊与质感设置 ===
|
||||
# 这些参数共同营造出“磨砂玻璃”的高级感
|
||||
blur_size = 5 # 模糊半径
|
||||
blur_passes = 4 # 模糊迭代次数 (越高越平滑,但消耗性能)
|
||||
noise = 0.01 # 添加轻微噪点,防止色带(banding)并增加胶片感
|
||||
contrast = 1.3000 # 提高对比度,让文字更清晰
|
||||
brightness = 0.8000 # 降低亮度,避免背景太亮抢眼
|
||||
vibrancy = 0.2100 # 增加色彩鲜艳度
|
||||
vibrancy_darkness = 0.0
|
||||
}
|
||||
|
||||
# === 视觉重心上移 (Visual Shift Up) ===
|
||||
# 策略:保持上一版完美的紧凑间距,将整体坐标向上平移约 20%
|
||||
# 这样时间组件会占据屏幕的上三分之一处,留下开阔的中下部空间。
|
||||
|
||||
# Hours (小时)
|
||||
label {
|
||||
monitor =
|
||||
# cmd[update:1000]: 每 1000ms (1秒) 更新一次
|
||||
# <b><big>: Pango 标记语法,用于加粗和放大字体
|
||||
text = cmd[update:1000] echo "<b><big> $(date +"%H") </big></b>"
|
||||
color = $primary # 使用主色调
|
||||
|
||||
font_size = 130
|
||||
font_family = $font_clock
|
||||
|
||||
# 文字阴影设置,增加立体感
|
||||
shadow_passes = 3 # 阴影迭代次数
|
||||
shadow_size = 4 # 阴影扩散大小
|
||||
|
||||
# 上移至 29% (垂直方向)
|
||||
position = 0, 29%
|
||||
halign = center # 水平居中
|
||||
valign = center # 垂直居中
|
||||
}
|
||||
|
||||
# Minutes (分钟)
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:1000] echo "<b><big> $(date +"%M") </big></b>"
|
||||
color = $primary
|
||||
|
||||
font_size = 130
|
||||
font_family = $font_clock
|
||||
|
||||
shadow_passes = 3
|
||||
shadow_size = 4
|
||||
|
||||
# 保持 13% 的黄金间距 -> 19% (相对于小时的位置)
|
||||
# 这里的 16% 是绝对位置
|
||||
position = 0, 16%
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# === 日期信息 (Date Info) ===
|
||||
|
||||
# Today (星期几)
|
||||
label {
|
||||
monitor =
|
||||
# cmd[update:18000000]: 更新频率很低,因为星期几很久才变一次,节省资源
|
||||
text = cmd[update:18000000] echo "<b><big> "$(date +'%A')" </big></b>"
|
||||
color = $secondary # 使用次级颜色,建立视觉层级
|
||||
|
||||
font_size = 28
|
||||
font_family = $font
|
||||
|
||||
# 紧随分钟下方 -> 7%
|
||||
position = 0, 7%
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# Week (日期)
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:18000000] echo "<b> "$(date +'%b %d')" </b>"
|
||||
color = $secondary
|
||||
|
||||
font_size = 18
|
||||
font_family = $font
|
||||
|
||||
# 收尾 -> 4%
|
||||
position = 0, 4%
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# === 底部交互区 (Interaction Area) ===
|
||||
|
||||
# Input Field (输入框)
|
||||
input-field {
|
||||
monitor =
|
||||
size = 9%, 3.1% # 使用百分比宽高,适配不同分辨率的屏幕
|
||||
outline_thickness = 2 # 边框粗细
|
||||
|
||||
# 密码掩码圆点设置
|
||||
dots_size = 0.26 # 圆点相对于输入框高度的大小
|
||||
dots_spacing = 0.64 # 圆点之间的间距
|
||||
dots_center = true # 圆点垂直居中
|
||||
dots_rounding = -1 # -1 表示完美的圆形
|
||||
|
||||
rounding = 12 # 输入框圆角半径
|
||||
|
||||
# 颜色设置 (支持渐变)
|
||||
# 这里的 outer_color 使用了渐变色: 主色 -> 第三色 -> 主色
|
||||
outer_color = $primary $tertiary $primary
|
||||
inner_color = $surface_container # 输入框背景色
|
||||
font_color = $on_surface # 输入文字颜色
|
||||
check_color = $secondary # 验证中颜色
|
||||
fail_color = $error # 验证失败颜色
|
||||
|
||||
fade_on_empty = false # 即使没有输入内容,输入框也保持显示 (不消失)
|
||||
placeholder_text = <i>Password...</i> # 占位符提示文字 (斜体)
|
||||
|
||||
# 保持在底部 10%,与上方的时间形成极大的张力
|
||||
position = 0, 10%
|
||||
halign = center # 水平居中
|
||||
valign = bottom # 垂直对齐到底部
|
||||
}
|
||||
161
minimal-niri-dotfiles/.config/niri/layout.kdl
Normal file
161
minimal-niri-dotfiles/.config/niri/layout.kdl
Normal file
@ -0,0 +1,161 @@
|
||||
|
||||
layout {
|
||||
|
||||
//设置工作区背景颜色
|
||||
//background-color "transparent"
|
||||
// Set gaps around windows in logical pixels.
|
||||
// 窗口和窗口之间的间距
|
||||
gaps 12
|
||||
//empty-workspace-above-first
|
||||
// When to center a column when changing focus, options are:
|
||||
// - "never", default behavior, focusing an off-screen column will keep at the left
|
||||
// or right edge of the screen.
|
||||
// - "always", the focused column will always be centered.
|
||||
// - "on-overflow", focusing a column will center it if it doesn't fit
|
||||
// together with the previously focused column.
|
||||
center-focused-column "never"
|
||||
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
||||
// 预设窗口宽度
|
||||
preset-column-widths {
|
||||
// Proportion sets the width as a fraction of the output width, taking gaps into account.
|
||||
// For example, you can perfectly fit four windows sized "proportion 0.25" on an output.
|
||||
// The default preset widths are 1/3, 1/2 and 2/3 of the output.
|
||||
proportion 0.33333
|
||||
proportion 0.5
|
||||
proportion 0.66667
|
||||
// Fixed sets the width in logical pixels exactly.
|
||||
// fixed 1920
|
||||
}
|
||||
|
||||
// You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
|
||||
// preset-window-heights { }
|
||||
|
||||
// You can change the default width of the new windows.
|
||||
// 默认的窗口宽度
|
||||
default-column-width { proportion 0.5; }
|
||||
// If you leave the brackets empty, the windows themselves will decide their initial width.
|
||||
// default-column-width {}
|
||||
|
||||
// By default focus ring and border are rendered as a solid background rectangle
|
||||
// behind windows. That is, they will show up through semitransparent windows.
|
||||
// This is because windows using client-side decorations can have an arbitrary shape.
|
||||
//
|
||||
// If you don't like that, you should uncomment `prefer-no-csd` below.
|
||||
// Niri will draw focus ring and border *around* windows that agree to omit their
|
||||
// client-side decorations.
|
||||
//
|
||||
// Alternatively, you can override it with a window rule called
|
||||
// `draw-border-with-background`.
|
||||
|
||||
// You can change how the focus ring looks.
|
||||
// 聚焦窗口边框,这个的颜色设置在我include进来的colors.kdl里
|
||||
focus-ring {
|
||||
// Uncomment this line to disable the focus ring.
|
||||
// off
|
||||
// How many logical pixels the ring extends out from the windows.
|
||||
width 3
|
||||
|
||||
// Colors can be set in a variety of ways:
|
||||
// - CSS named colors: "red"
|
||||
// - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
|
||||
// - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
|
||||
|
||||
// Color of the ring on the active monitor.
|
||||
//active-color "@primary"
|
||||
//active-color "#00000000"
|
||||
// Color of the ring on inactive monitors.
|
||||
//
|
||||
// The focus ring only draws around the active window, so the only place
|
||||
// where you can see its inactive-color is on other monitors.
|
||||
//inactive-color "#505050"
|
||||
|
||||
// You can also use gradients. They take precedence over solid colors.
|
||||
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
|
||||
// The angle is the same as in linear-gradient, and is optional,
|
||||
// defaulting to 180 (top-to-bottom gradient).
|
||||
// You can use any CSS linear-gradient tool on the web to set these up.
|
||||
// Changing the color space is also supported, check the wiki for more info.
|
||||
//
|
||||
// active-gradient from="#80c8ff" to="#c7ff7f" angle=45
|
||||
|
||||
// You can also color the gradient relative to the entire view
|
||||
// of the workspace, rather than relative to just the window itself.
|
||||
// To do that, set relative-to="workspace-view".
|
||||
//
|
||||
//inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||
}
|
||||
|
||||
// You can also add a border. It's similar to the focus ring, but always visible.
|
||||
// 窗口边框
|
||||
border {
|
||||
// The settings are the same as for the focus ring.
|
||||
// If you enable the border, you probably want to disable the focus ring.
|
||||
off
|
||||
|
||||
width 4
|
||||
active-color "#ffc87f"
|
||||
inactive-color "#505050"
|
||||
|
||||
// Color of the border around windows that request your attention.
|
||||
urgent-color "#9b0000"
|
||||
|
||||
// Gradients can use a few different interpolation color spaces.
|
||||
// For example, this is a pastel rainbow gradient via in="oklch longer hue".
|
||||
//
|
||||
// active-gradient from="#e5989b" to="#ffb4a2" angle=45 relative-to="workspace-view" in="oklch longer hue"
|
||||
|
||||
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||
}
|
||||
|
||||
// You can enable drop shadows for windows.
|
||||
// 阴影
|
||||
shadow {
|
||||
// Uncomment the next line to enable shadows.
|
||||
on
|
||||
|
||||
// By default, the shadow draws only around its window, and not behind it.
|
||||
// Uncomment this setting to make the shadow draw behind its window.
|
||||
//
|
||||
// Note that niri has no way of knowing about the CSD window corner
|
||||
// radius. It has to assume that windows have square corners, leading to
|
||||
// shadow artifacts inside the CSD rounded corners. This setting fixes
|
||||
// those artifacts.
|
||||
//
|
||||
// However, instead you may want to set prefer-no-csd and/or
|
||||
// geometry-corner-radius. Then, niri will know the corner radius and
|
||||
// draw the shadow correctly, without having to draw it behind the
|
||||
// window. These will also remove client-side shadows if the window
|
||||
// draws any.
|
||||
//
|
||||
//draw-behind-window true
|
||||
|
||||
// You can change how shadows look. The values below are in logical
|
||||
// pixels and match the CSS box-shadow properties.
|
||||
|
||||
// Softness controls the shadow blur radius.
|
||||
softness 20
|
||||
|
||||
// Spread expands the shadow.
|
||||
spread 2
|
||||
|
||||
// Offset moves the shadow relative to the window.
|
||||
offset x=-4 y=-4
|
||||
|
||||
// You can also change the shadow color and opacity.
|
||||
color "rgba(0, 0, 0, 0.7)"
|
||||
}
|
||||
|
||||
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
|
||||
// You can think of them as a kind of outer gaps. They are set in logical pixels.
|
||||
// Left and right struts will cause the next window to the side to always be visible.
|
||||
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
|
||||
// layer-shell panels and regular gaps.
|
||||
|
||||
//窗口距离屏幕边缘的距离
|
||||
struts {
|
||||
//left 64
|
||||
// right 64
|
||||
// top 64
|
||||
// bottom 64
|
||||
}
|
||||
}
|
||||
16
minimal-niri-dotfiles/.config/niri/output-example.kdl
Normal file
16
minimal-niri-dotfiles/.config/niri/output-example.kdl
Normal file
@ -0,0 +1,16 @@
|
||||
output "eDP-1"{
|
||||
// off
|
||||
mode "2560x1440@165"
|
||||
scale 1.3
|
||||
position x=0 y=0
|
||||
|
||||
}
|
||||
output "DP-2"{
|
||||
//主要显示器DP-2
|
||||
mode "2560x1440@180"
|
||||
scale 1
|
||||
position x=0 y=0
|
||||
focus-at-startup
|
||||
|
||||
}
|
||||
|
||||
175
minimal-niri-dotfiles/.config/niri/rule.kdl
Normal file
175
minimal-niri-dotfiles/.config/niri/rule.kdl
Normal file
@ -0,0 +1,175 @@
|
||||
// Window rules let you adjust behavior for individual windows.
|
||||
// Find more information on the wiki:
|
||||
// https://yalter.github.io/niri/Configuration:-Window-Rules
|
||||
|
||||
// 放进overview里的壁纸程序
|
||||
layer-rule{
|
||||
match namespace="hyprpaper"
|
||||
match namespace="wallpaper"
|
||||
match namespace="awww-daemon"
|
||||
match namespace="swww-daemonoverview"
|
||||
place-within-backdrop true
|
||||
}
|
||||
// 全局窗口规则
|
||||
window-rule {
|
||||
// 这一行规则可以让niri变成传统桌面那样的堆叠式桌面。
|
||||
//open-floating true
|
||||
// 圆角
|
||||
//geometry-corner-radius 8
|
||||
// 去掉超出圆角的窗口内容
|
||||
//clip-to-geometry true
|
||||
// 全局透明度
|
||||
//opacity 0.98
|
||||
// 禁止边框画到背景里
|
||||
draw-border-with-background false
|
||||
}
|
||||
|
||||
// niri-siderbar需要的全局窗口规则
|
||||
window-rule {
|
||||
match is-floating=true
|
||||
min-width 100
|
||||
min-height 100
|
||||
}
|
||||
|
||||
// 以浮动模式打开imv(一个轻量化图片预览程序)且不自动聚焦
|
||||
window-rule {
|
||||
match app-id="imv"
|
||||
open-focused false
|
||||
open-floating true
|
||||
}
|
||||
//shorinclip剪贴板TUI
|
||||
window-rule{
|
||||
match app-id="shorinclip"
|
||||
default-column-width { fixed 625; }
|
||||
default-window-height { fixed 700; }
|
||||
//min-height 800
|
||||
open-floating true
|
||||
default-floating-position x=0 y=18 relative-to="top"
|
||||
}
|
||||
// 以浮动模式打开的软件
|
||||
window-rule {
|
||||
// This app-id regular expression will work for both:
|
||||
// - host Firefox (app-id is "firefox")
|
||||
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||
match app-id="com.gabm.satty"
|
||||
match app-id="media_info"
|
||||
match app-id="video2gif"
|
||||
match app-id="floating-term"
|
||||
match app-id="nm-connection-editor"
|
||||
match app-id="niri-quick-switch"
|
||||
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
||||
match app-id="steam" title="Friends List"
|
||||
match app-id="blueberry.py" title="蓝牙"
|
||||
match app-id="blueman-manager"
|
||||
match app-id="flameshot"
|
||||
match app-id="com.github.hluk.copyq"
|
||||
match app-id="be.alexandervanhee.gradia"
|
||||
match app-id="org.pulseaudio.pavucontrol" title="音量控制"
|
||||
match app-id="org.gnome.clocks" title="时钟"
|
||||
match app-id="fcitx" title="Fcitx5 Input Window"
|
||||
match app-id="org.gnome.FileRoller"
|
||||
match app-id="thunar" title="文件操作进度"
|
||||
match app-id="waypaper"
|
||||
match app-id="clipse-gui"
|
||||
match title="群聊的聊天记录"
|
||||
match title="聊天记录"
|
||||
match title="日历"
|
||||
match title="重命名"
|
||||
match app-id="btrfs-assistant"
|
||||
match app-id="markpix"
|
||||
match title="Steam 设置"
|
||||
match title="另存为"
|
||||
match app-id="better_control.py"
|
||||
open-floating true
|
||||
}
|
||||
// waybar命令中心模块
|
||||
window-rule {
|
||||
match app-id="command-center"
|
||||
default-column-width { fixed 1000; }
|
||||
default-window-height { fixed 600; }
|
||||
open-floating true
|
||||
}
|
||||
//快速终端和笔记
|
||||
window-rule {
|
||||
match app-id="notebook"
|
||||
match app-id="quickterminal"
|
||||
open-floating true
|
||||
default-floating-position x=20 y=20 relative-to="top"
|
||||
}
|
||||
window-rule{
|
||||
match app-id="bluetui"
|
||||
match app-id="impala"
|
||||
default-column-width { fixed 800; }
|
||||
default-window-height { fixed 800; }
|
||||
open-floating true
|
||||
}
|
||||
window-rule {
|
||||
match app-id="clipse"
|
||||
default-column-width { fixed 625; }
|
||||
default-window-height { fixed 700; }
|
||||
open-floating true
|
||||
}
|
||||
// waydroid调整
|
||||
window-rule {
|
||||
match title="gsr ui"
|
||||
match app-id="waydroid"
|
||||
open-fullscreen true
|
||||
open-floating true
|
||||
focus-ring{
|
||||
off
|
||||
}
|
||||
shadow {
|
||||
off
|
||||
}
|
||||
}
|
||||
// 取消图片预览、视频播放器之类的透明度,并且以浮动模式打开
|
||||
window-rule {
|
||||
match title="图片查看器"
|
||||
match title="画中画"
|
||||
match title="图片和视频"
|
||||
match title="视频播放器"
|
||||
open-floating true
|
||||
opacity 1.0
|
||||
}
|
||||
window-rule {
|
||||
match app-id="mpv"
|
||||
match app-id="celluloid"
|
||||
opacity 1.0
|
||||
}
|
||||
|
||||
|
||||
window-rule {
|
||||
// This regular expression is intentionally made as specific as possible,
|
||||
// since this is the default config, and we want no false positives.
|
||||
// You can get away with just app-id="wezterm" if you want.
|
||||
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
||||
default-column-width {}
|
||||
}
|
||||
/-window-rule {
|
||||
// This app-id regular expression will work for both:
|
||||
// - host Firefox (app-id is "firefox")
|
||||
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||
default-floating-position x=0 y=0 relative-to="bottom-right"
|
||||
open-floating true
|
||||
}
|
||||
// window-rule {
|
||||
// // This app-id regular expression will work for both:
|
||||
// // - host Firefox (app-id is "firefox")
|
||||
// // - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||
|
||||
// match app-id="blueman-manager" title="蓝牙设备"
|
||||
// match app-id="org.pulseaudio.pavucontrol" title="音量控制"
|
||||
// default-floating-position x=0 y=0 relative-to="top-right"
|
||||
// open-floating true
|
||||
// }
|
||||
// Example: block out two password managers from screen capture.
|
||||
// (This example rule is commented out with a "/-" in front.)
|
||||
window-rule {
|
||||
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
||||
match app-id="wechat"
|
||||
block-out-from "screen-capture"
|
||||
|
||||
// Use this instead if you want them visible on third-party screenshot tools.
|
||||
// block-out-from "screencast"
|
||||
}
|
||||
58
minimal-niri-dotfiles/.config/niri/scripts/niri-binds
Normal file
58
minimal-niri-dotfiles/.config/niri/scripts/niri-binds
Normal file
@ -0,0 +1,58 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
NIRI_DIR="$HOME/.config/niri"
|
||||
|
||||
# === 界面尺寸设置 (在这里微调,下方的所有终端会自动应用) ===
|
||||
MENU_WIDTH=90
|
||||
MENU_HEIGHT=20
|
||||
|
||||
# 检查目录
|
||||
if [[ ! -d "$NIRI_DIR" ]]; then
|
||||
echo "Error: 找不到配置目录 $NIRI_DIR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 提取并使用 column 对齐
|
||||
MENU_ITEMS=$(grep -Rh 'hotkey-overlay-title=' "$NIRI_DIR" --include="*.kdl" | \
|
||||
grep -v '^[ \t]*//' | \
|
||||
sed -n -E 's/^[ \t]*(.*)[ \t]+hotkey-overlay-title="([^"]+)".*/\1|\2/p' | \
|
||||
sed -E 's/[ \t]*\|/\|/' | \
|
||||
column -t -s '|')
|
||||
|
||||
if [[ -z "$MENU_ITEMS" ]]; then
|
||||
echo "没有找到有效的快捷键配置。"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Fzf 核心命令
|
||||
FZF_CMD="echo \"$MENU_ITEMS\" | fzf --reverse --prompt=' 快捷键: ' --info=hidden --border=none > /dev/null"
|
||||
|
||||
# 动态检测终端并使用对应的参数启动
|
||||
if command -v kitty >/dev/null 2>&1; then
|
||||
kitty --class "niri-hotkey-menu" --title "快捷键菜单" \
|
||||
-o remember_window_size=no -o initial_window_width=${MENU_WIDTH}c -o initial_window_height=${MENU_HEIGHT}c \
|
||||
bash -c "$FZF_CMD"
|
||||
|
||||
elif command -v foot >/dev/null 2>&1; then
|
||||
foot --app-id "niri-hotkey-menu" --title "快捷键菜单" \
|
||||
--window-size-chars=${MENU_WIDTH}x${MENU_HEIGHT} \
|
||||
bash -c "$FZF_CMD"
|
||||
|
||||
elif command -v alacritty >/dev/null 2>&1; then
|
||||
alacritty --class "niri-hotkey-menu" --title "快捷键菜单" \
|
||||
-o window.dimensions.columns=${MENU_WIDTH} -o window.dimensions.lines=${MENU_HEIGHT} \
|
||||
-e bash -c "$FZF_CMD"
|
||||
|
||||
elif command -v wezterm >/dev/null 2>&1; then
|
||||
wezterm start --class "niri-hotkey-menu" -- bash -c "$FZF_CMD"
|
||||
|
||||
elif [[ -n "$TERMINAL" ]]; then
|
||||
$TERMINAL -e bash -c "$FZF_CMD"
|
||||
|
||||
else
|
||||
echo "Error: 未检测到支持的终端模拟器。"
|
||||
if command -v fuzzel >/dev/null 2>&1; then
|
||||
# Fuzzel 降级方案也会自动读取顶层变量
|
||||
echo "$MENU_ITEMS" | fuzzel --dmenu -i -p " 快捷键: " -w ${MENU_WIDTH} > /dev/null
|
||||
fi
|
||||
fi
|
||||
@ -0,0 +1,152 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import subprocess
|
||||
import json
|
||||
import sys
|
||||
import shutil
|
||||
import time # <--- 新增:用于等待窗口关闭生效
|
||||
|
||||
# ================= Configuration =================
|
||||
EXCLUDE_APPS = ["fuzzel", "quick-switch", "niri-quick-switch"]
|
||||
FUZZEL_ARGS = [
|
||||
"--dmenu",
|
||||
"--index",
|
||||
"--width", "60",
|
||||
"--lines", "15",
|
||||
"--prompt", "Switch: ",
|
||||
# 修改了这里:提示 Ctrl+L 跳转,Ctrl+H 关闭
|
||||
"--placeholder", "Search... [Ctrl+J/K: Select | Ctrl+L: Switch | Ctrl+H: Close]"
|
||||
]
|
||||
# =================================================
|
||||
|
||||
def run_cmd(cmd):
|
||||
try:
|
||||
result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
|
||||
if result.returncode != 0: return None
|
||||
if "-j" in cmd:
|
||||
return json.loads(result.stdout)
|
||||
return result.stdout
|
||||
except Exception: return None
|
||||
|
||||
def get_active_output_workspace_ids():
|
||||
"""
|
||||
获取当前活动显示器(output)上的所有工作区 ID
|
||||
"""
|
||||
workspaces = run_cmd("niri msg -j workspaces")
|
||||
if not workspaces: return set()
|
||||
|
||||
# 1. 找到当前聚焦的工作区所在的显示器名称
|
||||
active_output = None
|
||||
for ws in workspaces:
|
||||
if ws.get("is_focused"):
|
||||
active_output = ws.get("output")
|
||||
break
|
||||
|
||||
if not active_output: return set()
|
||||
|
||||
# 2. 收集该显示器上的所有工作区 ID
|
||||
valid_ws_ids = set()
|
||||
for ws in workspaces:
|
||||
if ws.get("output") == active_output:
|
||||
valid_ws_ids.add(ws.get("id"))
|
||||
|
||||
return valid_ws_ids
|
||||
|
||||
def get_window_sort_key(w):
|
||||
# 将 workspace_id 作为第一排序优先级,确保不同工作区的窗口按组排列
|
||||
ws_id = w.get("workspace_id", 0)
|
||||
|
||||
if w.get("is_floating"):
|
||||
return (ws_id, 99999, 0, w.get("id"))
|
||||
try:
|
||||
layout = w.get("layout", {})
|
||||
if not layout: return (ws_id, 9999, 0, w.get("id"))
|
||||
pos = layout.get("pos_in_scrolling_layout")
|
||||
if pos and isinstance(pos, list) and len(pos) >= 2:
|
||||
return (ws_id, pos[0], pos[1], w.get("id"))
|
||||
except Exception:
|
||||
pass
|
||||
return (ws_id, 9999, 0, w.get("id"))
|
||||
|
||||
def main():
|
||||
if not shutil.which("fuzzel"):
|
||||
print("Error: Fuzzel not found")
|
||||
sys.exit(1)
|
||||
|
||||
# === 核心改动:开启死循环 ===
|
||||
while True:
|
||||
# 1. 每次循环重新获取当前显示器上的所有 Workspace ID
|
||||
valid_ws_ids = get_active_output_workspace_ids()
|
||||
if not valid_ws_ids: break
|
||||
|
||||
# 2. 每次循环都重新获取最新的窗口列表
|
||||
windows = run_cmd("niri msg -j windows")
|
||||
if not windows: break
|
||||
|
||||
current_windows = []
|
||||
for w in windows:
|
||||
# 判断窗口是否在允许的工作区集合内
|
||||
if w.get("workspace_id") not in valid_ws_ids: continue
|
||||
app_id = w.get("app_id") or ""
|
||||
if app_id in EXCLUDE_APPS: continue
|
||||
current_windows.append(w)
|
||||
|
||||
# 如果没有窗口了,直接退出
|
||||
if not current_windows: break
|
||||
|
||||
current_windows.sort(key=get_window_sort_key)
|
||||
|
||||
input_str = ""
|
||||
for w in current_windows:
|
||||
app_id = w.get("app_id") or "Wayland"
|
||||
title = w.get("title", "No Title").replace("\n", " ")
|
||||
display_str = f"[{app_id}] {title}"
|
||||
line = f"{display_str}\0icon\x1f{app_id}"
|
||||
input_str += f"{line}\n"
|
||||
|
||||
try:
|
||||
# 3. 启动 Fuzzel
|
||||
proc = subprocess.Popen(
|
||||
["fuzzel"] + FUZZEL_ARGS,
|
||||
stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE,
|
||||
text=True
|
||||
)
|
||||
stdout, _ = proc.communicate(input=input_str)
|
||||
|
||||
return_code = proc.returncode
|
||||
raw_output = stdout.strip()
|
||||
|
||||
# 情况 A: 用户按 ESC 取消 -> 退出循环
|
||||
if return_code not in [0, 10] or not raw_output:
|
||||
break
|
||||
|
||||
try:
|
||||
selected_idx = int(raw_output)
|
||||
except ValueError:
|
||||
break
|
||||
|
||||
if 0 <= selected_idx < len(current_windows):
|
||||
target_window = current_windows[selected_idx]
|
||||
target_id = target_window.get("id")
|
||||
|
||||
if return_code == 0:
|
||||
# 动作: 切换窗口 -> 任务完成,退出循环
|
||||
subprocess.run(["niri", "msg", "action", "focus-window", "--id", str(target_id)])
|
||||
break
|
||||
|
||||
elif return_code == 10:
|
||||
# 动作: 关闭窗口 -> 执行关闭,然后 CONTINUE (继续循环)
|
||||
subprocess.run(["niri", "msg", "action", "close-window", "--id", str(target_id)])
|
||||
|
||||
# 关键:稍微等一下,让 niri 有时间处理关闭动作,
|
||||
# 否则立刻刷新列表可能还会看到那个已经被杀死的窗口
|
||||
time.sleep(0.1)
|
||||
continue
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
break
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@ -0,0 +1,72 @@
|
||||
#!/bin/bash
|
||||
|
||||
# =================配置区域=================
|
||||
SOUND="/usr/share/sounds/freedesktop/stereo/camera-shutter.oga"
|
||||
# 这是一个“扳机”文件,存于内存中 (/dev/shm),读写极快
|
||||
TRIGGER_FILE="/dev/shm/niri_screenshot_armed"
|
||||
# 有效期:按下截图键后,多少秒内产生了图片才响?(防止你取消截图后,下次复制图片误响)
|
||||
TIMEOUT_SEC=15
|
||||
# =========================================
|
||||
|
||||
# 环境检查
|
||||
if ! command -v pw-play >/dev/null; then
|
||||
notify-send "错误: 未找到 pw-play"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# =========================================
|
||||
# 1. 定义信号处理 (收到信号 = 上膛)
|
||||
# =========================================
|
||||
arm_trigger() {
|
||||
# 更新文件的修改时间,或者创建它
|
||||
touch "$TRIGGER_FILE"
|
||||
}
|
||||
|
||||
# 注册信号:收到 USR1 就执行 arm_trigger
|
||||
trap arm_trigger SIGUSR1
|
||||
|
||||
# =========================================
|
||||
# 2. 启动剪贴板监听 (后台运行)
|
||||
# =========================================
|
||||
# 只有当剪贴板真正发生变化时,这个子进程才会醒来
|
||||
wl-paste --watch bash -c "
|
||||
# A. 检查是不是图片
|
||||
if wl-paste --list-types 2>/dev/null | grep -q 'image/'; then
|
||||
|
||||
# B. 检查有没有“上膛” (文件是否存在)
|
||||
if [ -f \"$TRIGGER_FILE\" ]; then
|
||||
|
||||
# C. 检查“上膛”是否过期 (利用文件修改时间)
|
||||
# $(date +%s) - stat获取的时间
|
||||
NOW=\$(date +%s)
|
||||
FILE_TIME=\$(stat -c %Y \"$TRIGGER_FILE\")
|
||||
DIFF=\$((NOW - FILE_TIME))
|
||||
|
||||
if [ \$DIFF -lt $TIMEOUT_SEC ]; then
|
||||
# 조건을 满足:是图片 + 已上膛 + 没过期
|
||||
pw-play \"$SOUND\" &
|
||||
|
||||
# D. 销毁扳机 (防止连响)
|
||||
rm -f \"$TRIGGER_FILE\"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
" &
|
||||
# 获取 wl-paste 的 PID,以便脚本退出时杀掉它
|
||||
WATCHER_PID=$!
|
||||
|
||||
# =========================================
|
||||
# 3. 守护进程主循环 (0 CPU 占用)
|
||||
# =========================================
|
||||
# 这里的 trap 负责在脚本退出时清理子进程
|
||||
trap "kill $WATCHER_PID; exit" INT TERM EXIT
|
||||
|
||||
# 写入当前 PID 方便调试 (可选)
|
||||
# echo $$ > /tmp/niri-sound.pid
|
||||
|
||||
echo "截图音效服务已启动,等待 SIGUSR1 信号..."
|
||||
|
||||
# 无限睡眠,只响应信号
|
||||
while true; do
|
||||
sleep infinity & wait $!
|
||||
done
|
||||
8
minimal-niri-dotfiles/.config/niri/scripts/swayidle.sh
Normal file
8
minimal-niri-dotfiles/.config/niri/scripts/swayidle.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# 5分钟锁屏,10分钟熄屏,20分钟休眠
|
||||
exec swayidle -w \
|
||||
timeout 600 'hyprlock -c ~/.config/niri/hyprlock.conf &' \
|
||||
timeout 900 'niri msg action power-off-monitors' \
|
||||
resume 'niri msg action power-on-monitors' \
|
||||
timeout 1800 'systemctl suspend'
|
||||
27
minimal-niri-dotfiles/.config/niri/scripts/toggle-wlsunset
Normal file
27
minimal-niri-dotfiles/.config/niri/scripts/toggle-wlsunset
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# ===============================================================
|
||||
# 配置区
|
||||
# ===============================================================
|
||||
TEMP_LOW="5000" # 夜间/护眼色温
|
||||
TEMP_HIGH="6500" # 日间/标准色温
|
||||
TRANSITION="1800" # 过渡时间 (30分钟)
|
||||
|
||||
# 经纬度
|
||||
LAT="36.5"
|
||||
LONG="128.0"
|
||||
|
||||
# ===============================================================
|
||||
# 逻辑区
|
||||
# ===============================================================
|
||||
if pgrep -x "wlsunset" > /dev/null; then
|
||||
# 如果正在运行,则关闭
|
||||
pkill wlsunset
|
||||
notify-send -t 2000 -a "System" "护眼模式" "已关闭"
|
||||
else
|
||||
# 如果未运行,则开启
|
||||
# 这里使用的是经纬度模式,如果你想用固定时间模式,
|
||||
# 请把下面这行改为: wlsunset -S 07:00 -s 19:00 -t $TEMP_LOW -T $TEMP_HIGH -d $TRANSITION &
|
||||
wlsunset -l $LAT -L $LONG -t $TEMP_LOW -T $TEMP_HIGH -d $TRANSITION &
|
||||
notify-send -t 2000 -a "System" "护眼模式" "已开启,目标色温 ${TEMP_LOW}K"
|
||||
fi
|
||||
15
minimal-niri-dotfiles/.config/satty/config.toml
Normal file
15
minimal-niri-dotfiles/.config/satty/config.toml
Normal file
@ -0,0 +1,15 @@
|
||||
[general]
|
||||
copy-command = "wl-copy"
|
||||
focus-toggles-toolbars= true
|
||||
initial-tool = "brush"
|
||||
zoom-factor=1.1
|
||||
|
||||
[font]
|
||||
family = "Roboto"
|
||||
style = "Regular"
|
||||
fallback = [
|
||||
"Noto Sans CJK SC",
|
||||
"Noto Sans CJK JP",
|
||||
"Noto Sans CJK TC",
|
||||
"Noto Sans CJK KR"
|
||||
]
|
||||
208
minimal-niri-dotfiles/.config/waybar/config.jsonc
Normal file
208
minimal-niri-dotfiles/.config/waybar/config.jsonc
Normal file
@ -0,0 +1,208 @@
|
||||
// -*- mode: jsonc -*-
|
||||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 30, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"spacing": 4, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"modules-left": [
|
||||
"niri/workspaces",
|
||||
"niri/window"
|
||||
],
|
||||
"modules-center": [
|
||||
"clock",
|
||||
],
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"idle_inhibitor",
|
||||
"power-profiles-daemon",
|
||||
"pulseaudio",
|
||||
"keyboard-state",
|
||||
"battery",
|
||||
"battery#bat2"
|
||||
],
|
||||
// Modules configuration
|
||||
// "sway/workspaces": {
|
||||
// "disable-scroll": true,
|
||||
// "all-outputs": true,
|
||||
// "warp-on-scroll": false,
|
||||
// "format": "{name}: {icon}",
|
||||
// "format-icons": {
|
||||
// "1": "",
|
||||
// "2": "",
|
||||
// "3": "",
|
||||
// "4": "",
|
||||
// "5": "",
|
||||
// "urgent": "",
|
||||
// "focused": "",
|
||||
// "default": ""
|
||||
// }
|
||||
// },
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"sway/scratchpad": {
|
||||
"format": "{icon} {count}",
|
||||
"show-empty": false,
|
||||
"format-icons": ["", ""],
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{app}: {title}"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"unknown-tag": "N/A",
|
||||
"interval": 5,
|
||||
"consume-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"random-icons": {
|
||||
"off": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10,
|
||||
// "icons": {
|
||||
// "blueman": "bluetooth",
|
||||
// "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
|
||||
// }
|
||||
},
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC}°C {icon}",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-full": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"power-profiles-daemon": {
|
||||
"format": "{icon}",
|
||||
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
||||
"tooltip": true,
|
||||
"format-icons": {
|
||||
"default": "",
|
||||
"performance": "",
|
||||
"balanced": "",
|
||||
"power-saver": ""
|
||||
}
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {text}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
"custom/power": {
|
||||
"format" : "⏻ ",
|
||||
"tooltip": false,
|
||||
"menu": "on-click",
|
||||
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
|
||||
"menu-actions": {
|
||||
"shutdown": "shutdown",
|
||||
"reboot": "reboot",
|
||||
"suspend": "systemctl suspend",
|
||||
"hibernate": "systemctl hibernate"
|
||||
}
|
||||
}
|
||||
}
|
||||
323
minimal-niri-dotfiles/.config/waybar/style.css
Normal file
323
minimal-niri-dotfiles/.config/waybar/style.css
Normal file
@ -0,0 +1,323 @@
|
||||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: JetBrainsMono NFP, FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(43, 48, 59, 0.5);
|
||||
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
/*
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
window#waybar.solo {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
*/
|
||||
|
||||
window#waybar.termite {
|
||||
background-color: #3F3F3F;
|
||||
}
|
||||
|
||||
window#waybar.chromium {
|
||||
background-color: #000000;
|
||||
border: none;
|
||||
}
|
||||
|
||||
button {
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
/* Avoid rounded borders under each button name */
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
/* you can set a style on hover for any module like this */
|
||||
#pulseaudio:hover {
|
||||
background-color: #a37800;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#workspaces button.focused, #workspaces button.active {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
#custom-media,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#scratchpad,
|
||||
#power-profiles-daemon,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* If workspaces is the rightmost module, omit right margin */
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #64727D;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
color: #ffffff;
|
||||
background-color: #26A65B;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: steps(12);
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.performance {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.balanced {
|
||||
background-color: #2980b9;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.power-saver {
|
||||
background-color: #2ecc71;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: #2ecc71;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #9b59b6;
|
||||
}
|
||||
|
||||
#disk {
|
||||
background-color: #964B00;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #f1c40f;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
background-color: #fff0f5;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#wireplumber.muted {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
background-color: #ffa000;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #f0932b;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
background-color: #2d3436;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #ecf0f1;
|
||||
color: #2d3436;
|
||||
}
|
||||
|
||||
#mpd {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
background-color: #51a37a;
|
||||
}
|
||||
|
||||
#language {
|
||||
background: #00b093;
|
||||
color: #740864;
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
background: #97e1ad;
|
||||
color: #000000;
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state > label {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#keyboard-state > label.locked {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#scratchpad {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#scratchpad.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#privacy {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#privacy-item {
|
||||
padding: 0 5px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#privacy-item.screenshare {
|
||||
background-color: #cf5700;
|
||||
}
|
||||
|
||||
#privacy-item.audio-in {
|
||||
background-color: #1ca000;
|
||||
}
|
||||
|
||||
#privacy-item.audio-out {
|
||||
background-color: #0069d4;
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
[preferred]
|
||||
default=gnome;gtk;
|
||||
org.freedesktop.impl.portal.Access=gtk;
|
||||
org.freedesktop.impl.portal.Notification=gtk;
|
||||
org.freedesktop.impl.portal.FileChooser=gtk;
|
||||
org.freedesktop.impl.portal.Secret=gnome-keyring;
|
||||
org.freedesktop.impl.portal.ScreenCast=gnome
|
||||
org.freedesktop.impl.portal.Screenshot=gnome
|
||||
1
minimal-niri-dotfiles/.config/xfce4/helpers.rc
Normal file
1
minimal-niri-dotfiles/.config/xfce4/helpers.rc
Normal file
@ -0,0 +1 @@
|
||||
TerminalEmulator=kitty
|
||||
@ -0,0 +1,16 @@
|
||||
<?xml version="1.1" encoding="UTF-8"?>
|
||||
|
||||
<channel name="thunar-volman" version="1.0">
|
||||
<property name="automount-drives" type="empty">
|
||||
<property name="enabled" type="bool" value="true"/>
|
||||
</property>
|
||||
<property name="automount-media" type="empty">
|
||||
<property name="enabled" type="bool" value="true"/>
|
||||
</property>
|
||||
<property name="autobrowse" type="empty">
|
||||
<property name="enabled" type="bool" value="false"/>
|
||||
</property>
|
||||
<property name="autoplay-audio-cds" type="empty">
|
||||
<property name="enabled" type="bool" value="false"/>
|
||||
</property>
|
||||
</channel>
|
||||
@ -0,0 +1,17 @@
|
||||
<?xml version="1.1" encoding="UTF-8"?>
|
||||
|
||||
<channel name="thunar" version="1.0">
|
||||
<property name="last-view" type="string" value="ThunarIconView"/>
|
||||
<property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_100_PERCENT"/>
|
||||
<property name="last-window-width" type="int" value="1256"/>
|
||||
<property name="last-window-height" type="int" value="746"/>
|
||||
<property name="last-window-maximized" type="bool" value="false"/>
|
||||
<property name="last-show-hidden" type="bool" value="true"/>
|
||||
<property name="last-separator-position" type="int" value="170"/>
|
||||
<property name="last-side-pane" type="string" value="THUNAR_SIDEPANE_TYPE_SHORTCUTS"/>
|
||||
<property name="last-menubar-visible" type="bool" value="false"/>
|
||||
<property name="hidden-bookmarks" type="array">
|
||||
<value type="string" value="computer:///"/>
|
||||
<value type="string" value="file:///home/shorin"/>
|
||||
</property>
|
||||
</channel>
|
||||
180
minimal-niri-dotfiles/.local/bin/apt
Normal file
180
minimal-niri-dotfiles/.local/bin/apt
Normal file
@ -0,0 +1,180 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# ==============================================================================
|
||||
# Function: apt (Smart Arch Package Manager Wrapper for Bash)
|
||||
# Description: Maps common Debian 'apt' commands to an intelligent Arch backend.
|
||||
# Features:
|
||||
# - Fallback routing: paru > yay > pacman.
|
||||
# - Automatic Sudo Handling: Prevents AUR helpers from running as root.
|
||||
# - Anti-Partial-Upgrade: Merges update/upgrade into a safe -Syu operation.
|
||||
# - Deep Clean Default: Merges remove/purge into -Rns for a pristine system.
|
||||
# - UI Integration: Progressive enhancement with 'shorin' for interactive modes.
|
||||
# - Safe orphan detection and i18n support.
|
||||
# - Highly readable, colorized, and column-aligned help output.
|
||||
# Usage: apt {update|upgrade|install [ui]|remove [ui]|search|show|autoremove|clean|help|-h} [pkg...]
|
||||
# ==============================================================================
|
||||
|
||||
# 启用严格模式:遇到错误退出、未定义变量退出、管道中任何命令失败则失败
|
||||
set -euo pipefail
|
||||
|
||||
# 1. 极简的 Locale 探测 (纯Bash字符串匹配)
|
||||
is_zh=0
|
||||
if [[ "${LC_ALL:-}" == zh_* || "${LC_MESSAGES:-}" == zh_* || "${LANG:-}" == zh_* ]]; then
|
||||
is_zh=1
|
||||
fi
|
||||
|
||||
# 2. 探测 shorin UI 工具是否存在
|
||||
has_shorin=0
|
||||
if command -v shorin >/dev/null 2>&1; then
|
||||
has_shorin=1
|
||||
fi
|
||||
|
||||
# 3. 参数解析与默认行为
|
||||
if [[ $# -eq 0 ]]; then
|
||||
action="help"
|
||||
exit_code=1
|
||||
else
|
||||
action="$1"
|
||||
shift # 移除第一个参数,将剩余参数传给对应的命令
|
||||
exit_code=0
|
||||
fi
|
||||
|
||||
# 定义 ANSI 颜色转义序列 (KISS原则:不依赖 tput)
|
||||
c_cmd=$'\033[36m' # Cyan
|
||||
c_hl=$'\033[33m' # Yellow
|
||||
c_rst=$'\033[0m' # Reset
|
||||
|
||||
# 预定义基础错误信息 (本地化)
|
||||
msg_err_pkg="Error: Specify packages."
|
||||
msg_err_search="Error: Specify search term."
|
||||
msg_err_show="Error: Specify package to show."
|
||||
|
||||
if [[ "$is_zh" -eq 1 ]]; then
|
||||
msg_err_pkg="错误:请指定要操作的软件包。"
|
||||
msg_err_search="错误:请指定搜索词。"
|
||||
msg_err_show="错误:请指定要查看的软件包。"
|
||||
fi
|
||||
|
||||
# 4. 帮助信息拦截与本地化排版
|
||||
if [[ "$action" == "help" || "$action" == "-h" || "$action" == "--help" ]]; then
|
||||
if [[ "$is_zh" -eq 1 ]]; then
|
||||
echo "Arch 包管理器包装器 (优先级: ${c_hl}paru > yay > pacman${c_rst})"
|
||||
echo "用法: ${c_hl}apt${c_rst} <命令> [软件包...]"
|
||||
echo ""
|
||||
echo "命令:"
|
||||
echo " ${c_cmd}update(upgrade)${c_rst} 同步数据库并更新系统 (-Syu)"
|
||||
echo " ${c_cmd}install ${c_rst} 安装软件包 (-S)"
|
||||
if [[ "$has_shorin" -eq 1 ]]; then
|
||||
echo " ${c_cmd}install ui ${c_rst} 打开交互式界面安装 (依赖: shorin-contrib-git)"
|
||||
fi
|
||||
echo " ${c_cmd}remove ${c_rst} 彻底卸载软件包、依赖及配置文件 (-Rns)"
|
||||
if [[ "$has_shorin" -eq 1 ]]; then
|
||||
echo " ${c_cmd}remove ui ${c_rst} 打开交互式界面卸载 (依赖: shorin-contrib-git)"
|
||||
fi
|
||||
echo " ${c_cmd}search ${c_rst} 搜索软件包 (-Ss)"
|
||||
echo " ${c_cmd}show ${c_rst} 显示软件包详细信息 (-Si)"
|
||||
echo " ${c_cmd}autoremove ${c_rst} 安全地清理系统中的孤立软件包"
|
||||
echo " ${c_cmd}clean ${c_rst} 清理下载缓存 (-Sc)"
|
||||
echo " ${c_cmd}help, -h ${c_rst} 显示此帮助信息"
|
||||
else
|
||||
echo "Smart Arch Package Wrapper (Routing: ${c_hl}paru > yay > pacman${c_rst})"
|
||||
echo "Usage: ${c_hl}apt${c_rst} <command> [package...]"
|
||||
echo ""
|
||||
echo "Commands:"
|
||||
echo " ${c_cmd}update(upgrade)${c_rst} Sync databases and update system (Safe -Syu)"
|
||||
echo " ${c_cmd}install ${c_rst} Install packages (-S)"
|
||||
if [[ "$has_shorin" -eq 1 ]]; then
|
||||
echo " ${c_cmd}install ui ${c_rst} Open interactive installation UI (shorin pac)"
|
||||
fi
|
||||
echo " ${c_cmd}remove ${c_rst} Remove packages, unneeded dependencies, and configs (-Rns)"
|
||||
if [[ "$has_shorin" -eq 1 ]]; then
|
||||
echo " ${c_cmd}remove ui ${c_rst} Open interactive removal UI (shorin pacr)"
|
||||
fi
|
||||
echo " ${c_cmd}search ${c_rst} Search for packages (-Ss)"
|
||||
echo " ${c_cmd}show ${c_rst} Show package details (-Si)"
|
||||
echo " ${c_cmd}autoremove ${c_rst} Remove orphaned packages safely"
|
||||
echo " ${c_cmd}clean ${c_rst} Clean package cache (-Sc)"
|
||||
echo " ${c_cmd}help, -h ${c_rst} Show this help message"
|
||||
fi
|
||||
exit "$exit_code"
|
||||
fi
|
||||
|
||||
# 5. 核心路由与提权逻辑
|
||||
# 使用数组来存储命令,避免含有空格的参数被 Bash 错误拆分
|
||||
if command -v paru >/dev/null 2>&1; then
|
||||
pkg_mgr="paru"
|
||||
cmd=("paru")
|
||||
elif command -v yay >/dev/null 2>&1; then
|
||||
pkg_mgr="yay"
|
||||
cmd=("yay")
|
||||
else
|
||||
pkg_mgr="pacman"
|
||||
cmd=("sudo" "pacman")
|
||||
fi
|
||||
|
||||
# 6. 动作映射 (Action Mapping)
|
||||
case "$action" in
|
||||
update|upgrade)
|
||||
"${cmd[@]}" -Syu
|
||||
;;
|
||||
install)
|
||||
if [[ $# -eq 0 ]]; then echo "$msg_err_pkg"; exit 1; fi
|
||||
# 拦截 'install ui',条件:且只输入了 ui 一个参数,且系统存在 shorin
|
||||
if [[ "$1" == "ui" && $# -eq 1 && "$has_shorin" -eq 1 ]]; then
|
||||
shorin pac
|
||||
exit 0
|
||||
fi
|
||||
"${cmd[@]}" -S "$@"
|
||||
;;
|
||||
remove)
|
||||
if [[ $# -eq 0 ]]; then echo "$msg_err_pkg"; exit 1; fi
|
||||
# 拦截 'remove ui'
|
||||
if [[ "$1" == "ui" && $# -eq 1 && "$has_shorin" -eq 1 ]]; then
|
||||
shorin pacr
|
||||
exit 0
|
||||
fi
|
||||
"${cmd[@]}" -Rns "$@"
|
||||
;;
|
||||
search)
|
||||
if [[ $# -eq 0 ]]; then echo "$msg_err_search"; exit 1; fi
|
||||
"$pkg_mgr" -Ss "$@"
|
||||
;;
|
||||
show)
|
||||
if [[ $# -eq 0 ]]; then echo "$msg_err_show"; exit 1; fi
|
||||
"$pkg_mgr" -Si "$@"
|
||||
;;
|
||||
autoremove)
|
||||
# 巧妙处理: pacman -Qtdq 找不到包时会返回退出码1,使用 || true 避免触发 set -e 导致脚本直接终止
|
||||
orphans=$(pacman -Qtdq || true)
|
||||
|
||||
if [[ -n "$orphans" ]]; then
|
||||
# 使用 mapfile 将多行字符串转换为安全数组,精准统计数量
|
||||
mapfile -t orphan_arr <<< "$orphans"
|
||||
if [[ "$is_zh" -eq 1 ]]; then
|
||||
echo "找到 ${#orphan_arr[@]} 个孤立的软件包。正在通过 $pkg_mgr 卸载..."
|
||||
else
|
||||
echo "Found ${#orphan_arr[@]} orphaned package(s). Removing via $pkg_mgr..."
|
||||
fi
|
||||
"${cmd[@]}" -Rns "${orphan_arr[@]}"
|
||||
else
|
||||
if [[ "$is_zh" -eq 1 ]]; then
|
||||
echo "系统很干净,没有需要清理的孤立软件包。"
|
||||
else
|
||||
echo "System is clean. No orphaned packages to remove."
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
clean)
|
||||
"${cmd[@]}" -Sc
|
||||
;;
|
||||
*)
|
||||
if [[ "$is_zh" -eq 1 ]]; then
|
||||
echo "错误:不支持的 apt 命令映射: $action"
|
||||
echo "运行 'apt -h' 查看可用命令。"
|
||||
else
|
||||
echo "Error: Unsupported apt command mapped: $action"
|
||||
echo "Run 'apt -h' for valid commands."
|
||||
fi
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
215
minimal-niri-dotfiles/.local/bin/f
Normal file
215
minimal-niri-dotfiles/.local/bin/f
Normal file
@ -0,0 +1,215 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# ==============================================================================
|
||||
# 【脚本功能说明】
|
||||
# 1. 结合 Fastfetch,在终端启动时展示随机二次元图片 (支持 SFW / NSFW 模式)。
|
||||
# 2. 具备静默后台异步下载机制,库存不足时自动补货,绝不阻塞前台终端的启动。
|
||||
# 3. 具备智能缓存管理机制,自动控制待展示区与已使用区 (used) 的图片数量上限。
|
||||
# 4. 具备极致的网络环境容错处理,无网或弱网时自动降级 fallback,避免死等。
|
||||
# 5. 具备自动清理 Fastfetch 内部生成的图片转换缓存功能,防止磁盘空间无感膨胀。
|
||||
# ==============================================================================
|
||||
|
||||
# 启用严格模式:遇到错误退出、未定义变量退出、管道中任何命令失败则失败
|
||||
set -euo pipefail
|
||||
|
||||
# ================= 配置区域 =================
|
||||
|
||||
# [开关] 阅后即焚模式 (针对 Fastfetch 内部缓存)
|
||||
# true = 运行后强力清空 ~/.cache/fastfetch/images/ (防止转码缓存膨胀)
|
||||
# false = 保留缓存
|
||||
clean_cache_mode=true
|
||||
|
||||
# 每次补货下载多少张
|
||||
download_batch_size=10
|
||||
# 最大库存上限 (待展示区)
|
||||
max_cache_limit=100
|
||||
# 库存少于多少张时开始补货
|
||||
min_trigger_limit=60
|
||||
# used 目录最大存放数量 (超过此数量将按照时间顺序删除最旧的文件)
|
||||
max_used_limit=50
|
||||
|
||||
# ===========================================
|
||||
|
||||
# --- 0. 参数解析与模式设置 ---
|
||||
|
||||
nsfw_mode=false
|
||||
if [[ "${NSFW:-}" == "1" ]]; then
|
||||
nsfw_mode=true
|
||||
fi
|
||||
|
||||
args_for_fastfetch=()
|
||||
for arg in "$@"; do
|
||||
if [[ "$arg" == "--nsfw" ]]; then
|
||||
nsfw_mode=true
|
||||
else
|
||||
args_for_fastfetch+=("$arg")
|
||||
fi
|
||||
done
|
||||
|
||||
# --- 1. 目录配置 ---
|
||||
|
||||
if [[ "$nsfw_mode" == true ]]; then
|
||||
cache_dir="$HOME/.cache/fastfetch_waifu_nsfw"
|
||||
lock_file="/tmp/fastfetch_waifu_nsfw.lock"
|
||||
else
|
||||
cache_dir="$HOME/.cache/fastfetch_waifu"
|
||||
lock_file="/tmp/fastfetch_waifu.lock"
|
||||
fi
|
||||
|
||||
used_dir="$cache_dir/used"
|
||||
mkdir -p "$cache_dir" "$used_dir"
|
||||
|
||||
# --- 2. 核心函数定义 ---
|
||||
|
||||
check_network() {
|
||||
curl -sI --connect-timeout 2 "http://captive.apple.com/hotspot-detect.html" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
get_random_url() {
|
||||
local timeout="--connect-timeout 5 --max-time 15"
|
||||
local rand=$(( RANDOM % 3 + 1 ))
|
||||
|
||||
# 管道中使用 || true 确保 jq 解析失败时不会触发 pipefail 导致脚本崩溃
|
||||
if [[ "$nsfw_mode" == true ]]; then
|
||||
case $rand in
|
||||
1) curl -s $timeout "https://api.waifu.im/images?IncludedTags=waifu&IsNsfw=true" | jq -r '.images[0].url' 2>/dev/null || true ;;
|
||||
2) curl -s $timeout "https://api.waifu.pics/nsfw/waifu" | jq -r '.url' 2>/dev/null || true ;;
|
||||
3) curl -s $timeout "https://api.waifu.pics/nsfw/neko" | jq -r '.url' 2>/dev/null || true ;;
|
||||
esac
|
||||
else
|
||||
case $rand in
|
||||
1) curl -s $timeout "https://api.waifu.im/images?IncludedTags=waifu&IsNsfw=false" | jq -r '.images[0].url' 2>/dev/null || true ;;
|
||||
2) curl -s $timeout "https://nekos.best/api/v2/waifu" | jq -r '.results[0].url' 2>/dev/null || true ;;
|
||||
3) curl -s $timeout "https://api.waifu.pics/sfw/waifu" | jq -r '.url' 2>/dev/null || true ;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
download_one_image() {
|
||||
local url
|
||||
url=$(get_random_url || true)
|
||||
|
||||
if [[ -n "$url" && "$url" =~ ^http ]]; then
|
||||
local filename="waifu_$(date +%s%N)_$RANDOM.jpg"
|
||||
local target_path="$cache_dir/$filename"
|
||||
|
||||
# 使用 || true 防止 curl 意外崩溃
|
||||
curl -s -L --connect-timeout 5 --max-time 15 -o "$target_path" "$url" || true
|
||||
|
||||
if [[ -s "$target_path" ]]; then
|
||||
if command -v file >/dev/null 2>&1; then
|
||||
if ! file --mime-type "$target_path" | grep -q "image/"; then
|
||||
rm -f "$target_path"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
rm -f "$target_path"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
background_job() {
|
||||
(
|
||||
# 1. 彻底切断标准输入输出,变成纯粹的后台幽灵进程
|
||||
exec </dev/null >/dev/null 2>&1
|
||||
|
||||
# 2. 忽略终端挂断信号
|
||||
trap '' HUP
|
||||
|
||||
# 3. 局部关闭严格模式,确保后台尽力而为,不因单次网络错误退出
|
||||
set +e
|
||||
|
||||
# 4. 获取文件描述符 200 的排他锁,防止并发下载
|
||||
exec 200>"$lock_file"
|
||||
flock -n 200 || exit 0
|
||||
|
||||
# 网络检查,没网就悄悄退出
|
||||
if ! check_network; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# 开启空 glob 扩展
|
||||
shopt -s nullglob
|
||||
|
||||
# --- 补货逻辑 ---
|
||||
local current_files=("$cache_dir"/*.jpg)
|
||||
if (( ${#current_files[@]} < min_trigger_limit )); then
|
||||
for ((i=0; i<download_batch_size; i++)); do
|
||||
download_one_image
|
||||
sleep 0.5
|
||||
done
|
||||
fi
|
||||
|
||||
# --- 清理过多库存逻辑 ---
|
||||
local final_files=("$cache_dir"/*.jpg)
|
||||
if (( ${#final_files[@]} > max_cache_limit )); then
|
||||
local skip_lines=$(( max_cache_limit + 1 ))
|
||||
local cache_to_delete
|
||||
# 只有明确文件存在时才执行 ls,避免 nullglob 导致的当前目录误删
|
||||
mapfile -t cache_to_delete < <(ls -tp "$cache_dir"/*.jpg 2>/dev/null | tail -n +"$skip_lines")
|
||||
if (( ${#cache_to_delete[@]} > 0 )); then
|
||||
rm -f -- "${cache_to_delete[@]}"
|
||||
fi
|
||||
fi
|
||||
) &
|
||||
}
|
||||
|
||||
# --- 3. 主程序逻辑 ---
|
||||
|
||||
# 开启空 glob 扩展,安全获取文件列表
|
||||
shopt -s nullglob
|
||||
files=("$cache_dir"/*.jpg)
|
||||
num_files=${#files[@]}
|
||||
selected_img=""
|
||||
|
||||
if (( num_files > 0 )); then
|
||||
rand_index=$(( RANDOM % num_files ))
|
||||
selected_img="${files[$rand_index]}"
|
||||
|
||||
background_job
|
||||
else
|
||||
echo "库存不够啦!正在去搬运新的图片,请稍等哦..."
|
||||
|
||||
if check_network; then
|
||||
# 前台下载时暂时关闭严格模式,防止网络异常导致脚本闪退
|
||||
set +e
|
||||
download_one_image
|
||||
set -e
|
||||
else
|
||||
echo "网络好像不太通畅,无法下载新图片 QAQ"
|
||||
fi
|
||||
|
||||
# 重新获取文件列表
|
||||
files=("$cache_dir"/*.jpg)
|
||||
if (( ${#files[@]} > 0 )); then
|
||||
selected_img="${files[0]}"
|
||||
background_job
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -n "$selected_img" && -f "$selected_img" ]]; then
|
||||
# 显示图片
|
||||
fastfetch --logo "$selected_img" --logo-preserve-aspect-ratio true "${args_for_fastfetch[@]}"
|
||||
|
||||
# === 移动到 used 目录 ===
|
||||
mv "$selected_img" "$used_dir/"
|
||||
|
||||
# === 检查 used 目录并清理旧图 ===
|
||||
used_files=("$used_dir"/*.jpg)
|
||||
if (( ${#used_files[@]} > max_used_limit )); then
|
||||
skip_lines=$(( max_used_limit + 1 ))
|
||||
|
||||
mapfile -t files_to_delete < <(ls -tp "$used_dir"/*.jpg 2>/dev/null | tail -n +"$skip_lines")
|
||||
if (( ${#files_to_delete[@]} > 0 )); then
|
||||
rm -f -- "${files_to_delete[@]}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# 清理 Fastfetch 内部缓存
|
||||
if [[ "$clean_cache_mode" == true ]]; then
|
||||
rm -rf "$HOME/.cache/fastfetch/images"
|
||||
fi
|
||||
else
|
||||
echo "图片获取失败了,这次只能先显示默认的 Logo 啦 QAQ"
|
||||
fastfetch "${args_for_fastfetch[@]}"
|
||||
fi
|
||||
@ -0,0 +1,10 @@
|
||||
patch:
|
||||
ascii_composer:
|
||||
good_old_caps_lock: true
|
||||
schema_list:
|
||||
- schema: rime_ice
|
||||
- schema: luna_pinyin_simp
|
||||
- schema: double_pinyin_flypy
|
||||
- schema: wubi86
|
||||
- schema: bopomofo
|
||||
"menu/page_size": 6
|
||||
32
minimal-niri-dotfiles/.vimrc
Normal file
32
minimal-niri-dotfiles/.vimrc
Normal file
@ -0,0 +1,32 @@
|
||||
"显示行号
|
||||
set number
|
||||
"显示相对行号
|
||||
set relativenumber
|
||||
"高亮当前行
|
||||
set cursorline
|
||||
"语法高亮
|
||||
syntax on
|
||||
|
||||
" 开启自动缩进,新的一行会自动与上一行对齐
|
||||
set autoindent
|
||||
" 在输入搜索词时,实时高亮显示匹配项(增量搜索)
|
||||
set incsearch
|
||||
|
||||
" 高亮显示所有搜索结果
|
||||
set hlsearch
|
||||
|
||||
" 搜索时忽略大小写
|
||||
set ignorecase
|
||||
|
||||
" 如果搜索词中包含了大写字母,则自动切换为大小写敏感搜索
|
||||
set smartcase
|
||||
" 开启持久化撤销(undo),即使关闭再打开文件,也能撤销之前的更改
|
||||
set undofile
|
||||
" undo目录
|
||||
silent !mkdir -p ~/.cache/vim/undo
|
||||
set undodir=~/.cache/vim/undo
|
||||
" 剪贴板 gvim的功能
|
||||
set clipboard=unnamedplus
|
||||
" 接管鼠标事件
|
||||
set mouse=a
|
||||
|
||||
49
minimal-niri-dotfiles/.zshrc
Normal file
49
minimal-niri-dotfiles/.zshrc
Normal file
@ -0,0 +1,49 @@
|
||||
eval "$(starship init zsh)"
|
||||
# 设置历史记录文件的路径
|
||||
HISTFILE=~/.zsh_history
|
||||
|
||||
# 设置在会话(内存)中和历史文件中保存的条数,建议设置得大一些
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
|
||||
# 忽略重复的命令,连续输入多次的相同命令只记一次
|
||||
setopt HIST_IGNORE_DUPS
|
||||
|
||||
# 忽略以空格开头的命令(用于临时执行一些你不想保存的敏感命令)
|
||||
setopt HIST_IGNORE_SPACE
|
||||
|
||||
# 在多个终端之间实时共享历史记录
|
||||
# 这是实现多终端同步最关键的选项
|
||||
setopt SHARE_HISTORY
|
||||
|
||||
# 让新的历史记录追加到文件,而不是覆盖
|
||||
setopt APPEND_HISTORY
|
||||
# 在历史记录中记录命令的执行开始时间和持续时间
|
||||
setopt EXTENDED_HISTORY
|
||||
|
||||
#语法检查和高亮
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
#开启tab上下左右选择补全
|
||||
zstyle ':completion:*' menu select
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
# 自定义命令
|
||||
eval "$(zoxide init zsh)"
|
||||
alias cd="z"
|
||||
|
||||
alias ls='eza --icons'
|
||||
alias la='eza -al --icons --group-directories-first'
|
||||
alias lt='eza --tree --level=2 --icons'
|
||||
|
||||
alias fa='fastfetch'
|
||||
alias f='f'
|
||||
alias fnsfw='f --nsfw'
|
||||
|
||||
alias reboot='systemctl reboot'
|
||||
alias poweroff='systemctl poweroff'
|
||||
alias suspend='systemctl suspend'
|
||||
|
||||
alias cat='bat'
|
||||
Reference in New Issue
Block a user