1
0
Fork 0
forked from ahurac/dotfiles

Refactoring des scripts des lancements d'environnements

This commit is contained in:
Hippolyte Chauvin 2023-10-24 11:24:43 +02:00
parent a6de14df91
commit 868e0476f0
3 changed files with 27 additions and 12 deletions

View file

@ -3,12 +3,16 @@
# cd to home # cd to home
cd cd
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
exec dbus-launch --exit-with-session "$0" "$@"
fi
if [ -z "$SSH_AGENT_PID" ]; then
exec ssh-agent "$0" "$@"
fi
# XDG # XDG
export XDG_CONFIG_HOME="${HOME}/.config" export XDG_CONFIG_HOME="${HOME}/.config"
# Execution # Execution
exec ssh-agent \ exec /usr/bin/Hyprland "$@"
dbus-launch --exit-with-session \
/usr/bin/Hyprland \
"$@"

View file

@ -1,8 +1,15 @@
#!/bin/sh -xe #!/bin/sh -xe
# cd
cd cd
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
exec dbus-launch --exit-with-session "$0" "$@"
fi
if [ -z "$SSH_AGENT_PID" ]; then
exec ssh-agent "$0" "$@"
fi
# Environment # Environment
# XDG # XDG
export \ export \
@ -19,6 +26,4 @@ export \
MOZ_ENABLE_WAYLAND=1 MOZ_ENABLE_WAYLAND=1
# Execution # Execution
exec dbus-launch --exit-with-session \ exec /usr/bin/sway "$@"
ssh-agent /usr/bin/sway "$@"

View file

@ -1,10 +1,16 @@
#!/bin/sh #!/bin/sh -xe
cd
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
exec dbus-launch --exit-with-session ssh-agent "$0" "$@" exec dbus-launch --exit-with-session ssh-agent "$0" "$@"
fi fi
cd if [ -z "$SSH_AGENT_PID" ]; then
exec ssh-agent "$0" "$@"
fi
xfwm4 & xfwm4 &
artix-pipewire-launcher & artix-pipewire-launcher restart &
alacritty alacritty
wait wait