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
|
[[ "$XDG_CURRENT_DESKTOP" != "niri" ]] && exit 1
|
||||||
|
|
||||||
if grep -q 'prefer_order=(nvidia intel)' "$HOME/.local/snippets/set_display"; then
|
# 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 '[^[: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 "" >"$HOME/.config/niri/config/prime.kdl"
|
||||||
echo "Disabled global Nvidia Prime offloading."
|
echo "Disabled global Nvidia Prime offloading."
|
||||||
else
|
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
|
cat >"$HOME/.config/niri/config/prime.kdl" <<EOF
|
||||||
environment {
|
environment {
|
||||||
__NV_PRIME_RENDER_OFFLOAD "1"
|
__NV_PRIME_RENDER_OFFLOAD "1"
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
[[plugin.deps]]
|
[[plugin.deps]]
|
||||||
use = "yazi-rs/plugins:git"
|
use = "yazi-rs/plugins:git"
|
||||||
rev = "4ffa48f"
|
rev = "1db18bb"
|
||||||
hash = "6849444b7c2df08eace83f3f86fb55a3"
|
hash = "c8d30a70659f1b880407e61c564ab4e8"
|
||||||
|
|
||||||
[[plugin.deps]]
|
[[plugin.deps]]
|
||||||
use = "yazi-rs/plugins:smart-enter"
|
use = "yazi-rs/plugins:smart-enter"
|
||||||
rev = "4ffa48f"
|
rev = "1db18bb"
|
||||||
hash = "187cc58ba7ac3befd49c342129e6f1b6"
|
hash = "187cc58ba7ac3befd49c342129e6f1b6"
|
||||||
|
|
||||||
[[plugin.deps]]
|
[[plugin.deps]]
|
||||||
@@ -20,8 +20,8 @@ hash = "771af2becc575a3f43d0542de823969d"
|
|||||||
|
|
||||||
[[plugin.deps]]
|
[[plugin.deps]]
|
||||||
use = "llanosrocas/yaziline"
|
use = "llanosrocas/yaziline"
|
||||||
rev = "cc0314c"
|
rev = "25161c1"
|
||||||
hash = "b937c5c8e2d9fa314d4532489176814e"
|
hash = "5c7802a9ac249be88729978e3b9525bc"
|
||||||
|
|
||||||
[[plugin.deps]]
|
[[plugin.deps]]
|
||||||
use = "Rolv-Apneseth/starship"
|
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:
|
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
|
- `[git].unknown` - status cannot/not yet determined
|
||||||
- `th.git.modified` - modified file
|
- `[git].modified` - modified file
|
||||||
- `th.git.added` - added file
|
- `[git].added` - added file
|
||||||
- `th.git.untracked` - untracked file
|
- `[git].untracked` - untracked file
|
||||||
- `th.git.ignored` - ignored file
|
- `[git].ignored` - ignored file
|
||||||
- `th.git.deleted` - deleted file
|
- `[git].deleted` - deleted file
|
||||||
- `th.git.updated` - updated file
|
- `[git].updated` - updated file
|
||||||
- `th.git.clean` - clean file
|
- `[git].clean` - clean file
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```lua
|
```toml
|
||||||
-- ~/.config/yazi/init.lua
|
# theme.toml / flavor.toml
|
||||||
th.git = th.git or {}
|
[git]
|
||||||
th.git.modified = ui.Style():fg("blue")
|
modified = { fg = "blue" }
|
||||||
th.git.deleted = ui.Style():fg("red"):bold()
|
deleted = { fg = "red", bold = true }
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also customize the text of the status sign with:
|
You can also customize the text of the status sign with:
|
||||||
|
|
||||||
- `th.git.unknown_sign` - status cannot/not yet determined
|
- `[git].unknown_sign` - status cannot/not yet determined
|
||||||
- `th.git.modified_sign` - modified file
|
- `[git].modified_sign` - modified file
|
||||||
- `th.git.added_sign` - added file
|
- `[git].added_sign` - added file
|
||||||
- `th.git.untracked_sign` - untracked file
|
- `[git].untracked_sign` - untracked file
|
||||||
- `th.git.ignored_sign` - ignored file
|
- `[git].ignored_sign` - ignored file
|
||||||
- `th.git.deleted_sign` - deleted file
|
- `[git].deleted_sign` - deleted file
|
||||||
- `th.git.updated_sign` - updated file
|
- `[git].updated_sign` - updated file
|
||||||
- `th.git.clean_sign` - clean file
|
- `[git].clean_sign` - clean file
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```lua
|
```toml
|
||||||
-- ~/.config/yazi/init.lua
|
# theme.toml / flavor.toml
|
||||||
th.git = th.git or {}
|
[git]
|
||||||
th.git.unknown_sign = " "
|
unknown_sign = " "
|
||||||
th.git.modified_sign = "M"
|
modified_sign = "M"
|
||||||
th.git.deleted_sign = "D"
|
deleted_sign = "D"
|
||||||
th.git.clean_sign = "✔"
|
clean_sign = "✔"
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
--- @since 26.1.22
|
--- @since 26.5.6
|
||||||
|
|
||||||
local WINDOWS = ya.target_family() == "windows"
|
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 |
|
| 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) | [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) | [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) |
|
| [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
|
end
|
||||||
|
|
||||||
function Status:size()
|
function Status:length()
|
||||||
local h = self._current.hovered
|
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()
|
local style = self:style()
|
||||||
return ui.Span(
|
return ui.Span(
|
||||||
current_separator_style.separator_close
|
current_separator_style.separator_close
|
||||||
.. " "
|
.. " "
|
||||||
.. ya.readable_size(size)
|
.. ya.readable_size(len)
|
||||||
.. " "
|
.. " "
|
||||||
)
|
)
|
||||||
:fg(config.color or style.main:bg())
|
:fg(config.color or style.main:bg())
|
||||||
|
|||||||
+10
-2
@@ -121,6 +121,7 @@ bluez-tools
|
|||||||
bluez-utils
|
bluez-utils
|
||||||
bootconfig
|
bootconfig
|
||||||
bpf
|
bpf
|
||||||
|
bpftrace
|
||||||
bridge-utils
|
bridge-utils
|
||||||
brightnessctl
|
brightnessctl
|
||||||
bsd-games
|
bsd-games
|
||||||
@@ -200,10 +201,10 @@ font-manager
|
|||||||
fontforge
|
fontforge
|
||||||
foot
|
foot
|
||||||
frei0r-plugins
|
frei0r-plugins
|
||||||
|
fssimu2
|
||||||
fuzzel
|
fuzzel
|
||||||
fzf
|
fzf
|
||||||
gamemode
|
gamemode
|
||||||
gcc14
|
|
||||||
gdb
|
gdb
|
||||||
gdu
|
gdu
|
||||||
gearlever
|
gearlever
|
||||||
@@ -220,6 +221,7 @@ glaze
|
|||||||
gnome-keyring
|
gnome-keyring
|
||||||
gnome-text-editor
|
gnome-text-editor
|
||||||
go
|
go
|
||||||
|
gpac
|
||||||
gping
|
gping
|
||||||
gradia
|
gradia
|
||||||
gradle
|
gradle
|
||||||
@@ -250,6 +252,7 @@ intel-gpu-tools
|
|||||||
intel-media-sdk
|
intel-media-sdk
|
||||||
intel-speed-select
|
intel-speed-select
|
||||||
intel-ucode
|
intel-ucode
|
||||||
|
inxi
|
||||||
iperf3
|
iperf3
|
||||||
jdk-openjdk
|
jdk-openjdk
|
||||||
jdk17-openjdk
|
jdk17-openjdk
|
||||||
@@ -297,6 +300,7 @@ linux-cachyos-headers
|
|||||||
linux-firmware
|
linux-firmware
|
||||||
linuxqq
|
linuxqq
|
||||||
llama.cpp-cuda-git
|
llama.cpp-cuda-git
|
||||||
|
lldb
|
||||||
llmfit-bin
|
llmfit-bin
|
||||||
localsend
|
localsend
|
||||||
lolcat
|
lolcat
|
||||||
@@ -309,6 +313,7 @@ man-db
|
|||||||
man-pages
|
man-pages
|
||||||
mangohud
|
mangohud
|
||||||
matugen
|
matugen
|
||||||
|
mesa
|
||||||
meson
|
meson
|
||||||
mkvtoolnix-cli
|
mkvtoolnix-cli
|
||||||
modprobed-db
|
modprobed-db
|
||||||
@@ -424,8 +429,9 @@ riscv64-linux-gnu-binutils
|
|||||||
riscv64-linux-gnu-gcc
|
riscv64-linux-gnu-gcc
|
||||||
rsync
|
rsync
|
||||||
ruff
|
ruff
|
||||||
rust
|
|
||||||
rustdesk
|
rustdesk
|
||||||
|
rustup
|
||||||
|
scnlib
|
||||||
scrcpy
|
scrcpy
|
||||||
sd
|
sd
|
||||||
seahorse
|
seahorse
|
||||||
@@ -446,6 +452,7 @@ stow
|
|||||||
sudo
|
sudo
|
||||||
sunshine
|
sunshine
|
||||||
sushi
|
sushi
|
||||||
|
svt-av1-hdr-git
|
||||||
sysbench
|
sysbench
|
||||||
systemc
|
systemc
|
||||||
tailscale
|
tailscale
|
||||||
@@ -514,6 +521,7 @@ vulkan-extra-tools
|
|||||||
vulkan-gfxstream
|
vulkan-gfxstream
|
||||||
vulkan-headers
|
vulkan-headers
|
||||||
vulkan-intel
|
vulkan-intel
|
||||||
|
vulkan-mesa-implicit-layers
|
||||||
vulkan-mesa-layers
|
vulkan-mesa-layers
|
||||||
vulkan-swrast
|
vulkan-swrast
|
||||||
vvenc
|
vvenc
|
||||||
|
|||||||
Reference in New Issue
Block a user