[Shell] Adds aliases for inhibitting sleep and allowing it again using tmux
This commit is contained in:
@@ -64,9 +64,26 @@
|
||||
"http" = "echo 'Do you mean: xh'";
|
||||
"du" = "echo 'Do you mean: dust or dua?'";
|
||||
"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;
|
||||
envExtra = ''
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user