mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-11 18:18: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:
@@ -0,0 +1,9 @@
|
|||||||
|
# Ignore build outputs from performing a nix-build or `nix build` command
|
||||||
|
result
|
||||||
|
result-*
|
||||||
|
|
||||||
|
# Ignore automatically generated direnv output
|
||||||
|
.direnv
|
||||||
|
|
||||||
|
# Ignore NixOS interactive test driver history
|
||||||
|
**/.nixos-test-history
|
||||||
@@ -198,8 +198,8 @@
|
|||||||
"$mod_SHIFT, S, exec, caelestia shell picker open"
|
"$mod_SHIFT, S, exec, caelestia shell picker open"
|
||||||
# framework 16 rgb macropad
|
# framework 16 rgb macropad
|
||||||
"Ctrl+$mod, 6, exec, custom-killall" # pos 1 1 killall apps except focused one
|
"Ctrl+$mod, 6, exec, custom-killall" # pos 1 1 killall apps except focused one
|
||||||
#"Ctrl+Alt, 7, exec, custom-performance" # pos 2 1 start performance mode
|
"Ctrl+Alt, 7, exec, custom-performance" # pos 2 1 start performance mode
|
||||||
"Ctrl+Alt, 7, exec, caelestia shell gameMode toggle"
|
#"Ctrl+Alt, 7, exec, caelestia shell gameMode toggle"
|
||||||
# reloads the autostart programs # pos 3 1
|
# reloads the autostart programs # pos 3 1
|
||||||
# we passed to caelestia-shell and stoped using that
|
# we passed to caelestia-shell and stoped using that
|
||||||
/*
|
/*
|
||||||
@@ -211,7 +211,9 @@
|
|||||||
#"Ctrl+Alt, 1, exec, swaync-client -t" # pos 4 1 notification center
|
#"Ctrl+Alt, 1, exec, swaync-client -t" # pos 4 1 notification center
|
||||||
"Ctrl+Alt, 1, exec, qs ipc call notifications toggle"
|
"Ctrl+Alt, 1, exec, qs ipc call notifications toggle"
|
||||||
*/
|
*/
|
||||||
|
# pos 4 1 notification center.
|
||||||
"Ctrl+Alt, 1, exec, caelestia shell drawers toggle sidebar"
|
"Ctrl+Alt, 1, exec, caelestia shell drawers toggle sidebar"
|
||||||
|
"Ctrl+Alt, 1, exec, [[ -f ~/.cache/hypr-battery-saver ]] || swaync-client -t"
|
||||||
"Ctrl+$mod, 4, exec, caelestia shell notifs toggleDnd"
|
"Ctrl+$mod, 4, exec, caelestia shell notifs toggleDnd"
|
||||||
"Ctrl+$mod, 3, exec, pavucontrol" # pos 1 2 audiocontrol
|
"Ctrl+$mod, 3, exec, pavucontrol" # pos 1 2 audiocontrol
|
||||||
"Ctrl+Shift+Alt, 0, exec, kitty --hold --class \"custom-changeAudioOutput\" --name \"Select audio output\" zsh -c \"custom-changeAudioOutput\"" # pos 2 2 change audio output fzf
|
"Ctrl+Shift+Alt, 0, exec, kitty --hold --class \"custom-changeAudioOutput\" --name \"Select audio output\" zsh -c \"custom-changeAudioOutput\"" # pos 2 2 change audio output fzf
|
||||||
|
|||||||
@@ -1,4 +1,32 @@
|
|||||||
_: {
|
_: {
|
||||||
|
flake.homeModules.waybar-minimal = _: {
|
||||||
|
programs.waybar = {
|
||||||
|
enable = true;
|
||||||
|
settings = [
|
||||||
|
{
|
||||||
|
layer = "top";
|
||||||
|
modules-left = [];
|
||||||
|
modules-center = [];
|
||||||
|
modules-right = [
|
||||||
|
"battery"
|
||||||
|
"clock"
|
||||||
|
];
|
||||||
|
|
||||||
|
battery = {
|
||||||
|
format = "{capacity}% {icon}";
|
||||||
|
states = {
|
||||||
|
warning = 30;
|
||||||
|
critical = 15;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
clock = {
|
||||||
|
format = "{:%H:%M}";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
flake.homeModules.waybar = _: {
|
flake.homeModules.waybar = _: {
|
||||||
# replaced by caelestia
|
# replaced by caelestia
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
|
|||||||
@@ -2,8 +2,25 @@ _: {
|
|||||||
flake.homeModules.zsh-laptop = _: {
|
flake.homeModules.zsh-laptop = _: {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
shellAliases = {
|
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";
|
snrt = ''
|
||||||
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";
|
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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
PLATFORM_PROFILE_ON_BAT = "powersave";
|
PLATFORM_PROFILE_ON_BAT = "powersave";
|
||||||
STOP_CHARGE_THRESH_BAT1 = 80;
|
STOP_CHARGE_THRESH_BAT1 = 80;
|
||||||
};
|
};
|
||||||
|
<<<<<<< HEAD
|
||||||
};*/
|
};*/
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
self.packages.${pkgs.system}.custom-performance
|
self.packages.${pkgs.system}.custom-performance
|
||||||
|
|||||||
@@ -75,15 +75,17 @@
|
|||||||
rofi
|
rofi
|
||||||
sbb-tui
|
sbb-tui
|
||||||
ssh
|
ssh
|
||||||
|
swaync # used in performance mode
|
||||||
thunderbird
|
thunderbird
|
||||||
tomasr
|
tomasr
|
||||||
vivify
|
vivify
|
||||||
|
waybar-minimal # used in performance mode
|
||||||
zoxide
|
zoxide
|
||||||
zsh
|
zsh
|
||||||
zsh-desktop
|
zsh-desktop
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
flake.nixosModules.desktop = _: {
|
flake.nixosModules.desktop = {pkgs, ...}: {
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
@@ -95,6 +97,9 @@
|
|||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
|
environment.systemPackages = [
|
||||||
|
self.packages.${pkgs.system}.custom-performance
|
||||||
|
];
|
||||||
};
|
};
|
||||||
flake.nixosModules.home-manager-desktop = {pkgs, ...}: {
|
flake.nixosModules.home-manager-desktop = {pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
@@ -76,9 +76,11 @@
|
|||||||
rofi
|
rofi
|
||||||
sbb-tui
|
sbb-tui
|
||||||
ssh
|
ssh
|
||||||
|
swaync # used in performance mode
|
||||||
thunderbird
|
thunderbird
|
||||||
tomasr
|
tomasr
|
||||||
vivify
|
vivify
|
||||||
|
waybar-minimal # used in performance mode
|
||||||
zoxide
|
zoxide
|
||||||
zsh
|
zsh
|
||||||
zsh-laptop
|
zsh-laptop
|
||||||
|
|||||||
Reference in New Issue
Block a user