better tmux and alacritty
This commit is contained in:
19
home/lukas/alacritty.nix
Normal file
19
home/lukas/alacritty.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.alacritty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
|
||||||
|
terminal.shell = {
|
||||||
|
program = "${pkgs.tmux}/bin/tmux";
|
||||||
|
args = [ "new-session" "-A" "-s" "main" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
window = {
|
||||||
|
opacity = 0.85;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@@ -9,7 +9,8 @@
|
|||||||
./git.nix
|
./git.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./shell.nix
|
./shell.nix
|
||||||
./terminal.nix
|
./alacritty.nix
|
||||||
|
./tmux.nix
|
||||||
./xgd.nix
|
./xgd.nix
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
./rofi.nix
|
./rofi.nix
|
||||||
|
|||||||
@@ -9,16 +9,16 @@
|
|||||||
set-option -g history-limit 50000
|
set-option -g history-limit 50000
|
||||||
set -g default-shell "${pkgs.zsh}/bin/zsh"
|
set -g default-shell "${pkgs.zsh}/bin/zsh"
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
|
|
||||||
|
# split bindings: prefix+v = vertical split (side-by-side)
|
||||||
|
bind v split-window -h
|
||||||
|
|
||||||
|
# split bindings: prefix+h = horizontal split (top/bottom)
|
||||||
|
bind h split-window -v
|
||||||
|
|
||||||
|
# hide the status bar
|
||||||
|
set -g status off
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
programs.alacritty = {
|
|
||||||
enable = true;
|
|
||||||
settings.terminal.shell = {
|
|
||||||
program = "${pkgs.tmux}/bin/tmux";
|
|
||||||
args = [ "new-session" "-A" "-s" "main" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user