feat: add kio right-click services

This commit is contained in:
js0ny 2025-10-08 10:31:05 +01:00
parent adbaf40828
commit ff096c02bd
5 changed files with 42 additions and 7 deletions

View file

@ -3,7 +3,7 @@
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": { "logo": {
// "type": "auto", // "type": "auto",
"source": "arch_small", "source": "fedora_small",
"padding": { "padding": {
"top": 2, "top": 2,
"left": 1, "left": 1,
@ -58,4 +58,4 @@
"poweradapter", "poweradapter",
"locale" "locale"
] ]
} }

View file

@ -55,10 +55,9 @@ if command -v bun > /dev/null
set -gx PATH $BUN_INSTALL/bin $PATH set -gx PATH $BUN_INSTALL/bin $PATH
end end
# Rust Cargo # Rust Cargo
if command -v cargo > /dev/null set -gx RUSTUP_HOME $XDG_DATA_HOME/rustup
set -gx CARGO_HOME $XDG_DATA_HOME/cargo set -gx CARGO_HOME $XDG_DATA_HOME/cargo
set -gx PATH $CARGO_HOME/bin $PATH set -gx PATH $CARGO_HOME/bin $PATH
end
# CGDB # CGDB
if command -v cgdb > /dev/null if command -v cgdb > /dev/null
set -gx CGDB_DIR $XDG_CONFIG_HOME/cgdb set -gx CGDB_DIR $XDG_CONFIG_HOME/cgdb
@ -174,4 +173,3 @@ test -f /opt/miniconda3/etc/fish/conf.d/conda.fish && source /opt/miniconda3/etc
test -d $HOME/.local/scripts && fish_add_path $HOME/.local/scripts test -d $HOME/.local/scripts && fish_add_path $HOME/.local/scripts
test -d $HOME/.local/build && fish_add_path $HOME/.local/build test -d $HOME/.local/build && fish_add_path $HOME/.local/build
source "/home/js0ny/.deno/env.fish"

View file

@ -0,0 +1,12 @@
[Desktop Entry]
Type=Service
MimeType=application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.openxmlformats-officedocument.presentationml.presentation;
Actions=convertToPDF
Icon=application-pdf
X-KDE-Priority=TopLevel
X-KDE-StartupNotify=false
[Desktop Action convertToPDF]
Name= PDF
Icon=application-pdf
Exec=soffice --headless --convert-to pdf "%f" --outdir .

View file

@ -0,0 +1,13 @@
[Desktop Entry]
Type=Service
MimeType=application/pdf;
Actions=translateToZh
Icon=translate
X-KDE-Priority=TopLevel
X-KDE-StartupNotify=false
[Desktop Action translateToZh]
Name=
Icon=translate
Exec=pdf2zh "%f"

View file

@ -0,0 +1,12 @@
[Desktop Entry]
Type=Service
MimeType=image/jpeg;image/png;
Actions=setWallpaper
Icon=preferences-desktop-wallpaper
X-KDE-Priority=TopLevel
X-KDE-StartupNotify=false
[Desktop Action setWallpaper]
Name=
Icon=preferences-desktop-wallpaper
Exec=swww img "%f"