feat: tmux scripting

This commit is contained in:
Zhongheng Liu 2024-12-07 13:04:09 +02:00
commit 08def86724
Signed by: steven
GPG key ID: 805A28B071DAD84B
5 changed files with 28 additions and 3 deletions

View file

@ -9,7 +9,7 @@
settings = {
main = {
term = "xterm-256color";
font = "${config.desktopFontFullName}:size=12";
#font = "${config.desktopFontFullName}:size=24";
dpi-aware = lib.mkForce "yes";
};
mouse = {

View file

@ -3,5 +3,11 @@
pkgs,
...
}: {
home.packages = [(import ./heic-to-jpg.script.nix {inherit pkgs;})];
home.packages = [
(import ./heic-to-jpg.script.nix {inherit pkgs;})
(import ./tmux-default.script.nix {
inherit pkgs;
inherit config;
})
];
}

View file

@ -0,0 +1,14 @@
{
pkgs,
config,
}: let
tmux = config.programs.tmux.package;
windowName = "code-mode";
in
pkgs.writeShellScriptBin "tmux-code" ''
#!/bin/sh
${tmux}/bin/tmux new -s ${windowName} -d
${tmux}/bin/tmux send-keys -t ${windowName} nvim C-m
${tmux}/bin/tmux split-window -h
${tmux}/bin/tmux attach -t ${windowName}
''

View file

@ -19,7 +19,7 @@ in
${builtins.readFile ./init/tailscale.fish}
${builtins.readFile ./init/pass.fish}
function fish_greeting
${pkgs.fortune}/bin/fortune -a
${(pkgs.fortune.override {withOffensive = true;})}/bin/fortune -as
end
funcsave -q fish_greeting

View file

@ -19,7 +19,12 @@ in {
name = config.desktopFontFullName;
package = pkgs.nerd-fonts.jetbrains-mono;
};
sizes = {
terminal = 24;
applications = 16;
};
};
cursor.size = 24;
opacity = {
applications = globalOpacity;
desktop = globalOpacity;