1
Fork 0

feat: tmux config in it's own file

This commit is contained in:
Matei Adriel 2022-03-08 12:12:09 +02:00
parent 135433dc43
commit 30940be41e
3 changed files with 75 additions and 35 deletions

18
dotfiles/tmux/tmux.conf Normal file
View file

@ -0,0 +1,18 @@
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# force a reload of the config file (I don't think this works on nixos)
unbind r
bind r source-file ~/.tmux.conf
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# Vim-like keybinds for switching between panes
bind -n m-h select-pane -L
bind -n m-l select-pane -R
bind -n m-k select-pane -U
bind -n m-j select-pane -D

View file

@ -19,11 +19,11 @@
"easy-dhall-nix": { "easy-dhall-nix": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1640162628, "lastModified": 1645736928,
"narHash": "sha256-fdOoWZo76twDMMTSF8Pe1qlsmXL9VO/QNWZcwUWiz/A=", "narHash": "sha256-jjEqfh+M73+t2Iq/IKjAGr2d2kGUeo9A7Wu7V0IxdzI=",
"owner": "justinwoo", "owner": "justinwoo",
"repo": "easy-dhall-nix", "repo": "easy-dhall-nix",
"rev": "7675f6f0cf5f28d2e36a8ca156b9c47ca75b820b", "rev": "dce9acbb99776a7f1344db4751d6080380f76f57",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -35,11 +35,11 @@
"easy-purescript-nix": { "easy-purescript-nix": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1644823918, "lastModified": 1646209831,
"narHash": "sha256-fhr5sisPsm2uzm0VenH7Urpc+AcI39OGpPNaUVTD/8Q=", "narHash": "sha256-or8Z6aMWdrqcmFA0hhjjb6FIiW14C0ruwXAqy+zYZ8g=",
"owner": "justinwoo", "owner": "justinwoo",
"repo": "easy-purescript-nix", "repo": "easy-purescript-nix",
"rev": "3630943b74f681289ed87a0ed6c3e502556ddebb", "rev": "aa72388ca0fb72ed64467f59a121db1f104897db",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -82,11 +82,11 @@
}, },
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1629481132, "lastModified": 1644229661,
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=", "narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "997f7efcb746a9c140ce1f13c72263189225f482", "rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -113,11 +113,11 @@
"githubNvimTheme": { "githubNvimTheme": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1642931254, "lastModified": 1645953701,
"narHash": "sha256-3Rp0oL+yhojQ6bIejS4IlPzyrxut7LcuobykonrpAEc=", "narHash": "sha256-FZGmcsc0GWW32gEvcBkJh+oFPjRamsFTRJd8VTAf5QY=",
"owner": "projekt0n", "owner": "projekt0n",
"repo": "github-nvim-theme", "repo": "github-nvim-theme",
"rev": "1700dfe790985ce859868e16e13dcda0ec80cb3f", "rev": "4ad832edd70be94af43fd3f21065e73987b4176e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -133,11 +133,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1645479152, "lastModified": 1646559628,
"narHash": "sha256-8au2xAPSi3yGQBaVrYUpMY30lY9tMuNn7UMAHL7NJtw=", "narHash": "sha256-WDoqxH/IPTV8CkI15wwzvXYgXq9UPr8xd8WKziuaynw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "69536af27e86a9fc875d71cb9566ccccf47b5b60", "rev": "afe96e7433c513bf82375d41473c57d1f66b4e68",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -156,11 +156,11 @@
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1645480882, "lastModified": 1646712943,
"narHash": "sha256-EHXbr96JiprqxiVQy1NnrCmYB0+HK1EAdWdXQiZ03Cw=", "narHash": "sha256-FuYXH7g8OW8P+mAMLP/zx3zJOENtGIv5tLaOzKPP+is=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "30c9c8815b531e0130ebeb9358bc6d3947a6128a", "rev": "2783f4cc4a410cd3b73e8cdfbdf8c859c426c6c6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -179,11 +179,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1645517666, "lastModified": 1646727299,
"narHash": "sha256-DeQmb7GXKScYKPVXASBlgaARdXO4B9u6um32UPnFIZo=", "narHash": "sha256-i18vMn+iXvPRAxPb96lEuEVkrQ75qKEZZomfo67JRJI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "f6ce5a9aec32a336cf7045b380a50a42583acd3a", "rev": "c26d33c2fbcf5f689a2592b2353f4f8765eea1da",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -194,11 +194,11 @@
}, },
"nixos-unstable": { "nixos-unstable": {
"locked": { "locked": {
"lastModified": 1645433236, "lastModified": 1646497237,
"narHash": "sha256-4va4MvJ076XyPp5h8sm5eMQvCrJ6yZAbBmyw95dGyw4=", "narHash": "sha256-Ccpot1h/rV8MgcngDp5OrdmLTMaUTbStZTR5/sI7zW0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7f9b6e2babf232412682c09e57ed666d8f84ac2d", "rev": "062a0c5437b68f950b081bbfc8a699d57a4ee026",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -210,11 +210,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1645488570, "lastModified": 1646675913,
"narHash": "sha256-29Fvczhd20K3ol0wbQrFlsUiYUDoGnpOR2XJTdrRnZA=", "narHash": "sha256-ZvGf51XpXM7JojKLZ5yI0XLUq8UOFX6AwZ3bhtdcpIo=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "491ad20776074706da6befe0cb8334f2df23fc00", "rev": "9b1c7ba323732ddc85a51850a7f10ecc5269b8e9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -226,11 +226,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1645493675, "lastModified": 1646470760,
"narHash": "sha256-9xundbZQbhFodsQRh6QMN1GeSXfo3y/5NL0CZcJULz0=", "narHash": "sha256-dQISyucVCCPaFioUhy5ZgfBz8rOMKGI8k13aPDFTqEs=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "74b10859829153d5c5d50f7c77b86763759e8654", "rev": "1fc7212a2c3992eedc6eedf498955c321ad81cc2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -295,11 +295,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1645366942, "lastModified": 1646576673,
"narHash": "sha256-2jIT/nz+gelrLI6TcPlT5Awm0Hr/HsozMvOn6lMzp1o=", "narHash": "sha256-zS5O7nW4sBzAa+hnEfI2P8J42XjfyEYrUU0VXnbvIIA=",
"owner": "m15a", "owner": "m15a",
"repo": "nixpkgs-vim-extra-plugins", "repo": "nixpkgs-vim-extra-plugins",
"rev": "6a77da622616f01e9b4a4504fa4ce86acc42ac4b", "rev": "efe7a114effc4e242b3b8a848a6c86e1b552994b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,5 +1,27 @@
{ pkgs, ... }: { { pkgs, ... }: {
home-manager.users.adrielus.programs.tmux = { home-manager.users.adrielus.programs = {
enable = true; # Add tmux-navigator plugin to neovim
neovim.extraPackages = [ pkgs.vimPlugins.vim-tmux-navigator ];
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
];
extraConfig = ''
# load the rest of the config
source-file ${../../dotfiles/tmux/tmux.conf}
# Use github light theme
source-file ${pkgs.githubNvimTheme}/terminal/tmux/github_light.conf
'';
};
}; };
} }