Added profile script for start Sway session from tty

This commit is contained in:
Fabio Scotto di Santolo
2025-07-15 22:01:47 +02:00
parent ec06f7538b
commit c9345f9140
13 changed files with 11 additions and 1 deletions

0
profile/.profile.d/dotfiles.sh Normal file → Executable file
View File

0
profile/.profile.d/editor.sh Normal file → Executable file
View File

0
profile/.profile.d/ghcup.sh Normal file → Executable file
View File

0
profile/.profile.d/go.sh Normal file → Executable file
View File

0
profile/.profile.d/graalvm.sh Normal file → Executable file
View File

0
profile/.profile.d/help.sh Normal file → Executable file
View File

0
profile/.profile.d/homebrew.sh Normal file → Executable file
View File

0
profile/.profile.d/java.sh Normal file → Executable file
View File

0
profile/.profile.d/jmeter.sh Normal file → Executable file
View File

0
profile/.profile.d/rust.sh Normal file → Executable file
View File

3
profile/.profile.d/ssh-agent.sh Normal file → Executable file
View File

@@ -1,4 +1,5 @@
#!/bin/sh
#!/usr/bin/env zsh
# This script sets up ssh-agent and gpg-agent differently for WSL and Linux Mint.
# On WSL, it uses keychain to start agents.
# On Linux Mint (or other Linux), it assumes gnome-keyring manages agents automatically.

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
if [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then
exec sway
else
exec dbus-launch sway
fi
fi

0
profile/.profile.d/venv.sh Normal file → Executable file
View File