fix: some work related fixes

This commit is contained in:
Leon Schwarzäugl 2025-01-15 10:27:20 +01:00
parent bd3e18169f
commit bfe416b708
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
9 changed files with 40 additions and 3 deletions

View file

@ -24,5 +24,6 @@
project
fhs
swarsel-bootstrap
swarsel-displaypower
];
}

View file

@ -13,6 +13,7 @@
audacity
sox
stable.feishin
calibre
# printing
cups
@ -45,6 +46,7 @@
nix-diff
nix-visualize
nix-init
nix-inspect
manix
comma

View file

@ -100,6 +100,7 @@ in
"${modifier}+Shift+Down" = "move down 40px";
"${modifier}+Shift+Up" = "move up 40px";
"${modifier}+Ctrl+Shift+c" = "reload";
"${modifier}+Ctrl+Shift+r" = "exec swarsel-displaypower";
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
"${modifier}+r" = "mode resize";
"${modifier}+Return" = "exec kitty";

View file

@ -9,6 +9,7 @@
rclone
awscli2
libguestfs-with-appliance
stable.prometheus.cli
];
home.sessionVariables = {

View file

@ -9,7 +9,7 @@
Type = "simple";
ExecStart = pkgs.writeShellScript "battery-low-notification"
''
if (( 10 >= $(${lib.getExe pkgs.acpi} -b | head -n 1 | ${lib.getExe pkgs.ripgrep} -o "\d+%" | ${lib.getExe pkgs.ripgrep} -o "\d+")));
if (( 10 >= $(${lib.getExe pkgs.acpi} -b | head -n 1 | ${lib.getExe pkgs.ripgrep} -o "\d+%" | ${lib.getExe pkgs.ripgrep} -o "\d+") && $(${lib.getExe pkgs.acpi} -b | head -n 1 | ${lib.getExe pkgs.ripgrep} -o "\d+%" | ${lib.getExe pkgs.ripgrep} -o "\d+") > 0 ));
then ${lib.getExe pkgs.libnotify} --urgency=critical "low battery" "$(${lib.getExe pkgs.acpi} -b | head -n 1 | ${lib.getExe pkgs.ripgrep} -o "\d+%")";
fi;
'';