This commit is contained in:
2026-05-11 01:39:23 +02:00
parent c48f11992c
commit d660d1ee2c
8 changed files with 22 additions and 13 deletions
@@ -5,3 +5,12 @@ indent = { tab-width = 4, unit = " " }
[[language]] [[language]]
name = "cpp" name = "cpp"
indent = { tab-width = 4, unit = " " } indent = { tab-width = 4, unit = " " }
[[language]]
name = "python"
formatter = { command = "ruff", args = ["format", "-"] }
language-servers = ["ruff"]
[language-server.ruff]
command = "ruff"
args = ["server"]
+1 -1
View File
@@ -1,7 +1,7 @@
screenshot-path "~/Pictures/Screenshots/niri_screenshot_%Y-%m-%d_%H-%M-%S.png" screenshot-path "~/Pictures/Screenshots/niri_screenshot_%Y-%m-%d_%H-%M-%S.png"
debug { debug {
render-drm-device "/dev/dri/renderD129" render-drm-device "/dev/dri/renderD128"
honor-xdg-activation-with-invalid-serial honor-xdg-activation-with-invalid-serial
} }
+1 -1
View File
@@ -9,7 +9,7 @@
# Constants # Constants
niri_config_file="$HOME/.config/niri/config/misc.kdl" niri_config_file="$HOME/.config/niri/config/misc.kdl"
prefer_order=(nvidia intel) prefer_order=(intel nvidia)
# Get vendor and path of each GPU # Get vendor and path of each GPU
default_card_path="$(find /dev/dri/card* 2>/dev/null | head -n 1)" default_card_path="$(find /dev/dri/card* 2>/dev/null | head -n 1)"
@@ -14,7 +14,7 @@
}, },
"action": { "action": {
"onSelected": "qs ipc call background set '{{ path }}'; change-colortheme -c '{{ colorHex }}'", "onSelected": "qs ipc call background set '{{ path }}'; change-colortheme -c '{{ colorHex }}'",
"onPreview": "qs ipc call background preview '{{ path }}'; change-colortheme -c '{{ colorHex }}' quickshell niri", "onPreview": "exit 0; qs ipc call background preview '{{ path }}'; change-colortheme -c '{{ colorHex }}' quickshell niri",
"quitOnSelected": true, "quitOnSelected": true,
"saveState": [ "saveState": [
{ {
@@ -23,7 +23,7 @@
"command": "qs ipc call colors get mPrimary" "command": "qs ipc call colors get mPrimary"
} }
], ],
"onRestore": "qs ipc call background preview ''; change-colortheme -c '{{ flavor }}' quickshell niri" "onRestore": "exit 0; qs ipc call background preview ''; change-colortheme -c '{{ flavor }}' quickshell niri"
}, },
"cache": { "cache": {
"maxImageEntries": 300 "maxImageEntries": 300
+1 -1
View File
@@ -1,6 +1,6 @@
# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config0 # A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config0
# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. # If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas.
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json" #:schema https://yazi-rs.github.io/schemas/keymap.json
[mgr] [mgr]
prepend_keymap = [ prepend_keymap = [
+2 -2
View File
@@ -1,11 +1,11 @@
[[plugin.deps]] [[plugin.deps]]
use = "yazi-rs/plugins:git" use = "yazi-rs/plugins:git"
rev = "26512c7" rev = "4ffa48f"
hash = "6849444b7c2df08eace83f3f86fb55a3" hash = "6849444b7c2df08eace83f3f86fb55a3"
[[plugin.deps]] [[plugin.deps]]
use = "yazi-rs/plugins:smart-enter" use = "yazi-rs/plugins:smart-enter"
rev = "26512c7" rev = "4ffa48f"
hash = "187cc58ba7ac3befd49c342129e6f1b6" hash = "187cc58ba7ac3befd49c342129e6f1b6"
[[plugin.deps]] [[plugin.deps]]
+5 -5
View File
@@ -1,6 +1,6 @@
# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config. # A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config.
# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. # If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas.
"$schema" = "https://yazi-rs.github.io/schemas/yazi.json" #:schema https://yazi-rs.github.io/schemas/yazi.json
[mgr] [mgr]
ratio = [1, 3, 4] ratio = [1, 3, 4]
@@ -86,10 +86,10 @@ suppress_preload = false
[plugin] [plugin]
fetchers = [ fetchers = [
# Mimetype # Mimetype
{ id = "mime", url = "*/", run = "mime.dir", prio = "high" }, { id = "mime", url = "*/", run = "mime.dir", prio = "high", group = "mime" },
{ id = "mime", url = "*", run = "mime.local", if = "!mime", prio = "high" }, { id = "mime", url = "*", run = "mime.local", if = "!mime", prio = "high", group = "mime" },
{ id = "git", url = "*", run = "git", prio = "normal" }, { id = "git", url = "*", run = "git", prio = "normal", group = "mime" },
{ id = "git", url = "*/", run = "git", prio = "normal" }, { id = "git", url = "*/", run = "git", prio = "normal", group = "mime" },
] ]
preloaders = [ preloaders = [
# Image # Image