Compare commits

..

No commits in common. "414a3a1fdf3809205ade7841b207bfa8e30d254c" and "69454aba5244ff7445005ff2e756e40af411ba72" have entirely different histories.

11 changed files with 2 additions and 129 deletions

View file

@ -9,7 +9,6 @@ in
(import ./catppuccin.nix (import ./catppuccin.nix
{ {
inherit config lib pkgs; inherit config lib pkgs;
flavor = "mocha";
rosewater = "f2d5cf"; rosewater = "f2d5cf";
flamingo = "eebebe"; flamingo = "eebebe";
pink = "f4b8e4"; pink = "f4b8e4";

View file

@ -9,7 +9,6 @@ in
(import ./catppuccin.nix (import ./catppuccin.nix
{ {
inherit config lib pkgs; inherit config lib pkgs;
flavor = "mocha";
rosewater = "dc8a78"; rosewater = "dc8a78";
flamingo = "dd7878"; flamingo = "dd7878";
pink = "ea76cb"; pink = "ea76cb";

View file

@ -9,7 +9,6 @@ in
(import ./catppuccin.nix (import ./catppuccin.nix
{ {
inherit config lib pkgs; inherit config lib pkgs;
flavor = "mocha";
rosewater = "f4dbd6"; rosewater = "f4dbd6";
flamingo = "f0c6c6"; flamingo = "f0c6c6";
pink = "f5bde6"; pink = "f5bde6";

View file

@ -9,7 +9,6 @@ in
(import ./catppuccin.nix (import ./catppuccin.nix
{ {
inherit config lib pkgs; inherit config lib pkgs;
flavor = "mocha";
rosewater = "f5e0dc"; rosewater = "f5e0dc";
flamingo = "f2cdcd"; flamingo = "f2cdcd";
pink = "f5c2e7"; pink = "f5c2e7";

View file

@ -1,6 +1,4 @@
{ config { config
, pkgs
, flavor
, rosewater , rosewater
, flamingo , flamingo
, pink , pink
@ -129,12 +127,6 @@
color7 #${subtext1} color7 #${subtext1}
color15 #${subtext0} color15 #${subtext0}
''; '';
tmux.plugins = with pkgs.tmuxPlugins; [
{
plugin = catppuccin;
extraConfig = "set -g @catppuccin_flavour '${flavor}'";
}
];
zathura.extraConfig = '' zathura.extraConfig = ''
set window-title-basename "true" set window-title-basename "true"
set selection-clipboard "clipboard" set selection-clipboard "clipboard"

View file

@ -1,6 +1,5 @@
{ config { config
, lib , lib
, pkgs
, ... , ...
}: }:
@ -98,9 +97,6 @@ in
active_border_color #f8f8f2 active_border_color #f8f8f2
inactive_border_color #6272a4 inactive_border_color #6272a4
''; '';
tmux.plugins = with pkgs.tmuxPlugins; [
dracula
];
zathura.extraConfig = '' zathura.extraConfig = ''
set window-title-basename "true" set window-title-basename "true"
set selection-clipboard "clipboard" set selection-clipboard "clipboard"

View file

@ -62,8 +62,6 @@ in
fish.enable = true; fish.enable = true;
git.enable = true; git.enable = true;
gpg.enable = true; gpg.enable = true;
navi.enable = true;
tmux.enable = true;
}; };
}; };
@ -100,8 +98,8 @@ in
exa exa
gparted gparted
neofetch neofetch
reptyr
ripgrep ripgrep
tmux
up up
viu viu
wget wget
@ -145,6 +143,7 @@ in
]; ];
}; };
zoxide.enable = true; zoxide.enable = true;
navi.enable = true;
}; };
home = { home = {
username = "moritz"; username = "moritz";

View file

@ -18,7 +18,6 @@
./ledger ./ledger
./logseq.nix ./logseq.nix
./miracast.nix ./miracast.nix
./navi
./nvim ./nvim
./python.nix ./python.nix
./rofi ./rofi
@ -26,7 +25,6 @@
./ssh.nix ./ssh.nix
./sway.nix ./sway.nix
./thunar.nix ./thunar.nix
./tmux.nix
./zathura.nix ./zathura.nix
./zsh.nix ./zsh.nix
]; ];

View file

@ -1,6 +0,0 @@
% tmux, reptyr
# send background process to tmux
bg <process> && disown <process> && tmux new "$SHELL -c 'reptyr <process>'"
$ process: ps x -eo pid,tty,stat | awk '$2 ~ /pts/' | awk '$3 ~ /T/' | cut -d" " -f1 --- --preview "ps -p {} -o cmd"

View file

@ -1,20 +0,0 @@
{ config, lib, ... }:
with lib;
let
cfg = config.my.programs.navi;
in
{
options.my.programs.navi.enable = mkEnableOption "navi";
config = mkIf cfg.enable {
home-manager.users.moritz = {
programs.navi.enable = true;
xdg.dataFile."navi/cheats/personal" = {
enable = true;
recursive = true;
source = ./cheats;
};
};
};
}

View file

@ -1,82 +0,0 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.my.programs.tmux;
tmux-sessionizer = pkgs.writeShellApplication {
name = "ts";
runtimeInputs = with pkgs; [ tmux findutils coreutils procps fd ];
text = ''
#!/usr/bin/env bash
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(fd -gH '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf)
fi
if [[ -z $selected ]]; then
exit 0
fi
selected_name=$(basename "$selected" | tr . _)
if ! tmux has-session -t="$selected_name" 2> /dev/null; then
tmux new-session -ds "$selected_name" -c "$selected"
fi
if [[ -z ''${TMUX+x} ]]; then
tmux attach -t "$selected_name"
else
tmux switch-client -t "$selected_name"
fi
'';
};
in
{
options.my.programs.tmux = {
enable = mkEnableOption "tmux";
autoAttach = mkEnableOption "autoAttach";
};
config = mkIf cfg.enable {
my.shell.abbreviations.t = "tmux";
home-manager.users.moritz.home.packages = [ tmux-sessionizer ];
home-manager.users.moritz.programs = {
tmux = {
enable = true;
clock24 = true;
customPaneNavigationAndResize = true;
keyMode = "vi";
mouse = true;
newSession = true;
prefix = "C-Space";
sensibleOnTop = false;
plugins = with pkgs.tmuxPlugins; [
sensible
tmux-fzf
yank
];
};
fzf.tmux.enableShellIntegration = true;
fish.interactiveShellInit =
let
insideVariables = [ "$TMUX" "$INSIDE_EMACS" "$EMACS" "$VIM" "$VSCODE_RESOLVING_ENVIRONMENT" ];
insideVariableMissing = concatStringsSep " && " (map (x: "test -z ${x}") insideVariables);
in
mkIf cfg.autoAttach
''
if ! fish_is_root_user && test "$TERM_PROGRAM" != 'vscode' && ${insideVariableMissing}
if test -z $tmux_autostarted
set -x tmux_autostarted true
ts
end
end
'';
};
};
}