From 8a9d95f582f2a3a56d485bc492bbc7c06c93dcf9 Mon Sep 17 00:00:00 2001 From: Sense T Date: Tue, 4 Jul 2023 13:34:52 +0800 Subject: [PATCH] update --- home/user/files/hyprland.conf | 2 +- home/user/programs.nix | 1 + home/user/xdg.nix | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/home/user/files/hyprland.conf b/home/user/files/hyprland.conf index 161a899..3b8f420 100644 --- a/home/user/files/hyprland.conf +++ b/home/user/files/hyprland.conf @@ -122,7 +122,7 @@ bind = $mainMod, RETURN, exec, kitty bind = $mainMod SHIFT, Q, killactive, bind = $mainMod, M, exec, nwg-bar bind = $mainMod, V, togglefloating, -bind = $mainMod, R, exec, nwg-drawer -lang zh_CN -nocats -nofs -term kitty +bind = $mainMod, ESCAPE, exec, nwg-drawer -lang zh_CN -nocats -nofs -term kitty bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle diff --git a/home/user/programs.nix b/home/user/programs.nix index ac0f125..2371ab4 100644 --- a/home/user/programs.nix +++ b/home/user/programs.nix @@ -15,6 +15,7 @@ zsh = { enable = true; + enableAutosuggestions = true; enableSyntaxHighlighting = true; oh-my-zsh = { diff --git a/home/user/xdg.nix b/home/user/xdg.nix index 14c55a4..bb078b2 100644 --- a/home/user/xdg.nix +++ b/home/user/xdg.nix @@ -1,6 +1,7 @@ let defaultBrowser = "io.gitlab.librewolf-community.desktop"; defaultFileManager = "ranger.desktop"; + defaultTerminal = "kitty.desktop"; in { xdg = { enable = true; @@ -16,6 +17,14 @@ in { # Default file manager. "inode/directory" = defaultFileManager; + + # Image + "image/*" = defaultTerminal; + + # Default terminal + "application/x-sh" = defaultTerminal; + "application/x-shellscript" = defaultTerminal; + "x-scheme-handler/ssh" = defaultTerminal; }; }; };