Remove Zellij
This commit is contained in:
parent
55ff0f011b
commit
48bc1386cc
7 changed files with 7 additions and 54 deletions
|
@ -49,8 +49,6 @@
|
|||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
# Steam Deck configs for NixOS
|
||||
jovian.url = "github:Jovian-Experiments/Jovian-NixOS";
|
||||
# Status line for Zellij
|
||||
zjstatus.url = "github:dj95/zjstatus";
|
||||
};
|
||||
outputs = { self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, nixos-generators, deploy-rs, jovian, ... } @inputs:
|
||||
let
|
||||
|
|
|
@ -12,6 +12,5 @@
|
|||
./nixvim.nix
|
||||
./rbw.nix
|
||||
./tmux.nix
|
||||
./zellij.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
interactiveShellInit = ''
|
||||
set EDITOR vim
|
||||
ssh-add > /dev/null &> /dev/null
|
||||
if set -q ZELLIJ
|
||||
if set -q TMUX
|
||||
else
|
||||
if set -q DISABLE_TMUX
|
||||
else
|
||||
exec zellij attach -c "MAIN" && exit
|
||||
tmux attach || exec tmux new-session && exit
|
||||
end
|
||||
end
|
||||
'';
|
||||
|
@ -23,7 +23,6 @@
|
|||
find secrets -name "*.yaml" -exec sops updatekeys {} \;
|
||||
'';
|
||||
restart-docker = ''
|
||||
# set GPG_TTY $tty
|
||||
pushd /Storage/Data/docker-compose/sysctl.io/
|
||||
docker stop $argv
|
||||
docker rm $argv
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ config, pkgs, inputs, system, ... }: {
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
# enableBashIntegration = true;
|
||||
# enableFishIntegration = true;
|
||||
settings = {
|
||||
session_serialization = false;
|
||||
default_layout = "compact";
|
||||
|
@ -26,47 +24,4 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."zjstatus-layout-default" = {
|
||||
enable = false;
|
||||
target = "zellij/layouts/default.kdl";
|
||||
text = ''
|
||||
layout {
|
||||
default_tab_template {
|
||||
children
|
||||
pane size=1 borderless=false {
|
||||
plugin location="file:${inputs.zjstatus.packages.${system}.default}/bin/zjstatus.wasm" {
|
||||
format_left "{mode} #[fg=#89B4FA,bold]{session}"
|
||||
format_center "{tabs}"
|
||||
format_right "{command_git_branch} {datetime}"
|
||||
format_space ""
|
||||
|
||||
border_enabled "false"
|
||||
border_char "─"
|
||||
border_format "#[fg=#6C7086]{char}"
|
||||
border_position "top"
|
||||
|
||||
hide_frame_for_single_pane "true"
|
||||
|
||||
mode_normal "#[bg=blue] "
|
||||
mode_tmux "#[bg=#ffc387] "
|
||||
|
||||
tab_normal "#[fg=#6C7086] {name} "
|
||||
tab_active "#[fg=#9399B2,bold,italic] {name} "
|
||||
|
||||
command_git_branch_command "git rev-parse --abbrev-ref HEAD"
|
||||
command_git_branch_format "#[fg=blue] {stdout} "
|
||||
command_git_branch_interval "10"
|
||||
command_git_branch_rendermode "static"
|
||||
|
||||
datetime "#[fg=#6C7086,bold] {format} "
|
||||
datetime_format "%A, %d %b %Y %H:%M"
|
||||
datetime_timezone "Europe/Berlin"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -4,12 +4,11 @@
|
|||
# ./common/software/cli/bash.nix
|
||||
./common/software/cli/fish.nix
|
||||
./common/software/cli/git.nix
|
||||
# ./common/software/cli/nixvim/base.nix
|
||||
./common/software/cli/nixvim/base.nix
|
||||
./common/software/cli/ssh.nix
|
||||
./common/software/cli/btop.nix
|
||||
./common/software/cli/starship.nix
|
||||
# ./common/software/cli/tmux.nix
|
||||
./common/software/cli/zellij.nix
|
||||
./common/software/cli/tmux.nix
|
||||
./common/software/cli/atuin.nix
|
||||
|
||||
# User configs
|
||||
|
|
|
@ -29,6 +29,8 @@ fi
|
|||
# If an old backup is still running, don't continue
|
||||
if [[ `ps aux | grep $BACKUP_NAME | grep -v grep` ]] ; then
|
||||
echo -e "$BACKUP_NAME rsync still running. Exiting...."
|
||||
echo "Output: "
|
||||
ps aux | grep $BACKUP_NAME | grep -v grep
|
||||
payload="{\"message\": \"$BACKUP_NAME stopped. $BACKUP_NAME is still running.\nDate: `date`\", \"priority\": 2,\"title\": \"japan-rpi4: $BACKUP_NAME Backup Stopped\"}"
|
||||
curl -X "POST" "https://gotify.sysctl.io/message" -H "accept: application/json" -H "Content-Type: application/json" -H "X-Gotify-Key: $GOTIFY_TOKEN" -d "$payload"
|
||||
exit
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ lib, ... }: {
|
||||
stylix.targets.tmux.enable = lib.mkForce false; # Custom theme in main config
|
||||
stylix.targets.zellij.enable = lib.mkForce false; # Custom theme in main config
|
||||
stylix.targets.fish.enable = lib.mkForce false; # Slow load times with tmux
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue