From e3934aea05d5a7fbd49a0535ba60b099ed8276a1 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Tue, 18 Jun 2024 21:35:17 +0200 Subject: [PATCH] added boot to windows from nix config to powermenu --- .config/rofi/powermenu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/rofi/powermenu.sh b/.config/rofi/powermenu.sh index 4b15c30..b726283 100755 --- a/.config/rofi/powermenu.sh +++ b/.config/rofi/powermenu.sh @@ -2,7 +2,7 @@ ROFI_CONFIG_DIR="$XDG_CONFIG_HOME/rofi/" -UPTIME="`uptime -p | sed -e 's/up //g'`" +UPTIME="$(uptime | awk -F'( |,|:)+' '{print $6,$7",",$8,"hours,",$9,"minutes."}')" SHUTDOWN="" RESTART="" @@ -37,8 +37,8 @@ case ${selection} in fi ;; $WINDOWS) - # TODO - # grub-set-default + boot-windows + systemctl reboot ;; esac