2021-07-15 23:29:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
X=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1)
|
|
|
|
Y=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2)
|
2021-07-16 08:59:20 +02:00
|
|
|
KITTY=$(kitty -v|grep created)
|
|
|
|
if [ "${KITTY}" != "" ]; then
|
|
|
|
echo "Kitty installé"
|
|
|
|
if [ ${X} -ge 1920 ]; then
|
2021-07-16 19:42:49 +02:00
|
|
|
kitty --start-as fullscreen ./ia86 $1
|
2021-07-16 08:59:20 +02:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
fi
|
2021-07-15 23:29:31 +02:00
|
|
|
if [ ${X} -ge 1920 ]; then
|
|
|
|
SIZE=11
|
|
|
|
elif [ ${X} -ge 1680 ]; then
|
|
|
|
SIZE=10
|
|
|
|
elif [ ${X} -ge 1440 ]; then
|
|
|
|
SIZE=9
|
|
|
|
elif [ ${X} -ge 1368 ]; then
|
|
|
|
SIZE=8
|
|
|
|
elif [ ${X} -ge 1280 ]; then
|
|
|
|
SIZE=7
|
|
|
|
else
|
|
|
|
SIZE=6
|
|
|
|
fi
|
2021-07-16 19:42:49 +02:00
|
|
|
xterm -fullscreen -fa monaco -fs ${SIZE} -bg black -fg green -e "sleep 0.4;./ia86 $1"
|