dotfiles/config/.scripts/n64.sh

13 lines
475 B
Bash
Raw Permalink Normal View History

2024-09-06 00:14:30 +01:00
#!/bin/sh
2024-10-07 18:02:29 +01:00
# MON=$(xrandr | grep ' connected' | cut -d' ' -f1 | dmenu -i)
GAMES=$(find /home/mikec/Documents/Games/ROMS/N64 -iname "*.zip" | dmenu -i -l 10)
[ -z "$GAMES" ] && exit
# GAME=$(mktemp)
# RES=$(xrandr | grep "$MON" | sed -E 's/.*connected (primary )?([0-9]*x[0-9]*).*/\2/')
# echo "$RES"
# rm -r "$GAME"
# unzip "$GAMES" -d "$GAME"
# mupen64plus --resolution "$RES" --windowed --gfx mupen64plus-video-glide64mk2 "$GAME"/*
# rm -r "$GAME"
RMG --fullscreen "$GAMES"