From 7da4bccdf43b2abd472efe7829ca99677b4dda31 Mon Sep 17 00:00:00 2001 From: Florian Schmitt Date: Sat, 30 Dec 2023 19:16:25 +0300 Subject: [PATCH] feat : kitty with initial tabs + wrap in nvim --- dotfiles/kitty/kitty.conf | 1 + dotfiles/kitty/session.conf | 15 +++++++++++++++ dotfiles/nvim/lua/config/options.lua | 1 + modules/console.nix | 2 +- 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 dotfiles/kitty/session.conf diff --git a/dotfiles/kitty/kitty.conf b/dotfiles/kitty/kitty.conf index a3254c0..f99983d 100644 --- a/dotfiles/kitty/kitty.conf +++ b/dotfiles/kitty/kitty.conf @@ -80,3 +80,4 @@ confirm_os_window_close 0 enable_audio_bell no background_opacity 1 #background_opacity 0.9 +startup_session ~/.config/kitty/session.conf diff --git a/dotfiles/kitty/session.conf b/dotfiles/kitty/session.conf new file mode 100644 index 0000000..fa5ab2d --- /dev/null +++ b/dotfiles/kitty/session.conf @@ -0,0 +1,15 @@ +new_tab Tmux +layout tall +launch --title "Tmux" zsh -c tmux -f ~/.config/tmux/tmux.conf attach || zsh -c tmux -f ~/.config/tmux/tmux.conf new + +new_tab YesWiki Dev +layout tall:bias=75 +cd ~/Developpements/yeswiki/ +launch --title "Editeur" nvim . +launch --title "Console" --cwd=current + +new_tab Music +layout fat:bias=75 +cd ~/Musique/ +launch --title "Jukebox" --cwd=current nvlc --no-playlist-autostart . +launch --title "Visualizer" --cwd=current catnip -d "VLC media player (LibVLC 3.0.20)" diff --git a/dotfiles/nvim/lua/config/options.lua b/dotfiles/nvim/lua/config/options.lua index 65845e5..348d057 100644 --- a/dotfiles/nvim/lua/config/options.lua +++ b/dotfiles/nvim/lua/config/options.lua @@ -2,4 +2,5 @@ -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Add any additional options here vim.opt.scrolloff = 8; +vim.opt.wrap = true; diff --git a/modules/console.nix b/modules/console.nix index c494c00..e4611bf 100644 --- a/modules/console.nix +++ b/modules/console.nix @@ -32,7 +32,7 @@ enable = true; autosuggestions.enable = true; shellAliases = { - tmux = "tmux -f ~/.config/tmux/tmux.conf attach || tmux -f ~/.config/tmux/tmux.conf new"; + #tmux = "tmux -f ~/.config/tmux/tmux.conf attach || tmux -f ~/.config/tmux/tmux.conf new"; ls = "lsd --hyperlink=auto"; icat = "kitty +kitten icat"; nixedit = "vi /etc/nixos";