added niri config with waybar, rip, nvim update, brightness sh

This commit is contained in:
liph22 committed 2026-01-12 22:26:10 +01:00
1 parent d7b808ce59
commit c4df37dacb
38 files changed
+1801 -414

No files matched your search

+10 -20
View File
@@ -23,24 +23,14 @@ image_quality = 75
# edit = [
# { run = '$EDITOR "$@"', block = true, for = "unix" },
# ]
open = [
{ run = 'xdg-open "$1"', desc = "Open", orphan = true },
]
edit = [
{ run = 'nvim "$@"', block = true, desc = "nvim", for = "unix" },
]
open = [{ run = 'xdg-open "$1"', desc = "Open", orphan = true }]
edit = [{ run = 'nvim "$@"', block = true, desc = "nvim", for = "unix" }]
reveal = [
{ run = 'xdg-open "$(dirname "$1")"', desc = "Reveal", for = "linux" },
]
play = [
{ run = 'mpv --force-window "$@"', orphan = true, for = "unix" },
]
pdf = [
{ run = 'zathura "$@"', orphan = true, for = "linux" },
]
text = [
{ run = 'nvim "$@"', block = true, for = "linux" },
]
play = [{ run = 'mpv --force-window "$@"', orphan = true, for = "unix" }]
pdf = [{ run = 'zathura "$@"', orphan = true, for = "linux" }]
text = [{ run = 'nvim "$@"', block = true, for = "linux" }]
[open]
rules = [
@@ -48,7 +38,7 @@ rules = [
{ mime = "inode/empty", use = "edit" },
# { mime = "inode/x-empty", use = "edit" },
# Text files - use edit (which uses $EDITOR/nvim)
{ mime = "text/*", use = "edit" }, # Changed from "text" to "edit"
{ mime = "text/*", use = "edit" }, # Changed from "text" to "edit"
# { mime = "text/x-tex", use = "edit" }, # Changed from "text" to "edit"
{ mime = "application/json", use = "edit" },
{ mime = "application/x-sh", use = "edit" },
@@ -142,10 +132,10 @@ prepend_previewers = [
{ url = "*/", run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"' },
# piper markdown (commented out as you had it)
# rich preview plugin
{ url = "*.csv", run = "rich-preview" }, # for csv files
{ url = "*.md", run = "rich-preview" }, # for markdown (.md) files
{ url = "*.rst", run = "rich-preview" }, # for restructured text (.rst) files
{ url = "*.ipynb", run = "rich-preview" }, # for jupyter notebooks (.ipynb)
{ url = "*.csv", run = "rich-preview" }, # for csv files
{ url = "*.md", run = "rich-preview" }, # for markdown (.md) files
{ url = "*.rst", run = "rich-preview" }, # for restructured text (.rst) files
{ url = "*.ipynb", run = "rich-preview" }, # for jupyter notebooks (.ipynb)
{ url = "*.json", run = "rich-preview" }, # for json (.json) files
# { url = "*.lang_type", run = "rich-preview"} # for particular language files eg. .py, .go., .lua, etc.
]