mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
custom-performance: entire rewrite
Now kills caelestia, change monitor hz and launches lightweight alternative to calestia (waybar and swaync)
This commit is contained in:
@@ -2,8 +2,25 @@ _: {
|
||||
flake.homeModules.zsh-laptop = _: {
|
||||
programs.zsh = {
|
||||
shellAliases = {
|
||||
snrt = "git -C ~/nixos add -A && time sudo nixos-rebuild test --flake ~/nixos/#laptop && pkill shell || true && pkill caelestia-shell || true && caelestia-shell -n > /dev/null 2>&1 & disown";
|
||||
snrs = "git -C ~/nixos add -A && time sudo nixos-rebuild switch --flake ~/nixos/#laptop && pkill shell || true && pkill caelestia-shell || true && caelestia-shell -n > /dev/null 2>&1 & disown";
|
||||
snrt = ''
|
||||
git -C ~/nixos add -A &&
|
||||
time sudo nixos-rebuild test --flake ~/nixos/#laptop &&
|
||||
pkill shell || true &&
|
||||
if [ ! -f ~/.cache/hypr-battery-saver ]; then
|
||||
pkill caelestia-shell || true &&
|
||||
caelestia-shell -n > /dev/null 2>&1 & disown
|
||||
fi
|
||||
'';
|
||||
|
||||
snrs = ''
|
||||
git -C ~/nixos add -A &&
|
||||
time sudo nixos-rebuild switch --flake ~/nixos/#laptop &&
|
||||
pkill shell || true &&
|
||||
if [ ! -f ~/.cache/hypr-battery-saver ]; then
|
||||
pkill caelestia-shell || true &&
|
||||
caelestia-shell -n > /dev/null 2>&1 & disown
|
||||
fi
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user