2022-03-10 20:59:18 +01:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
let
|
2022-03-13 11:46:00 +01:00
|
|
|
theme = pkgs.myThemes.current;
|
2022-05-11 23:11:54 +02:00
|
|
|
|
|
|
|
fastcopy = pkgs.tmuxPlugins.mkTmuxPlugin
|
|
|
|
{
|
|
|
|
pluginName = "fastcopy";
|
|
|
|
version = "unstable-2022-04-18";
|
|
|
|
src = pkgs.fetchFromGitHub
|
|
|
|
{
|
|
|
|
owner = "abhinav";
|
|
|
|
repo = "tmux-fastcopy";
|
|
|
|
sha256 = "0d2xdch5w35mw3kpw1y6jy8wk4zj43pjx73jlx83ciqddl3975x6";
|
|
|
|
rev = "4b9bc8e9e71c5b6eeb44a02f608baec07e12ea3d";
|
|
|
|
};
|
|
|
|
};
|
2022-03-10 20:59:18 +01:00
|
|
|
in
|
|
|
|
{
|
2022-03-08 11:12:09 +01:00
|
|
|
home-manager.users.adrielus.programs = {
|
|
|
|
# Add tmux-navigator plugin to neovim
|
2022-04-04 01:10:26 +02:00
|
|
|
# neovim.extraPackages = [ pkgs.vimPlugins.vim-tmux-navigator ];
|
2022-03-08 11:12:09 +01:00
|
|
|
|
|
|
|
tmux = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
clock24 = true; # 24h clock format
|
|
|
|
terminal = "screen-256color"; # more colors
|
|
|
|
historyLimit = 10000; # increase amount of saved lines
|
|
|
|
|
|
|
|
plugins = with pkgs.tmuxPlugins; [
|
|
|
|
cpu # Show CPU load with easy icons
|
|
|
|
vim-tmux-navigator # Switch between tmux and vim panes with ease
|
2022-05-11 23:11:54 +02:00
|
|
|
sessionist # Nicer workflow for switching around between session
|
|
|
|
# fastcopy # Easy copying of stuff
|
|
|
|
resurrect # Save / restore tmux sessions
|
2022-03-08 11:12:09 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = ''
|
2022-03-13 11:46:00 +01:00
|
|
|
# Load current theme
|
|
|
|
source ${theme.tmux.path}
|
2022-03-09 19:03:04 +01:00
|
|
|
|
|
|
|
# load the rest of the config
|
2022-03-13 11:46:00 +01:00
|
|
|
source ${../../dotfiles/tmux/tmux.conf}
|
2022-03-08 11:12:09 +01:00
|
|
|
'';
|
|
|
|
};
|
2022-03-08 10:25:05 +01:00
|
|
|
};
|
|
|
|
}
|