mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat: add kio right-click services
This commit is contained in:
parent
adbaf40828
commit
ff096c02bd
5 changed files with 42 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {
|
||||
// "type": "auto",
|
||||
"source": "arch_small",
|
||||
"source": "fedora_small",
|
||||
"padding": {
|
||||
"top": 2,
|
||||
"left": 1,
|
||||
|
|
|
|||
|
|
@ -55,10 +55,9 @@ if command -v bun > /dev/null
|
|||
set -gx PATH $BUN_INSTALL/bin $PATH
|
||||
end
|
||||
# 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 PATH $CARGO_HOME/bin $PATH
|
||||
end
|
||||
# CGDB
|
||||
if command -v cgdb > /dev/null
|
||||
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/build && fish_add_path $HOME/.local/build
|
||||
|
||||
source "/home/js0ny/.deno/env.fish"
|
||||
|
|
|
|||
|
|
@ -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 .
|
||||
|
|
@ -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"
|
||||
|
||||
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue