stow
This commit is contained in:
16
config/yazi/.config/yazi/apply-color
Executable file
16
config/yazi/.config/yazi/apply-color
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
path=$(dirname "$(readlink -f "$0")")
|
||||
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
|
||||
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
|
||||
exit 1
|
||||
}
|
||||
. "$HOME/.local/snippets/apply-color-helper"
|
||||
|
||||
cp -f "$path"/../../../../assets/yazi-themes/catppuccin-mocha-"$colorName".toml "$path"/../yazi/theme.toml || {
|
||||
log_error "Failed to copy theme file"
|
||||
exit 1
|
||||
}
|
||||
|
||||
log_success "yazi"
|
||||
|
||||
5
config/yazi/.config/yazi/code-flags.conf
Normal file
5
config/yazi/.config/yazi/code-flags.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
--password-store=gnome-libsecret
|
||||
--enable-features=UseOzonePlatform
|
||||
--ozone-platform=wayland
|
||||
--use-gl=desktop
|
||||
--enable-wayland-ime
|
||||
|
Before Width: | Height: | Size: 1010 KiB After Width: | Height: | Size: 1010 KiB |
97
config/yazi/.config/yazi/posh_theme.omp.json
Executable file
97
config/yazi/.config/yazi/posh_theme.omp.json
Executable file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#89b4fa",
|
||||
"properties": {
|
||||
"windows": "\ue62a"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "{{.Icon}}",
|
||||
"type": "os"
|
||||
},
|
||||
{
|
||||
"foreground": "#89b4fa",
|
||||
"style": "plain",
|
||||
"template": " {{.UserName}}",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"foreground": "#89b4fa",
|
||||
"style": "plain",
|
||||
"template": "@{{.HostName}}",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"foreground": "#94e2d5",
|
||||
"properties": {
|
||||
"folder_separator_icon": "/",
|
||||
"style": "letter"
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " \uf07b {{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"foreground": "#a6e3a1",
|
||||
"powerline_symbol": "\ue0b1",
|
||||
"properties": {
|
||||
"branch_icon": " ",
|
||||
"fetch_stash_count": true,
|
||||
"fetch_status": true,
|
||||
"fetch_upstream_icon": true,
|
||||
"fetch_worktree_count": true
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " {{ .UpstreamIcon }} {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"foreground": "#f9e2af",
|
||||
"powerline_symbol": "\ue0b1",
|
||||
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
|
||||
"style": "powerline",
|
||||
"type": "python"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#fab387",
|
||||
"style": "plain",
|
||||
"template": "\ue3bf ",
|
||||
"type": "root"
|
||||
},
|
||||
{
|
||||
"foreground": "#89b4fa",
|
||||
"foreground_templates": [
|
||||
"{{ if gt .Code 0 }}#f38ba8{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"always_enabled": true
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "{{ if gt .Code 0 }}{{ .Code }} {{ end }}# ",
|
||||
"type": "status"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"transient_prompt": {
|
||||
"background": "transparent",
|
||||
"foreground_templates": [
|
||||
"{{ if gt .Code 0 }}#f38ba8{{ end }}"
|
||||
],
|
||||
"foreground": "#89b4fa",
|
||||
"template": "# "
|
||||
},
|
||||
"version": 3
|
||||
}
|
||||
2
config/yazi/.config/yazi/qq-electron-flags.conf
Normal file
2
config/yazi/.config/yazi/qq-electron-flags.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
--ozone-platform-hint=auto
|
||||
--enable-wayland-ime
|
||||
2
config/yazi/.config/yazi/qq-flags.conf
Normal file
2
config/yazi/.config/yazi/qq-flags.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
--ozone-platform-hint=auto
|
||||
--enable-wayland-ime
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
path=$(dirname "$(readlink -f "$0")")
|
||||
. "$path"/../../utils/apply-color-helper
|
||||
|
||||
cp -f "$path"/../../assets/yazi-themes/catppuccin-mocha-"$colorName".toml "$path"/../yazi/theme.toml || {
|
||||
log_error "Failed to copy theme file"
|
||||
exit 1
|
||||
}
|
||||
|
||||
log_success "yazi"
|
||||
Reference in New Issue
Block a user