bashrc & zshrc: alias startx="exec \startx"

I generally have the shortcut to kill Xorg enabled and last night I was
wondering what happens if I use it within i3lock.

The result was unlocked TTY and that was a gaping hole even if running
`startx` again presented me i3lock (I wonder how that works), but after
repeating the experiment with this alias I was thrown into TTY login
prompt.
This commit is contained in:
Aminda Suomalainen 2019-02-18 13:20:04 +02:00
parent d27a4f13d2
commit 544f734617
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
2 changed files with 6 additions and 0 deletions

View File

@ -591,6 +591,9 @@ alias apt-builddep="apt-rdepends --build-depends --follow=DEPENDS"
# http://superuser.com/a/638033 - get embedded Windows key
alias winkey="xxd /sys/firmware/acpi/tables/MSDM"
# Always exec startx so Ctrl-Alt-Backspace won't lead to unlocked TTY.
alias startx="exec \startx"
# Allow custom aliases to be put in .aliases or .bash_aliases .
# .aliases

View File

@ -589,6 +589,9 @@ alias apt-builddep="apt-rdepends --build-depends --follow=DEPENDS"
# http://superuser.com/a/638033 - get embedded Windows key
alias winkey="xxd /sys/firmware/acpi/tables/MSDM"
# Always exec startx so Ctrl-Alt-Backspace won't lead to unlocked TTY.
alias startx="exec \startx"
# Allow custom aliases to be put in .aliases or .zsh_aliases .
# .aliases