Added profile script for start Sway session from tty
This commit is contained in:
0
profile/.profile.d/dotfiles.sh
Normal file → Executable file
0
profile/.profile.d/dotfiles.sh
Normal file → Executable file
0
profile/.profile.d/editor.sh
Normal file → Executable file
0
profile/.profile.d/editor.sh
Normal file → Executable file
0
profile/.profile.d/ghcup.sh
Normal file → Executable file
0
profile/.profile.d/ghcup.sh
Normal file → Executable file
0
profile/.profile.d/go.sh
Normal file → Executable file
0
profile/.profile.d/go.sh
Normal file → Executable file
0
profile/.profile.d/graalvm.sh
Normal file → Executable file
0
profile/.profile.d/graalvm.sh
Normal file → Executable file
0
profile/.profile.d/help.sh
Normal file → Executable file
0
profile/.profile.d/help.sh
Normal file → Executable file
0
profile/.profile.d/homebrew.sh
Normal file → Executable file
0
profile/.profile.d/homebrew.sh
Normal file → Executable file
0
profile/.profile.d/java.sh
Normal file → Executable file
0
profile/.profile.d/java.sh
Normal file → Executable file
0
profile/.profile.d/jmeter.sh
Normal file → Executable file
0
profile/.profile.d/jmeter.sh
Normal file → Executable file
0
profile/.profile.d/rust.sh
Normal file → Executable file
0
profile/.profile.d/rust.sh
Normal file → Executable file
3
profile/.profile.d/ssh-agent.sh
Normal file → Executable file
3
profile/.profile.d/ssh-agent.sh
Normal file → Executable 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.
|
# This script sets up ssh-agent and gpg-agent differently for WSL and Linux Mint.
|
||||||
# On WSL, it uses keychain to start agents.
|
# On WSL, it uses keychain to start agents.
|
||||||
# On Linux Mint (or other Linux), it assumes gnome-keyring manages agents automatically.
|
# On Linux Mint (or other Linux), it assumes gnome-keyring manages agents automatically.
|
||||||
|
|||||||
9
profile/.profile.d/sway-startup.sh
Executable file
9
profile/.profile.d/sway-startup.sh
Executable 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
0
profile/.profile.d/venv.sh
Normal file → Executable file
Reference in New Issue
Block a user