.bashrc: Add logic to automatically start sway
This commit is contained in:
parent
3348a8d4d6
commit
1ab7f02535
|
@ -8,6 +8,12 @@
|
|||
alias ls='ls --color=auto'
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
# Default config
|
||||
export MACHINE_START_SWAY=false # Whether to start Sway from bash
|
||||
|
||||
# Source machine-specific config
|
||||
[[ -f ~/.machine_config ]] && source ~/.machine_config
|
||||
|
||||
# Execute tmux in Alacritty
|
||||
if [[ "$TERM" == "alacritty" || "$TERM_PROGRAM" == "WezTerm" ]]; then
|
||||
exec tmux
|
||||
|
@ -113,3 +119,4 @@ export SSH_AUTH_SOCK=/run/user/1000/gnupg/S.gpg-agent.ssh
|
|||
# Desktop stuff (Sway)
|
||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
export GTK_THEME=Gruvbox-Material-Dark-HIDPI
|
||||
$MACHINE_START_SWAY && [[ -z "$DISPLAY" && $(tty) == /dev/tty1 ]] && exec sway
|
||||
|
|
Loading…
Reference in New Issue