-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -ex | ||
|
||
cat /dev/null > /tmp/serial.log | ||
cat /dev/null > /tmp/serial.raw | ||
alacritty --class lappis-serial-raw -e fish -c 'tail -f /tmp/serial.raw' & | ||
alacritty --class lappis-serial-raw -e tail -f /tmp/serial.raw & | ||
alacritty --class lappis-serial-log -e tail -f /tmp/serial.log & | ||
sleep 1 | ||
|
||
# swaymsg '[app_id="lapis-serial-log"] move window to workspace 4' | ||
qemu-system-x86_64 \ | ||
-no-reboot \ | ||
-no-shutdown \ | ||
-d int \ | ||
-m size=4G \ | ||
-serial file:/tmp/serial.log \ | ||
-serial file:/tmp/serial.raw \ | ||
-drive media=disk,index=0,file=bin/zipfs.img,format=raw,if=ide \ | ||
-monitor stdio \ | ||
-cdrom bin/kernel.iso | ||
kitty --class lappis-qemu \ | ||
qemu-system-x86_64 \ | ||
-cpu qemu64,+smep,+smap \ | ||
-no-reboot \ | ||
-no-shutdown \ | ||
-d int \ | ||
-m size=4G \ | ||
-serial file:/tmp/serial.log \ | ||
-serial file:/tmp/serial.raw \ | ||
-drive media=disk,index=0,file=bin/zipfs.img,format=raw,if=ide \ | ||
-monitor stdio \ | ||
-cdrom bin/kernel.iso | ||
|
||
ps ax | grep alacritty | grep lappis-serial-raw | awk '{print $1}' | xargs kill | ||
ps ax | grep alacritty | grep lappis-serial-log | awk '{print $1}' | xargs kill | ||
ps ax | grep kitty | grep lappis-qemu | awk '{print $1}' | xargs kill |