Added autostart sway on login

This commit is contained in:
Tibo De Peuter 2022-04-27 11:40:17 +02:00
parent 6e411ae683
commit c33214778a
2 changed files with 15 additions and 21 deletions

9
config/.zprofile Normal file
View file

@ -0,0 +1,9 @@
#
# ~/.zprofile
#
# Autostart sway on login
if [[ -z ${DISPLAY} && ${TTY} = /dev/tty1 ]] ; then
exec sway
fi

View file

@ -10,17 +10,15 @@ export ZSH="$HOME/.oh-my-zsh"
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="mrfortem" ZSH_THEME="mrfortem"
# Uncomment the following line to use case-sensitive completion. # Case-sensitive completion.
# CASE_SENSITIVE="true" CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. # Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable. # Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true" # HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior # Auto-update behavior
# zstyle ':omz:update' mode disabled # disable automatic updates zstyle ':omz:update' mode reminder # just remind me to update when it's time
# zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
# Uncomment the following line to change how often to auto-update (in days). # Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13 # zstyle ':omz:update' frequency 13
@ -28,12 +26,6 @@ ZSH_THEME="mrfortem"
# Uncomment the following line if pasting URLs and other text is messed up. # Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true" # DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction. # Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true" # ENABLE_CORRECTION="true"
@ -48,13 +40,8 @@ ZSH_THEME="mrfortem"
# much, much faster. # much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true" # DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time # History timestamp format
# stamp shown in the history command output. # HIST_STAMPS="dd/mm/yyyy"
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom? # Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder # ZSH_CUSTOM=/path/to/new-custom-folder
@ -91,8 +78,6 @@ source $ZSH/oh-my-zsh.sh
# For a full list of active aliases, run `alias`. # For a full list of active aliases, run `alias`.
# #
# Example aliases # Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias cp="cp -i" # confirm before overwriting something alias cp="cp -i" # confirm before overwriting something
alias df='df -h' # human-readable sizes alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in MB alias free='free -m' # show sizes in MB