Zsh: Improvements
This commit is contained in:
parent
e51a4bdc22
commit
102f3521f1
|
@ -1,11 +1,13 @@
|
||||||
if [[ $(tty) == /dev/tty1 ]] && [[ $(lsb_release -si) == Artix ]]; then
|
function kill_services {
|
||||||
{
|
|
||||||
pgrep "^ivpn-service$" && ivpn disconnect
|
pgrep "^ivpn-service$" && ivpn disconnect
|
||||||
doas pkill "^ivpn-service$"
|
doas pkill "^ivpn-service$"
|
||||||
|
|
||||||
pkill "^mako$"
|
pkill "^mako$"
|
||||||
pkill "^pipewire$"
|
|
||||||
pkill "^pipewire-pulse$"
|
|
||||||
pkill "^wireplumber$"
|
pkill "^wireplumber$"
|
||||||
} &> /dev/null
|
pkill "^pipewire-pulse$"
|
||||||
fi
|
pkill "^pipewire$"
|
||||||
|
}
|
||||||
|
|
||||||
|
[[ $(tty) == /dev/tty1 ]] && [[ $(lsb_release -si) == Artix ]] &&
|
||||||
|
kill_services &> /dev/null
|
||||||
|
unfunction kill_services
|
||||||
|
|
|
@ -4,6 +4,5 @@ if [[ $(tty) == /dev/tty1 ]] && [[ $(lsb_release -si) == Artix ]]; then
|
||||||
export GTK_USE_PORTAL=1
|
export GTK_USE_PORTAL=1
|
||||||
export QT_QPA_PLATFORM=wayland
|
export QT_QPA_PLATFORM=wayland
|
||||||
|
|
||||||
dbus-launch --sh-syntax --exit-with-session sway &> /dev/null
|
dbus-launch --sh-syntax --exit-with-session sway &> /dev/null; exit
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -4,15 +4,17 @@ export PATH="$PATH:$HOME/.local/bin"
|
||||||
|
|
||||||
# Essentials
|
# Essentials
|
||||||
export LANG="en_DK.UTF-8"
|
export LANG="en_DK.UTF-8"
|
||||||
export EDITOR="nvim"
|
|
||||||
export PAGER="less"
|
export PAGER="less"
|
||||||
|
export EDITOR="nano"
|
||||||
|
(( ${+commands[vim]} )) && export EDITOR="vim"
|
||||||
|
(( ${+commands[nvim]} )) && export EDITOR="nvim"
|
||||||
|
|
||||||
# Less
|
# Less
|
||||||
export LESS="-R"
|
export LESS="-R"
|
||||||
export LESSHISTFILE="/dev/null"
|
export LESSHISTFILE="/dev/null"
|
||||||
|
|
||||||
# Tmux
|
# Tmux
|
||||||
[[ -z $TMUX ]] || export TERM="xterm-256color"
|
[[ -n $TMUX ]] && export TERM="xterm-256color"
|
||||||
|
|
||||||
# Secret variables
|
# Secret variables
|
||||||
[[ -f $ZDOTDIR/.env.zsh ]] && source $ZDOTDIR/.env.zsh
|
[[ -f $ZDOTDIR/.env.zsh ]] && source $ZDOTDIR/.env.zsh
|
||||||
|
|
Loading…
Reference in a new issue