Compare commits

...

3 commits

Author SHA1 Message Date
Dmitry Voronin 1aac1a859b
Networkwidget: Fix btlow. 2024-12-19 05:20:12 +03:00
Dmitry Voronin 93a6e11be9
Android: Enable pipes. 2024-12-19 05:20:11 +03:00
Dmitry Voronin 6390adbfa8
DevShell: Add cloc. 2024-12-19 05:20:09 +03:00
3 changed files with 4 additions and 3 deletions

View file

@ -154,6 +154,7 @@
{
${system}.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
cloc
nixd
nixfmt-rfc-style
nodePackages.prettier

View file

@ -27,7 +27,7 @@ in
config = lib.mkIf cfg.enable {
environment.packages = package.core;
nix.extraOptions = "experimental-features = nix-command flakes";
nix.extraOptions = "experimental-features = nix-command flakes pipe-operators";
system.stateVersion = const.droidStateVersion;
time.timeZone = const.timeZone;
terminal = { inherit (android) font colors; };

View file

@ -19,7 +19,7 @@ function networkwidget() {
if [[ ${bat} != "" ]]; then
btinfo+=" ${bat}%"
[[ ${bat} -lt ${_bt_lowest} ]] && _bt_lowest=bat
[[ ${bat} -lt ${_bt_lowest} ]] && _bt_lowest=${bat}
fi
_bts+=("${btinfo}")
@ -28,7 +28,7 @@ function networkwidget() {
if [[ ${_bts} != "" ]]; then
icon="󱛃"
if [[ ${_bt_lowest} != "" ]] && [[ ${_bt_lowest} -lt 21 ]]; then
if [[ ${_bt_lowest} -lt 21 ]]; then
class="btlow"
fi
fi