mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
fix: some work related fixes
This commit is contained in:
parent
bd3e18169f
commit
bfe416b708
9 changed files with 40 additions and 3 deletions
|
|
@ -24,5 +24,6 @@
|
|||
project
|
||||
fhs
|
||||
swarsel-bootstrap
|
||||
swarsel-displaypower
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
rclone
|
||||
awscli2
|
||||
libguestfs-with-appliance
|
||||
stable.prometheus.cli
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue