From 891b0984581ec1c91af7431ca604a5468e62b8cb Mon Sep 17 00:00:00 2001 From: Gil Portenseigne Date: Wed, 8 Nov 2023 09:16:15 +0100 Subject: [PATCH] Ajout redemmarrage windows --- .config/bash/gil_specific.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.config/bash/gil_specific.sh b/.config/bash/gil_specific.sh index 8b915d3..3430a87 100644 --- a/.config/bash/gil_specific.sh +++ b/.config/bash/gil_specific.sh @@ -15,3 +15,15 @@ alias tn="ssh -L localhost:5488:emb-ofbiz-nereide-ofbiz2-rds.ckerltpo0vvy.eu-wes # ofbiz specific alias resetTestDb="dropdb ofbiz && createdb ofbiz && ./gradlew ofbiz -l readers=seed,seed-initial -l delegator=test" alias testRfid="./gradlew ofbiz --test component=rfid --test delegator=test" +alias reducePdf="gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen \ +-dNOPAUSE -dBATCH -dColorImageResolution=150 \ +-sOutputFile=output.pdf" + +# Reboot directly to Windows +# Inspired by http://askubuntu.com/questions/18170/how-to-reboot-into-windows-from-ubuntu +reboot_to_windows () +{ + windows_title=$(sudo grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2) + sudo grub-reboot "$windows_title" && sudo reboot +} +alias windows='reboot_to_windows'