From 4974b61c33976381d191d0b1e421e34d62eca8c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Thu, 31 Mar 2022 17:55:22 +0300 Subject: [PATCH] Create helper script to automate log off tasks --- goingaway.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 goingaway.sh diff --git a/goingaway.sh b/goingaway.sh new file mode 100755 index 0000000..ee304d8 --- /dev/null +++ b/goingaway.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# +# Ferit Yigit BALABAN , 2022 +# + +# Step 1: Set screen brightness to 0 +brightnessctl --device amdgpu_bl0 set 0 + +# Step 2: Set keyboard backlight to 0 +brightnessctl --device asus::kbd_backlight set 0 + +# Step 3: Set mouse light to 0 +rivalcfg --color=#000000 --light-effect=steady + +# Step 4: Set volume level to 0 +pactl set-sink-volume @DEFAULT_SINK@ 0% + +# Step 5: Lock the screen with screensaver +betterlockscreen --lock --off 10 \ No newline at end of file