[Shell] Adds aliases for inhibitting sleep and allowing it again using tmux

This commit is contained in:
2026-07-06 16:07:01 -07:00
parent 4e02d233bb
commit 7fc12d8c08

View File

@@ -64,9 +64,26 @@
"http" = "echo 'Do you mean: xh'"; "http" = "echo 'Do you mean: xh'";
"du" = "echo 'Do you mean: dust or dua?'"; "du" = "echo 'Do you mean: dust or dua?'";
"ranger" = "echo 'Do you mean: yazi'"; "ranger" = "echo 'Do you mean: yazi'";
"stay-awake" = ''
tmux new-session -d -A -s keep-awake 'systemd-inhibit --who="DRew" --why="Manual keep awake" --what=sleep sleep infinity'
'';
"allow-sleep" = "tmux kill-session -t keep-awake";
}; };
programs.zsh = { programs = {
zoxide = {
# TODO: Learn all the capabilities of zoxide and use them.
enable = true;
enableZshIntegration = true;
};
starship = {
enable = true;
settings = {
add_newline = true;
};
};
zsh = {
enable = true; enable = true;
envExtra = '' envExtra = ''
PATH=$PATH:$HOME/.local/bin PATH=$PATH:$HOME/.local/bin
@@ -117,17 +134,5 @@
} }
]; ];
}; };
programs.zoxide = {
# TODO: Learn all the capabilities of zoxide and use them.
enable = true;
enableZshIntegration = true;
};
programs.starship = {
enable = true;
settings = {
add_newline = true;
};
}; };
} }