From c96fdac1b1df5677cb1eaa9dd073569eb76ebe77 Mon Sep 17 00:00:00 2001 From: Nikos Papadakis Date: Sat, 28 Dec 2024 12:05:18 +0200 Subject: [PATCH] ghostty --- README.md | 2 +- ghostty/config | 21 +++++++++++++++++++++ home.nix | 1 + hypr/hyprland.conf | 2 +- nvim/lua/my/keymaps.lua | 8 ++++---- 5 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 ghostty/config diff --git a/README.md b/README.md index e574faa..a512831 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ - [Neovim Nightly](https://github.com/neovim/neovim) - [Fish Shell](https://github.com/fish-shell/fish-shell) -- [Foot](https://nixos.wiki/wiki/Flakes) +- [Ghostty](https://ghostty.org) ## Usage diff --git a/ghostty/config b/ghostty/config new file mode 100644 index 0000000..38dc3b8 --- /dev/null +++ b/ghostty/config @@ -0,0 +1,21 @@ +theme = catppuccin-frappe +cursor-invert-fg-bg = true +mouse-hide-while-typing = true +command = fish +adw-toolbar-style = flat +window-theme = ghostty + +keybind = alt+l=goto_split:right +keybind = alt+h=goto_split:left +keybind = alt+k=goto_split:top +keybind = alt+j=goto_split:bottom +keybind = ctrl+alt+l=new_split:right +keybind = ctrl+alt+h=new_split:left +keybind = ctrl+alt+k=new_split:up +keybind = ctrl+alt+j=new_split:down +keybind = alt+enter=toggle_fullscreen +keybind = alt+t=new_tab + +keybind = ctrl+enter=unbind +keybind = ctrl+shift+t=unbind +keybind = ctrl+shift+j=unbind diff --git a/home.nix b/home.nix index 3e0e827..f4b3a3a 100644 --- a/home.nix +++ b/home.nix @@ -20,6 +20,7 @@ "nvim".source = ./nvim; "foot".source = ./foot; "hypr".source = ./hypr; + "ghostty".source = config.lib.file.mkOutOfStoreSymlink "/home/${extra.user}/.dotfiles/ghostty"; }; xdg.dataFile = { diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index faca5ce..842737e 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -1,6 +1,6 @@ monitor=DP-3,2160x1440@144,0x0,auto -$terminal = foot +$terminal = ghostty $fileManager = dolphin $menu = wofi --show drun diff --git a/nvim/lua/my/keymaps.lua b/nvim/lua/my/keymaps.lua index 7a20d6e..f8b71a6 100644 --- a/nvim/lua/my/keymaps.lua +++ b/nvim/lua/my/keymaps.lua @@ -18,10 +18,10 @@ nmap("", function() resize(true, -2) end) nmap("", function() resize(true, 2) end) -- Easy move lines -nmap("", ":m+==") -nmap("", ":m-2==") -vmap("", ":m '>+1gv=gv") -vmap("", ":m '<-2gv=gv") +nmap("", ":m+==") +nmap("", ":m-2==") +vmap("", ":m '>+1gv=gv") +vmap("", ":m '<-2gv=gv") nmap("", vim.cmd.nohl) nmap("", "")