From 1a8dd3b6adc676d4132be5651ce94214dd3908c8 Mon Sep 17 00:00:00 2001 From: nojhan Date: Thu, 11 Aug 2022 23:02:30 +0200 Subject: [PATCH] add aliases to turn screen(s) off and lock --- .bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bashrc b/.bashrc index e4f1eb9..9f6aca7 100644 --- a/.bashrc +++ b/.bashrc @@ -403,6 +403,12 @@ alias bepo="setxkbmap -layout fr -variant bepo -option" # Import the correct alias for thefuck eval $(thefuck --alias fuck) +# Alias for forcing screen on/off. +alias screenon="xset -display :0.0 dpms force on" +alias screenoff="xset -display :0.0 dpms force off" +# Lock the screens and turn them off. +alias afk="cinnamon-screensaver & cinnamon-screensaver-command -l & xset -display :0.0 dpms force off" + # Use liquidprompt only if in an interactive shell if [[ $- == *i* ]]; then # Super nice prompt