Compare commits
14 commits
94bf38be75
...
42ba33d46e
Author | SHA1 | Date | |
---|---|---|---|
|
42ba33d46e | ||
|
2fbf55c7ed | ||
|
0fbbfdc422 | ||
|
056010442f | ||
|
90fb7b3f47 | ||
|
e702086b2b | ||
|
1eaa310a0f | ||
|
e2ca269f20 | ||
|
3b93e7008f | ||
|
77b1eceb10 | ||
|
0cd54f5a45 | ||
|
9ee7e9a71f | ||
|
12ecd8563f | ||
|
7a28b4fd3b |
12 changed files with 39 additions and 24 deletions
|
@ -59,7 +59,8 @@ public_start() {
|
||||||
-localhost \
|
-localhost \
|
||||||
-alwaysshared \
|
-alwaysshared \
|
||||||
-securitytypes none \
|
-securitytypes none \
|
||||||
-nocursor
|
-nocursor \
|
||||||
|
-geometry 1600x900
|
||||||
else
|
else
|
||||||
error "The VNC server is already running!" 4
|
error "The VNC server is already running!" 4
|
||||||
fi
|
fi
|
||||||
|
@ -98,7 +99,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Main switch
|
# Main switch
|
||||||
if echo "$verbs" | grep -q "$arg"; then
|
if echo "$verbs" | tr ' ' '\n' | grep -q "$arg"; then
|
||||||
"public_${arg}"
|
"public_${arg}"
|
||||||
else
|
else
|
||||||
error_help
|
error_help
|
||||||
|
|
11
bin/mcserv
11
bin/mcserv
|
@ -23,7 +23,7 @@ public_usage() {
|
||||||
name="$(basename "$0")"
|
name="$(basename "$0")"
|
||||||
cat << EOF
|
cat << EOF
|
||||||
${name}: utilisation
|
${name}: utilisation
|
||||||
${name} start|status|stop|watch NOM_SERVEUR
|
${name} start|status|stop|watch|restart NOM_SERVEUR
|
||||||
${name} list|active|usage
|
${name} list|active|usage
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
@ -77,10 +77,17 @@ public_list() {
|
||||||
ls --color=auto
|
ls --color=auto
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public_restart() {
|
||||||
|
set -e
|
||||||
|
stop "$@"
|
||||||
|
start "$@"
|
||||||
|
set +e
|
||||||
|
}
|
||||||
|
|
||||||
verb="$1"
|
verb="$1"
|
||||||
shift
|
shift
|
||||||
case "$verb" in
|
case "$verb" in
|
||||||
start|status|stop|watch|active|list|usage)
|
start|status|stop|watch|active|list|usage|restart)
|
||||||
"public_${verb}" "$@"
|
"public_${verb}" "$@"
|
||||||
;;
|
;;
|
||||||
"")
|
"")
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
waylectron
|
|
|
@ -1,2 +1 @@
|
||||||
--enable-features=WaylandWindowDecorations
|
|
||||||
--ozone-platform-hint=auto
|
--ozone-platform-hint=auto
|
||||||
|
|
1
config/electron25-flags.conf
Symbolic link
1
config/electron25-flags.conf
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
electron-flags.conf
|
|
@ -8,5 +8,5 @@ italic_font auto
|
||||||
bold_italic_font auto
|
bold_italic_font auto
|
||||||
|
|
||||||
# Opacity
|
# Opacity
|
||||||
background_opacity 0.8
|
background_opacity 0.9
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ addpath() {
|
||||||
}
|
}
|
||||||
|
|
||||||
addpath ~/.local/bin
|
addpath ~/.local/bin
|
||||||
addpath ~/.local/share/minecraft/servers/bin
|
addpath ~/.local/share/qemu/bin
|
||||||
|
|
||||||
# Fastfetch
|
# Fastfetch
|
||||||
fastfetch
|
fastfetch
|
||||||
|
|
12
share/qemu/bin/linux
Executable file
12
share/qemu/bin/linux
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh -ex
|
||||||
|
name="$(basename "$0")"
|
||||||
|
cd "$(dirname "$(readlink -f "$0")")/.."
|
||||||
|
exec screen -S "QEMU : ${name}" -d -m qemu-system-x86_64 \
|
||||||
|
-monitor stdio -enable-kvm -vnc :1 \
|
||||||
|
-cpu host -smp "$(nproc)" \
|
||||||
|
-m 4G \
|
||||||
|
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
||||||
|
-net nic -net "user,hostname=${name}" \
|
||||||
|
-name "$name" \
|
||||||
|
"$@"
|
||||||
|
|
|
@ -1,17 +1,16 @@
|
||||||
#!/bin/sh -ex
|
#!/bin/sh -ex
|
||||||
realpath="$(readlink -f "$0")"
|
name="$(basename "$0")"
|
||||||
realname="$(basename "$realpath")"
|
cd "$(dirname "$(readlink -f "$0")")/.."
|
||||||
cd "$(dirname "$realpath")/.."
|
exec screen -S "QEMU : ${name}" -d -m qemu-system-x86_64 \
|
||||||
exec screen -S "QEMU : ${realname}" -d -m qemu-system-x86_64 \
|
|
||||||
-monitor stdio -enable-kvm -display gtk,zoom-to-fit=on \
|
-monitor stdio -enable-kvm -display gtk,zoom-to-fit=on \
|
||||||
-bios /usr/share/edk2/x64/OVMF_CODE.fd \
|
-bios /usr/share/edk2/x64/OVMF_CODE.fd \
|
||||||
-usb -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=1452 \
|
-usb -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=1452 \
|
||||||
-cpu host -smp "$(nproc)" \
|
-cpu host -smp "$(nproc)" \
|
||||||
-m 4G \
|
-m 4G \
|
||||||
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
||||||
-net nic -net "user,hostname=${realname}" \
|
-net nic -net "user,hostname=${name}" \
|
||||||
-audiodev pa,id=snd0 -device ich9-intel-hda -device hda-output,audiodev=snd0 \
|
-audiodev pa,id=snd0 -device ich9-intel-hda -device hda-output,audiodev=snd0 \
|
||||||
-usbdevice tablet \
|
-usbdevice tablet \
|
||||||
-name "$realname" \
|
-name "$name" \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if cd "${1:-${HOME}/Git}"; then
|
if cd ~/git; then
|
||||||
for repo in *; do
|
for repo in *; do
|
||||||
cd "$repo" || continue
|
cd "$repo" || continue
|
||||||
printf '\n%s\n' "$repo"
|
printf '\n%s\n' "$repo"
|
||||||
git pull
|
git pull
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
elif [ -z "$1" ]; then
|
|
||||||
exec "$0" ~/git
|
|
||||||
else
|
else
|
||||||
>&2 echo "Can't find your git folder!"
|
>&2 echo "Can't find your git folder!"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
nvim +PackerUpdate +qall
|
|
||||||
|
|
10
vnc/xstartup
10
vnc/xstartup
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd
|
cd
|
||||||
exec ssh-agent \
|
eval "$(ssh-agent)"
|
||||||
dbus-launch --exit-with-session \
|
dbus-launch --exit-with-session xfwm4 &
|
||||||
xfwm4 &
|
artix-pipewire-loader &
|
||||||
artix-pipewire-loader
|
st
|
||||||
|
wait
|
||||||
|
ssh-agent -k
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue