forked from ahurac/dotfiles
Refactoring des scripts des lancements d'environnements
This commit is contained in:
parent
a6de14df91
commit
868e0476f0
3 changed files with 27 additions and 12 deletions
14
bin/Hyprland
14
bin/Hyprland
|
@ -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 \
|
|
||||||
"$@"
|
|
||||||
|
|
||||||
|
|
13
bin/sway
13
bin/sway
|
@ -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 "$@"
|
|
||||||
|
|
||||||
|
|
12
vnc/xstartup
12
vnc/xstartup
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue