diff --git a/modules/hardware/misc/battery-power.nix b/modules/hardware/misc/battery-power.nix index a8dbc96..12043dd 100644 --- a/modules/hardware/misc/battery-power.nix +++ b/modules/hardware/misc/battery-power.nix @@ -17,7 +17,7 @@ BAT_PCT=`${pkgs.acpi}/bin/acpi -b | ${pkgs.gnugrep}/bin/grep -P -o '[0-9]+(?=%)'` BAT_STA=`${pkgs.acpi}/bin/acpi -b | ${pkgs.gnugrep}/bin/grep -P -o '\w+(?=,)'` echo "`date` battery status:$BAT_STA percentage:$BAT_PCT" - test $BAT_PCT -le 30 && test $BAT_PCT -gt 15 && test $BAT_STA = "Discharging" && DISPLAY=:0.0 ${pkgs.libnotify}/bin/notify-send -c device -u normal "Low Battery" "\$\{BAT_PCT}% remaining." + test $BAT_PCT -le 30 && test $BAT_PCT -gt 15 && test $BAT_STA = "Discharging" && DISPLAY=:0.0 ${pkgs.libnotify}/bin/notify-send -c device -u normal "Low Battery" "Battery remaining: $BAT_PCT%." test $BAT_PCT -le 15 && test $BAT_STA = "Discharging" && DISPLAY=:0.0 ${pkgs.libnotify}/bin/notify-send -c device -u critical "Low Battery" "Shutdown at 10%." ''} > /tmp/cron.batt.log 2>&1" ]; diff --git a/modules/hardware/misc/cpu-freq.nix b/modules/hardware/misc/cpu-freq.nix index 2b6476a..ad87022 100644 --- a/modules/hardware/misc/cpu-freq.nix +++ b/modules/hardware/misc/cpu-freq.nix @@ -51,7 +51,7 @@ enable = true; # wait for fix: https://github.com/AdnanHodzic/auto-cpufreq/issues/906 settings = { charger = { - governor = "performance"; + governor = "powersave"; # "performance"; energy_performance_preference = "performance"; turbo = "always"; platform_profile = "performance"; diff --git a/modules/home/core/cli.nix b/modules/home/core/cli.nix index 4d5cd63..b3a6372 100644 --- a/modules/home/core/cli.nix +++ b/modules/home/core/cli.nix @@ -51,6 +51,7 @@ vim.api.nvim_create_autocmd("VimEnter", { callback = function() -- vim.cmd("NvimTreeOpen") + vim.cmd("set nu") vim.cmd.wincmd 'p' end, }) diff --git a/modules/home/default.nix b/modules/home/default.nix index 8fa2337..590e901 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -1,5 +1,6 @@ { username, ... }: { imports = [ + ./rice/theme.nix ./core/shell.nix ./core/cli.nix ]; diff --git a/modules/home/desktop.nix b/modules/home/desktop.nix index 3fbd229..cafb780 100644 --- a/modules/home/desktop.nix +++ b/modules/home/desktop.nix @@ -6,7 +6,6 @@ ./rice/logout.nix ./rice/notifs.nix ./rice/cursor.nix - ./rice/theme.nix ./rice/menu.nix ./rice/idle.nix ./rice/bar.nix