Add tmux for lxsameer

This commit is contained in:
Sameer Rahmani 2024-02-26 21:24:52 +00:00
parent 61ec06c4b3
commit d3c1ca220f
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
3 changed files with 64 additions and 30 deletions

View File

@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1708564520, "lastModified": 1708910350,
"narHash": "sha256-juduDTYBhGN6jNfQ5RMDpbQF+MkO0pj3k7XGDSTjAbs=", "narHash": "sha256-cTuJVlOm05aQFIgGuYikgkrI61P2vTO2OfXwIRWEzUg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "23d308f0059955e3719efc81a34d1fc0369fbb74", "rev": "a13f36255cf4ce99cc4236a34251c2e7106e101d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -46,18 +46,16 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"dirtyRev": "688c76af875a26c7ae3229937cd86bd79cf0e102-dirty",
"dirtyShortRev": "688c76af875a-dirty",
"lastModified": 1708611597, "lastModified": 1708611597,
"narHash": "sha256-os+zgz16WsM8kLirJ+SX4+sUqHArmdmZi5u3tG+ksK8=", "narHash": "sha256-w4mvH7EdpUg+QS7fWrVDJ7aomv0CPWNqAbd8BhE0iV0=",
"ref": "v4",
"rev": "688c76af875a26c7ae3229937cd86bd79cf0e102",
"revCount": 1045,
"type": "git", "type": "git",
"url": "https://devheroes.codes/FG42/FG42" "url": "file:///home/lxsameer/src/fg42"
}, },
"original": { "original": {
"ref": "v4",
"type": "git", "type": "git",
"url": "https://devheroes.codes/FG42/FG42" "url": "file:///home/lxsameer/src/fg42"
} }
}, },
"flake-utils": { "flake-utils": {
@ -137,11 +135,11 @@
}, },
"nixlib": { "nixlib": {
"locked": { "locked": {
"lastModified": 1708217146, "lastModified": 1708821942,
"narHash": "sha256-nGfEv7k78slqIR5E0zzWSx214d/4/ZPKDkObLJqVLVw=", "narHash": "sha256-jd+E1SD59qty65pwqad2mftzkT6vW5nNFWVuvayh4Zw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "e623008d8a46517470e6365505f1a3ce171fa46a", "rev": "479831ed8b3c9c7b80533999f880c7d0bf6a491b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -158,11 +156,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1708563055, "lastModified": 1708940320,
"narHash": "sha256-FaojUZNu+YPFi3eCI7mL4kxPKQ51DoySa7mqmllUOuc=", "narHash": "sha256-QOWRJlqT5FRESiaO42/QV/GbSRNKSa4XUDs3cNQsoWI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixos-generators", "repo": "nixos-generators",
"rev": "f4631dee1a0fd56c0db89860e83e3588a28c7631", "rev": "5b7772406956f95e8a0e1f27218b1e7cf6e9164a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -188,11 +186,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1708501555, "lastModified": 1708815994,
"narHash": "sha256-zJaF0RkdIPbh8LTmnpW/E7tZYpqIE+MePzlWwUNob4c=", "narHash": "sha256-hL7N/ut2Xu0NaDxDMsw2HagAjgDskToGiyZOWriiLYM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b50a77c03d640716296021ad58950b1bb0345799", "rev": "9a9dae8f6319600fa9aebde37f340975cab4b8c0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -34,8 +34,8 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
fg42.url = "git+https://devheroes.codes/FG42/FG42?ref=v4"; # fg42.url = "git+https://devheroes.codes/FG42/FG42?ref=v4";
#fg42.url = "/home/lxsameer/.fg42"; fg42.url = "/home/lxsameer/src/fg42";
flake_utils.url = "github:numtide/flake-utils"; flake_utils.url = "github:numtide/flake-utils";

View File

@ -68,7 +68,7 @@
# browsers # browsers
librewolf librewolf
firefox firefox
# utils # utils
ripgrep ripgrep
eza # A modern replacement for ls eza # A modern replacement for ls
@ -93,7 +93,7 @@
zstd zstd
gnupg gnupg
libnotify libnotify
# nix related # nix related
# #
# it provides the command `nom` works just like `nix` # it provides the command `nom` works just like `nix`
@ -154,7 +154,7 @@
extraConfig = { extraConfig = {
core = { core = {
abbrev = 12; abbrev = 12;
excludesFile = "${./git/gitignore}"; excludesFile = "${./git/gitignore}";
}; };
pretty = { pretty = {
@ -164,12 +164,12 @@
url."git@github.com:" = { url."git@github.com:" = {
insteadOf = "https://github.com/"; insteadOf = "https://github.com/";
}; };
sendemail = { sendemail = {
smtpEncryption = "tls"; smtpEncryption = "tls";
smtpServer = "fencepost.gnu.org"; smtpServer = "fencepost.gnu.org";
smtpUser = "lxsameer"; smtpUser = "lxsameer";
smtpServerPort = 587; smtpServerPort = 587;
}; };
status.submoduleSummary = true; status.submoduleSummary = true;
@ -221,6 +221,8 @@
d = "docker"; d = "docker";
n = "nix"; n = "nix";
ew = "emacs -nw"; ew = "emacs -nw";
pu = "git push origin $(git branch --show-current)";
pl = "git pull origin $(git branch --show-current)";
_ = "sudo"; _ = "sudo";
}; };
@ -295,6 +297,40 @@
enableZshIntegration = true; enableZshIntegration = true;
}; };
programs.tmux = {
enable = true;
terminal = "tmux-256color";
historyLimit = 100000;
keyMode = "emacs";
prefix = "M-Space";
plugins = (with pkgs.tmuxPlugins; [
cpu
jump
mode-indicator
net-speed
tmux-fzf
]);
extraConfig = ''
unbind C-b
set -g @jump-key 'M-1'
bind C-b copy-mode -u
bind Space copy-mode
bind enter new-window
bind-key -T copy-mode M-w send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
bind-key -T copy-mode m send-keys -X page-up
bind-key -T copy-mode n send-keys -X page-down
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
'';
};
programs.mpv.enable = true; programs.mpv.enable = true;
programs.obs-studio.enable = true; programs.obs-studio.enable = true;
programs.noti.enable = true; programs.noti.enable = true;
@ -334,5 +370,5 @@
enable = true; enable = true;
enableSshSupport = true; enableSshSupport = true;
}; };
} }