pimp tmux

This commit is contained in:
2025-09-29 16:51:13 +02:00
parent ca2cb82fe0
commit 026638f41f
2 changed files with 5 additions and 1 deletions

View File

@@ -553,7 +553,7 @@ in
description = "batter low notif";
script = ''
battery_level=$(${pkgs.acpi}/bin/acpi -b | ${pkgs.gnugrep}/bin/grep -P -o '[0-9]+(?=%)')
if [ "$battery_level" -le 15 ] && [ "$(${pkgs.acpi}/bin/acpi -b | ${pkgs.gnugrep}/bin/grep -c 'Discharging')" -eq 1 ]; then
if [ "$battery_level" -le 20 ] && [ "$(${pkgs.acpi}/bin/acpi -b | ${pkgs.gnugrep}/bin/grep -c 'Discharging')" -eq 1 ]; then
${pkgs.libnotify}/bin/notify-send -u critical "battery low" "battery level: $battery_level%"
fi
'';

View File

@@ -1210,6 +1210,10 @@ in
}
{
plugin = tmuxPlugins.dracula;
extraConfig = ''
set -g @dracula-show-powerline true
set -g @dracula-plugins "ssh-session"
'';
}
# {
# plugin = tmuxPlugins.harpoon;