update
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
follow_symlink=0
|
||||
target_dir="/usr"
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case $1 in
|
||||
-L)
|
||||
follow_symlink=1
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
target_dir="$1"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ ! -d $target_dir ]]; then
|
||||
echo "${target_dir} is not a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export LC_ALL=C
|
||||
export LANG=C
|
||||
|
||||
owned_list="$(mktemp)"
|
||||
trap 'rm "$owned_list"' EXIT
|
||||
|
||||
pacman -Qlq | sort -u > "$owned_list"
|
||||
|
||||
comm -23 <(find "$target_dir" ! -type d | sort) "$owned_list" | while read -r f; do
|
||||
if [[ $follow_symlink -eq 1 && -L "$f" ]]; then
|
||||
target=$(realpath -m "$f")
|
||||
if grep -qxF "$target" "$owned_list"; then
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
echo "$f"
|
||||
done
|
||||
@@ -4,12 +4,13 @@ set -euo pipefail
|
||||
|
||||
[[ "$XDG_CURRENT_DESKTOP" != "niri" ]] && exit 1
|
||||
|
||||
if grep -q 'prefer_order=(nvidia intel)' "$HOME/.local/snippets/set_display"; then
|
||||
sed -i 's/prefer_order=(nvidia intel)/prefer_order=(intel nvidia)/' "$HOME/.local/snippets/set_display"
|
||||
# if grep -q 'prefer_order=(nvidia intel)' "$HOME/.local/snippets/set_display"; then
|
||||
if grep -q '[^[:space:]]' "$HOME/.config/niri/config/prime.kdl"; then
|
||||
# sed -i 's/prefer_order=(nvidia intel)/prefer_order=(intel nvidia)/' "$HOME/.local/snippets/set_display"
|
||||
echo "" >"$HOME/.config/niri/config/prime.kdl"
|
||||
echo "Disabled global Nvidia Prime offloading."
|
||||
else
|
||||
sed -i 's/prefer_order=(intel nvidia)/prefer_order=(nvidia intel)/' "$HOME/.local/snippets/set_display"
|
||||
# sed -i 's/prefer_order=(intel nvidia)/prefer_order=(nvidia intel)/' "$HOME/.local/snippets/set_display"
|
||||
cat >"$HOME/.config/niri/config/prime.kdl" <<EOF
|
||||
environment {
|
||||
__NV_PRIME_RENDER_OFFLOAD "1"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:git"
|
||||
rev = "4ffa48f"
|
||||
hash = "6849444b7c2df08eace83f3f86fb55a3"
|
||||
rev = "1db18bb"
|
||||
hash = "c8d30a70659f1b880407e61c564ab4e8"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:smart-enter"
|
||||
rev = "4ffa48f"
|
||||
rev = "1db18bb"
|
||||
hash = "187cc58ba7ac3befd49c342129e6f1b6"
|
||||
|
||||
[[plugin.deps]]
|
||||
@@ -20,8 +20,8 @@ hash = "771af2becc575a3f43d0542de823969d"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "llanosrocas/yaziline"
|
||||
rev = "cc0314c"
|
||||
hash = "b937c5c8e2d9fa314d4532489176814e"
|
||||
rev = "25161c1"
|
||||
hash = "5c7802a9ac249be88729978e3b9525bc"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "Rolv-Apneseth/starship"
|
||||
|
||||
@@ -44,44 +44,44 @@ group = "git"
|
||||
|
||||
You can customize the [Style](https://yazi-rs.github.io/docs/plugins/layout#style) of the status sign with:
|
||||
|
||||
- `th.git.unknown` - status cannot/not yet determined
|
||||
- `th.git.modified` - modified file
|
||||
- `th.git.added` - added file
|
||||
- `th.git.untracked` - untracked file
|
||||
- `th.git.ignored` - ignored file
|
||||
- `th.git.deleted` - deleted file
|
||||
- `th.git.updated` - updated file
|
||||
- `th.git.clean` - clean file
|
||||
- `[git].unknown` - status cannot/not yet determined
|
||||
- `[git].modified` - modified file
|
||||
- `[git].added` - added file
|
||||
- `[git].untracked` - untracked file
|
||||
- `[git].ignored` - ignored file
|
||||
- `[git].deleted` - deleted file
|
||||
- `[git].updated` - updated file
|
||||
- `[git].clean` - clean file
|
||||
|
||||
For example:
|
||||
|
||||
```lua
|
||||
-- ~/.config/yazi/init.lua
|
||||
th.git = th.git or {}
|
||||
th.git.modified = ui.Style():fg("blue")
|
||||
th.git.deleted = ui.Style():fg("red"):bold()
|
||||
```toml
|
||||
# theme.toml / flavor.toml
|
||||
[git]
|
||||
modified = { fg = "blue" }
|
||||
deleted = { fg = "red", bold = true }
|
||||
```
|
||||
|
||||
You can also customize the text of the status sign with:
|
||||
|
||||
- `th.git.unknown_sign` - status cannot/not yet determined
|
||||
- `th.git.modified_sign` - modified file
|
||||
- `th.git.added_sign` - added file
|
||||
- `th.git.untracked_sign` - untracked file
|
||||
- `th.git.ignored_sign` - ignored file
|
||||
- `th.git.deleted_sign` - deleted file
|
||||
- `th.git.updated_sign` - updated file
|
||||
- `th.git.clean_sign` - clean file
|
||||
- `[git].unknown_sign` - status cannot/not yet determined
|
||||
- `[git].modified_sign` - modified file
|
||||
- `[git].added_sign` - added file
|
||||
- `[git].untracked_sign` - untracked file
|
||||
- `[git].ignored_sign` - ignored file
|
||||
- `[git].deleted_sign` - deleted file
|
||||
- `[git].updated_sign` - updated file
|
||||
- `[git].clean_sign` - clean file
|
||||
|
||||
For example:
|
||||
|
||||
```lua
|
||||
-- ~/.config/yazi/init.lua
|
||||
th.git = th.git or {}
|
||||
th.git.unknown_sign = " "
|
||||
th.git.modified_sign = "M"
|
||||
th.git.deleted_sign = "D"
|
||||
th.git.clean_sign = "✔"
|
||||
```toml
|
||||
# theme.toml / flavor.toml
|
||||
[git]
|
||||
unknown_sign = " "
|
||||
modified_sign = "M"
|
||||
deleted_sign = "D"
|
||||
clean_sign = "✔"
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
--- @since 26.1.22
|
||||
--- @since 26.5.6
|
||||
|
||||
local WINDOWS = ya.target_family() == "windows"
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ This setup allows shipping stable versions on time, while giving early access to
|
||||
|
||||
| yaziline | yazi |
|
||||
| :------------------------------------------------------------------------: | ----------------------------------------------------------------------------------------- |
|
||||
| [v2.5.4](https://github.com/llanosrocas/yaziline.yazi/releases/tag/v2.5.4) | [v26.5.6](https://github.com/sxyazi/yazi/releases/tag/v26.5.6) |
|
||||
| [v2.5.3](https://github.com/llanosrocas/yaziline.yazi/releases/tag/v2.5.3) | [v26.1.22](https://github.com/sxyazi/yazi/releases/tag/v26.1.22) |
|
||||
| [v2.5.2](https://github.com/llanosrocas/yaziline.yazi/releases/tag/v2.5.2) | [v26.1.22](https://github.com/sxyazi/yazi/releases/tag/v26.1.22) |
|
||||
| [v2.5.2](https://github.com/llanosrocas/yaziline.yazi/releases/tag/v2.5.2) | [2f66561](https://github.com/sxyazi/yazi/commit/2f66561a8251f8788b2b0fd366af90555ecafc86) |
|
||||
| [v2.5.2](https://github.com/llanosrocas/yaziline.yazi/releases/tag/v2.5.2) | [6cfa92f](https://github.com/sxyazi/yazi/commit/6cfa92f11205d212155579b5b76d4cbabe723829) |
|
||||
|
||||
@@ -60,15 +60,15 @@ local function setup(_, options)
|
||||
})
|
||||
end
|
||||
|
||||
function Status:size()
|
||||
function Status:length()
|
||||
local h = self._current.hovered
|
||||
local size = h and (h:size() or h.cha.len) or 0
|
||||
local len = h and h.cha.len or 0
|
||||
|
||||
local style = self:style()
|
||||
return ui.Span(
|
||||
current_separator_style.separator_close
|
||||
.. " "
|
||||
.. ya.readable_size(size)
|
||||
.. ya.readable_size(len)
|
||||
.. " "
|
||||
)
|
||||
:fg(config.color or style.main:bg())
|
||||
|
||||
+10
-2
@@ -121,6 +121,7 @@ bluez-tools
|
||||
bluez-utils
|
||||
bootconfig
|
||||
bpf
|
||||
bpftrace
|
||||
bridge-utils
|
||||
brightnessctl
|
||||
bsd-games
|
||||
@@ -200,10 +201,10 @@ font-manager
|
||||
fontforge
|
||||
foot
|
||||
frei0r-plugins
|
||||
fssimu2
|
||||
fuzzel
|
||||
fzf
|
||||
gamemode
|
||||
gcc14
|
||||
gdb
|
||||
gdu
|
||||
gearlever
|
||||
@@ -220,6 +221,7 @@ glaze
|
||||
gnome-keyring
|
||||
gnome-text-editor
|
||||
go
|
||||
gpac
|
||||
gping
|
||||
gradia
|
||||
gradle
|
||||
@@ -250,6 +252,7 @@ intel-gpu-tools
|
||||
intel-media-sdk
|
||||
intel-speed-select
|
||||
intel-ucode
|
||||
inxi
|
||||
iperf3
|
||||
jdk-openjdk
|
||||
jdk17-openjdk
|
||||
@@ -297,6 +300,7 @@ linux-cachyos-headers
|
||||
linux-firmware
|
||||
linuxqq
|
||||
llama.cpp-cuda-git
|
||||
lldb
|
||||
llmfit-bin
|
||||
localsend
|
||||
lolcat
|
||||
@@ -309,6 +313,7 @@ man-db
|
||||
man-pages
|
||||
mangohud
|
||||
matugen
|
||||
mesa
|
||||
meson
|
||||
mkvtoolnix-cli
|
||||
modprobed-db
|
||||
@@ -424,8 +429,9 @@ riscv64-linux-gnu-binutils
|
||||
riscv64-linux-gnu-gcc
|
||||
rsync
|
||||
ruff
|
||||
rust
|
||||
rustdesk
|
||||
rustup
|
||||
scnlib
|
||||
scrcpy
|
||||
sd
|
||||
seahorse
|
||||
@@ -446,6 +452,7 @@ stow
|
||||
sudo
|
||||
sunshine
|
||||
sushi
|
||||
svt-av1-hdr-git
|
||||
sysbench
|
||||
systemc
|
||||
tailscale
|
||||
@@ -514,6 +521,7 @@ vulkan-extra-tools
|
||||
vulkan-gfxstream
|
||||
vulkan-headers
|
||||
vulkan-intel
|
||||
vulkan-mesa-implicit-layers
|
||||
vulkan-mesa-layers
|
||||
vulkan-swrast
|
||||
vvenc
|
||||
|
||||
Reference in New Issue
Block a user