This commit is contained in:
Nikos Papadakis 2024-12-28 12:05:18 +02:00
parent b6399a75d5
commit c96fdac1b1
Signed by untrusted user who does not match committer: nikos
GPG key ID: 78871F9905ADFF02
5 changed files with 28 additions and 6 deletions

View file

@ -2,7 +2,7 @@
- [Neovim Nightly](https://github.com/neovim/neovim) - [Neovim Nightly](https://github.com/neovim/neovim)
- [Fish Shell](https://github.com/fish-shell/fish-shell) - [Fish Shell](https://github.com/fish-shell/fish-shell)
- [Foot](https://nixos.wiki/wiki/Flakes) - [Ghostty](https://ghostty.org)
## Usage ## Usage

21
ghostty/config Normal file
View file

@ -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

View file

@ -20,6 +20,7 @@
"nvim".source = ./nvim; "nvim".source = ./nvim;
"foot".source = ./foot; "foot".source = ./foot;
"hypr".source = ./hypr; "hypr".source = ./hypr;
"ghostty".source = config.lib.file.mkOutOfStoreSymlink "/home/${extra.user}/.dotfiles/ghostty";
}; };
xdg.dataFile = { xdg.dataFile = {

View file

@ -1,6 +1,6 @@
monitor=DP-3,2160x1440@144,0x0,auto monitor=DP-3,2160x1440@144,0x0,auto
$terminal = foot $terminal = ghostty
$fileManager = dolphin $fileManager = dolphin
$menu = wofi --show drun $menu = wofi --show drun

View file

@ -18,10 +18,10 @@ nmap("<A-Left>", function() resize(true, -2) end)
nmap("<A-Right>", function() resize(true, 2) end) nmap("<A-Right>", function() resize(true, 2) end)
-- Easy move lines -- Easy move lines
nmap("<A-j>", ":m+<CR>==") nmap("<C-S-J>", ":m+<CR>==")
nmap("<A-k>", ":m-2<CR>==") nmap("<C-S-K>", ":m-2<CR>==")
vmap("<A-j>", ":m '>+1<CR>gv=gv") vmap("<C-S-J>", ":m '>+1<CR>gv=gv")
vmap("<A-k>", ":m '<-2<CR>gv=gv") vmap("<C-S-K>", ":m '<-2<CR>gv=gv")
nmap("<Esc>", vim.cmd.nohl) nmap("<Esc>", vim.cmd.nohl)
nmap("<Tab>", "<C-^>") nmap("<Tab>", "<C-^>")