aboutsummaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-12-02 22:56:18 +0200
committersrdusr <trevorgray@srdusr.com>2022-12-02 22:56:18 +0200
commit0383916005b10e271baa7d743687cda8d938affe (patch)
tree3cd6e00a6aa7e71d5d14d4b9c4cdc1efd709c76b /.config/zsh
parentc58867397a9ee43cc80ed9958f020e04917d7c06 (diff)
downloaddotfiles-0383916005b10e271baa7d743687cda8d938affe.tar.gz
dotfiles-0383916005b10e271baa7d743687cda8d938affe.zip
Add aliases for suspend/hibernate and locking the screen
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 0b2a312..70cac6e 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -340,7 +340,7 @@ alias nv='nvim'
alias trash="gio trash"
alias trash_restore='gio trash --restore "$(gio trash --list | fzf | cut -f 1)"'
alias ec='$EDITOR $HOME/.config/zsh/.zshrc'
-alias sc="source $HOME/.zshrc"
+alias sc="source $HOME/.config/zsh/.zshrc"
# confirmation #
alias mv='mv -i'
@@ -348,6 +348,10 @@ alias cp='cp -i'
alias ln='ln -i'
alias rm='rm -i'
+# suspend(sleep)/hibernate and lock screen if using systemctl
+alias suspend='systemctl suspend | betterlockscreen --lock dimblur'
+alias hibernate='systemctl hibernate | betterlockscreen --lock dimblur'
+
########## Source Plugins, should be last ##########
# load zsh-vi-mode