From 8683dcbef36b9db948f5514c25cef14b92af1980 Mon Sep 17 00:00:00 2001 From: js0ny Date: Wed, 3 Dec 2025 03:56:48 +0000 Subject: [PATCH] okular keymaps --- home/dot_local/share/kxmlgui5/okular/part.rc | 165 ++++++++++++++++++ home/dot_local/share/kxmlgui5/okular/shell.rc | 29 +++ .../js0ny/programs/desktop/plasma/default.nix | 2 +- .../users/js0ny/programs/firefox/default.nix | 3 + nixcfgs/users/js0ny/programs/konsole.nix | 3 + nixcfgs/users/js0ny/programs/shell/fish.nix | 4 + nixcfgs/users/js0ny/programs/zed-editor.nix | 5 + 7 files changed, 210 insertions(+), 1 deletion(-) create mode 100644 home/dot_local/share/kxmlgui5/okular/part.rc create mode 100644 home/dot_local/share/kxmlgui5/okular/shell.rc diff --git a/home/dot_local/share/kxmlgui5/okular/part.rc b/home/dot_local/share/kxmlgui5/okular/part.rc new file mode 100644 index 0000000..c82ae8e --- /dev/null +++ b/home/dot_local/share/kxmlgui5/okular/part.rc @@ -0,0 +1,165 @@ + + + + + + &File + + + + + + + + + + + + + + + &Edit + + + + + + + + + + + + + + &View + + + + + + + + + + + + + &Orientation + + + + + + + + + + &Go + + + + + + + + + + + + + &Bookmarks + + + + + + + + + &Tools + + + + + + + + + + + + + + + + + + + &Settings + + + + + + + + &Help + + + + + Main Toolbar + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/home/dot_local/share/kxmlgui5/okular/shell.rc b/home/dot_local/share/kxmlgui5/okular/shell.rc new file mode 100644 index 0000000..25b4055 --- /dev/null +++ b/home/dot_local/share/kxmlgui5/okular/shell.rc @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + Main Toolbar + + + + + diff --git a/nixcfgs/users/js0ny/programs/desktop/plasma/default.nix b/nixcfgs/users/js0ny/programs/desktop/plasma/default.nix index 891eadf..38fc36a 100644 --- a/nixcfgs/users/js0ny/programs/desktop/plasma/default.nix +++ b/nixcfgs/users/js0ny/programs/desktop/plasma/default.nix @@ -56,7 +56,7 @@ in { # colorScheme = "BreezeDark"; # }; kwin = { - virtualDesktops.number = 8; + virtualDesktops.number = 9; titlebarButtons = { left = [ "more-window-actions" diff --git a/nixcfgs/users/js0ny/programs/firefox/default.nix b/nixcfgs/users/js0ny/programs/firefox/default.nix index 77a30c7..bf6fb67 100644 --- a/nixcfgs/users/js0ny/programs/firefox/default.nix +++ b/nixcfgs/users/js0ny/programs/firefox/default.nix @@ -23,6 +23,9 @@ # Disable Translations "browser.translations.enable" = false; "browser.translations.automaticallyPopup" = false; + # CJK IME Optimisation + "browser.urlbar.keepPanelOpenDuringImeComposition" = true; + "browser.tabs.closeTabByDblclick" = true; }; }; }; diff --git a/nixcfgs/users/js0ny/programs/konsole.nix b/nixcfgs/users/js0ny/programs/konsole.nix index 4100508..61f2cc2 100644 --- a/nixcfgs/users/js0ny/programs/konsole.nix +++ b/nixcfgs/users/js0ny/programs/konsole.nix @@ -16,6 +16,9 @@ name = "Maple Mono NF CN"; size = 12; }; + extraConfig = { + General.Environment = "TERM=xterm-256color,COLORTERM=truecolor,TERM_PROGRAM=konsole,"; + }; }; }; }; diff --git a/nixcfgs/users/js0ny/programs/shell/fish.nix b/nixcfgs/users/js0ny/programs/shell/fish.nix index 1be276f..5d19cda 100644 --- a/nixcfgs/users/js0ny/programs/shell/fish.nix +++ b/nixcfgs/users/js0ny/programs/shell/fish.nix @@ -36,6 +36,10 @@ in { bind -M insert ctrl-k kill-line bind -M insert ctrl-w backward-kill-path-component + if [ $TERM_PROGRAM = "konsole" ] + bind -M insert ctrl-h backward-kill-word + end + # ctrl + backspace bind -M insert ctrl-backspace backward-kill-path-component diff --git a/nixcfgs/users/js0ny/programs/zed-editor.nix b/nixcfgs/users/js0ny/programs/zed-editor.nix index 1502980..6fa827f 100644 --- a/nixcfgs/users/js0ny/programs/zed-editor.nix +++ b/nixcfgs/users/js0ny/programs/zed-editor.nix @@ -125,6 +125,11 @@ shift-s = "vim::PushSneakBackward"; }; } + { + bindings = { + "alt-x" = "command_palette::Toggle"; + }; + } ]; userSettings = {