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 \
|
||||
-alwaysshared \
|
||||
-securitytypes none \
|
||||
-nocursor
|
||||
-nocursor \
|
||||
-geometry 1600x900
|
||||
else
|
||||
error "The VNC server is already running!" 4
|
||||
fi
|
||||
|
@ -98,7 +99,7 @@ else
|
|||
fi
|
||||
|
||||
# Main switch
|
||||
if echo "$verbs" | grep -q "$arg"; then
|
||||
if echo "$verbs" | tr ' ' '\n' | grep -q "$arg"; then
|
||||
"public_${arg}"
|
||||
else
|
||||
error_help
|
||||
|
|
11
bin/mcserv
11
bin/mcserv
|
@ -23,7 +23,7 @@ public_usage() {
|
|||
name="$(basename "$0")"
|
||||
cat << EOF
|
||||
${name}: utilisation
|
||||
${name} start|status|stop|watch NOM_SERVEUR
|
||||
${name} start|status|stop|watch|restart NOM_SERVEUR
|
||||
${name} list|active|usage
|
||||
EOF
|
||||
}
|
||||
|
@ -77,10 +77,17 @@ public_list() {
|
|||
ls --color=auto
|
||||
}
|
||||
|
||||
public_restart() {
|
||||
set -e
|
||||
stop "$@"
|
||||
start "$@"
|
||||
set +e
|
||||
}
|
||||
|
||||
verb="$1"
|
||||
shift
|
||||
case "$verb" in
|
||||
start|status|stop|watch|active|list|usage)
|
||||
start|status|stop|watch|active|list|usage|restart)
|
||||
"public_${verb}" "$@"
|
||||
;;
|
||||
"")
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
waylectron
|
|
@ -1,2 +1 @@
|
|||
--enable-features=WaylandWindowDecorations
|
||||
--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
|
||||
|
||||
# Opacity
|
||||
background_opacity 0.8
|
||||
background_opacity 0.9
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ addpath() {
|
|||
}
|
||||
|
||||
addpath ~/.local/bin
|
||||
addpath ~/.local/share/minecraft/servers/bin
|
||||
addpath ~/.local/share/qemu/bin
|
||||
|
||||
# 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
|
||||
realpath="$(readlink -f "$0")"
|
||||
realname="$(basename "$realpath")"
|
||||
cd "$(dirname "$realpath")/.."
|
||||
exec screen -S "QEMU : ${realname}" -d -m qemu-system-x86_64 \
|
||||
name="$(basename "$0")"
|
||||
cd "$(dirname "$(readlink -f "$0")")/.."
|
||||
exec screen -S "QEMU : ${name}" -d -m qemu-system-x86_64 \
|
||||
-monitor stdio -enable-kvm -display gtk,zoom-to-fit=on \
|
||||
-bios /usr/share/edk2/x64/OVMF_CODE.fd \
|
||||
-usb -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=1452 \
|
||||
-cpu host -smp "$(nproc)" \
|
||||
-m 4G \
|
||||
-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 \
|
||||
-usbdevice tablet \
|
||||
-name "$realname" \
|
||||
-name "$name" \
|
||||
"$@"
|
||||
|
|
@ -1,13 +1,11 @@
|
|||
#!/bin/sh
|
||||
if cd "${1:-${HOME}/Git}"; then
|
||||
if cd ~/git; then
|
||||
for repo in *; do
|
||||
cd "$repo" || continue
|
||||
printf '\n%s\n' "$repo"
|
||||
git pull
|
||||
cd ..
|
||||
done
|
||||
elif [ -z "$1" ]; then
|
||||
exec "$0" ~/git
|
||||
else
|
||||
>&2 echo "Can't find your git folder!"
|
||||
fi
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
nvim +PackerUpdate +qall
|
||||
|
10
vnc/xstartup
10
vnc/xstartup
|
@ -1,7 +1,9 @@
|
|||
#!/bin/sh
|
||||
cd
|
||||
exec ssh-agent \
|
||||
dbus-launch --exit-with-session \
|
||||
xfwm4 &
|
||||
artix-pipewire-loader
|
||||
eval "$(ssh-agent)"
|
||||
dbus-launch --exit-with-session xfwm4 &
|
||||
artix-pipewire-loader &
|
||||
st
|
||||
wait
|
||||
ssh-agent -k
|
||||
|
||||
|
|
Loading…
Reference in a new issue