mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
update
This commit is contained in:
parent
d4fc7e2249
commit
6b6107d8d2
13 changed files with 83 additions and 18 deletions
|
|
@ -35,9 +35,8 @@ end
|
|||
|
||||
if get_system_theme() == 'dark' then
|
||||
vim.o.background = 'dark'
|
||||
vim.cmd.colorscheme("catppuccin")
|
||||
vim.cmd.colorscheme("rose-pine")
|
||||
else
|
||||
vim.o.background = 'light'
|
||||
-- vim.cmd.colorscheme("rose-pine")
|
||||
vim.cmd.colorscheme("catppuccin")
|
||||
vim.cmd.colorscheme("rose-pine")
|
||||
end
|
||||
|
|
|
|||
|
|
@ -38,6 +38,9 @@ local bufmap = {
|
|||
sh = {
|
||||
{ mode = "n", keys = "<leader>mx", cmd = "<cmd>!chmod u+x %<CR>", opt = { desc = "Mark the file as executable" } },
|
||||
},
|
||||
json = {
|
||||
{ mode = "n", keys ="<leader>mp", cmd = "<cmd>%!jq", opt = { desc = "Prettify json"} }
|
||||
},
|
||||
}
|
||||
|
||||
-- Shallow copy
|
||||
|
|
|
|||
|
|
@ -183,17 +183,17 @@
|
|||
<Action name="go_back" priority="0"/>
|
||||
<Action name="go_forward" priority="0"/>
|
||||
<Action name="go_up" priority="0"/>
|
||||
<Action name="go_home" priority="0"/>
|
||||
<Action name="go_home" priority="0" shortcut="Ctrl+Backspace; Home Page"/>
|
||||
<Action name="stop" priority="0"/>
|
||||
<Action name="icons" priority="0"/>
|
||||
<Action name="compact" priority="0"/>
|
||||
<Action name="icons" priority="0" shortcut="; "/>
|
||||
<Action name="compact" priority="0" shortcut="; "/>
|
||||
<Action name="details" priority="0"/>
|
||||
<Action name="view_mode" priority="0"/>
|
||||
<Action name="view_settings" priority="0"/>
|
||||
<Action name="view_zoom_in" priority="0"/>
|
||||
<Action name="view_zoom_reset" priority="0"/>
|
||||
<Action name="view_zoom_out" priority="0"/>
|
||||
<Action name="edit_cut" priority="0"/>
|
||||
<Action name="edit_cut" priority="0" shortcut="Ctrl+X"/>
|
||||
<Action name="edit_copy" priority="0"/>
|
||||
<Action name="edit_paste" priority="0"/>
|
||||
<Action name="toggle_search" priority="0"/>
|
||||
|
|
@ -203,5 +203,10 @@
|
|||
<Action iconText="Location" name="copy_location"/>
|
||||
<Action icon="user_purple" iconText="sudo" name="act_as_admin"/>
|
||||
<Action name="add_to_places" priority="0"/>
|
||||
<Action name="copy_to_inactive_split_view" shortcut="Shift+F5; Ctrl+1"/>
|
||||
<Action name="move_to_inactive_split_view" shortcut="Shift+F6; Ctrl+2"/>
|
||||
</ActionProperties>
|
||||
</gui>
|
||||
<!--
|
||||
vim:ft=xml
|
||||
-->
|
||||
|
|
|
|||
|
|
@ -116,4 +116,6 @@
|
|||
<Action name="view_zoom_out" shortcut="Ctrl+-; -"/>
|
||||
</ActionProperties>
|
||||
</gui>
|
||||
<!-- vim:ft=xml -->
|
||||
<!--
|
||||
vim:ft=xml
|
||||
-->
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
value = {
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/${short}/latest.xpi";
|
||||
installation_mode = "force_installed";
|
||||
private_browsing = true;
|
||||
};
|
||||
};
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
dnsmasq
|
||||
|
|
|
|||
|
|
@ -54,5 +54,6 @@
|
|||
codex
|
||||
imagemagick
|
||||
miniserve
|
||||
jq
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
../gwenview.nix
|
||||
../dolphin.nix
|
||||
../../gwenview.nix
|
||||
../../dolphin.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
# kdePackages.yakuake
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# vim:foldmethod=marker,
|
||||
# vim:foldmethod=marker
|
||||
{...}: {
|
||||
programs.niri = {
|
||||
settings.window-rules = [
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
UseTabForSwitchingSplitView = true;
|
||||
};
|
||||
VersionControl = {
|
||||
enabledPlugins = "Subversion,Git";
|
||||
EnabledPlugins = "Subversion,Git";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -30,4 +30,28 @@
|
|||
$DRY_RUN_CMD rm -f ~/.config/dolphinrc-override
|
||||
fi
|
||||
'';
|
||||
|
||||
home.file.".local/share/kio/servicemenus/move-file.desktop" = {
|
||||
enable = true;
|
||||
executable = true;
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Type=Service
|
||||
MimeType=all/all
|
||||
Actions=to-inbox;to-public
|
||||
X-KDE-Submenu=Move file to...
|
||||
X-KDE-Submenu[CN]=将文件移动到
|
||||
Icon=mail-move
|
||||
|
||||
[Desktop Action to-inbox]
|
||||
Name=Inbox
|
||||
Icon=inbox
|
||||
Exec=mv "%f" $HOME/Inbox/
|
||||
|
||||
[Desktop Action to-public]
|
||||
Name=Public
|
||||
Icon=document-share
|
||||
Exec=mv "%f" $HOME/Public/
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
30
nixcfgs/users/js0ny/programs/magick.nix
Normal file
30
nixcfgs/users/js0ny/programs/magick.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = [pkgs.imagemagick];
|
||||
home.file.".local/share/kio/servicemenus/image-format.desktop" = {
|
||||
enable = true;
|
||||
executable = true;
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Type=Service
|
||||
MimeType=image/*
|
||||
Actions=to-avif;to-webp;to-jpeg
|
||||
X-KDE-Submenu=Image Format Conversion
|
||||
X-KDE-Submenu[CN]=图像格式转换
|
||||
|
||||
[Desktop Action to-avif]
|
||||
Name=Convert to AVIF
|
||||
Icon=edit-image
|
||||
Exec=magick "%f" "%f.avif"
|
||||
|
||||
[Desktop Action to-webp]
|
||||
Name=Convert to WebP
|
||||
Icon=edit-image
|
||||
Exec=magick "%f" "%f.webp"
|
||||
|
||||
[Desktop Action to-jpeg]
|
||||
Name=Convert to JPEG
|
||||
Icon=edit-image
|
||||
Exec=magick "%f" "%f.jpg"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -5,6 +5,8 @@
|
|||
}: {
|
||||
home.packages = [pkgs.miniserve];
|
||||
home.file.".local/share/kio/servicemenus/miniserve.desktop" = {
|
||||
enable = true;
|
||||
executable = true;
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Type=Service
|
||||
|
|
|
|||
|
|
@ -39,9 +39,11 @@
|
|||
./programs/gwenview.nix
|
||||
./programs/yazi.nix
|
||||
./programs/dolphin.nix
|
||||
./programs/magick.nix
|
||||
./programs/miniserve.nix
|
||||
|
||||
# Desktop Linux
|
||||
./programs/desktop/plasma.nix
|
||||
./programs/desktop/plasma
|
||||
./programs/desktop/wayland-wm/niri
|
||||
|
||||
# General Program config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue