mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 03:02:52 +01:00
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:
parent
d27a4f13d2
commit
544f734617
@ -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
|
||||
|
3
rc/zshrc
3
rc/zshrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user