Compare commits
2 Commits
0b87cad339
...
2c2c463b81
Author | SHA1 | Date | |
---|---|---|---|
2c2c463b81 | |||
86c45b6bfd |
@ -1,11 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
NUMBER="-1"
|
NUMBER="-1"
|
||||||
|
|
||||||
|
if whereis sudo; then
|
||||||
|
sudo=$(which sudo)
|
||||||
|
elif whereis doas; then
|
||||||
|
sudo=$(which doas)
|
||||||
|
else
|
||||||
|
echo "Do you have installed sudo or doas on your system??"
|
||||||
|
fi
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
clear
|
clear
|
||||||
|
|
||||||
LOGS=( $(sudo find /var/tmp/portage/ -mindepth 1 -maxdepth 5 -name "build.log") $(sudo find /var/tmpnotmpfs/portage/ -mindepth 1 -maxdepth 5 -name "build.log") )
|
LOGS=( $(${sudo} find /var/tmp/portage/ -mindepth 1 -maxdepth 5 -name "build.log") $(${sudo} find /var/tmpnotmpfs/portage/ -mindepth 1 -maxdepth 5 -name "build.log") )
|
||||||
LEN=${#LOGS[@]}
|
LEN=${#LOGS[@]}
|
||||||
|
|
||||||
for (( i=0; i<$LEN; i++ ));
|
for (( i=0; i<$LEN; i++ ));
|
||||||
@ -20,4 +28,4 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo -e "\n\e[93m File: ${LOGS[$NUMBER-1]} \e[0m\n"
|
echo -e "\n\e[93m File: ${LOGS[$NUMBER-1]} \e[0m\n"
|
||||||
sudo tail -f ${LOGS[$NUMBER-1]}
|
${sudo} tail -f "${LOGS[$NUMBER-1]}"
|
||||||
|
@ -6,7 +6,7 @@ export QT_IM_MODULE=ibus
|
|||||||
KERNEL=$(uname -sr)
|
KERNEL=$(uname -sr)
|
||||||
[[ $KERNEL =~ "icrosoft" ]] && "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$@"
|
[[ $KERNEL =~ "icrosoft" ]] && "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$@"
|
||||||
[[ $KERNEL =~ "gentoo" ]] && GDK_DPI_SCALE="1.2" firefox "$@"
|
[[ $KERNEL =~ "gentoo" ]] && GDK_DPI_SCALE="1.2" firefox "$@"
|
||||||
[[ $KERNEL =~ "Darwin" ]] && open -a Opera -n "$2"
|
[[ $KERNEL =~ "Darwin" ]] && open -a firefox -u "$2"
|
||||||
#[[ $KERNEL =~ "gentoo" ]] && __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 GDK_DPI_SCALE="1.2" firefox "$@"
|
#[[ $KERNEL =~ "gentoo" ]] && __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 GDK_DPI_SCALE="1.2" firefox "$@"
|
||||||
|
|
||||||
# Firefox
|
# Firefox
|
||||||
|
Loading…
Reference in New Issue
Block a user