1. Turn off networking
2. Turn off keyboard backlight
3. Lock my session
Code: Select all
#!/bin/bash
nmcli networking off
echo 0 | sudo tee /sys/class/leds/asus::kbd_backlight/brightness
dm-tool lock
exit
Code: Select all
sudo /usr/bin/0locking.sh
/etc/sudoers
it works except dm-tool lock
as well as
light-locker-command -l
and light-locker-command -a
Any ideas?
Thank you
Edit: Adding neofetch output
Code: Select all
...-:::::-...
.-MMMMMMMMMMMMMMM-. ------------------
.-MMMM`..-:::::::-..`MMMM-. OS: Linux Mint 21.1 x86_64
.:MMMM.:MMMMMMMMMMMMMMM:.MMMM:. Host: VivoBook_ASUSLaptop X415JA_X415JA 1.0
-MMM-M---MMMMMMMMMMMMMMMMMMM.MMM- Kernel: 5.15.0-60-generic
`:MMM:MM` :MMMM:....::-...-MMMM:MMM:` Uptime: 2 days, 12 hours, 5 mins
:MMM:MMM` :MM:` `` `` `:MMM:MMM: Packages: 2226 (dpkg), 38 (flatpak)
.MMM.MMMM` :MM. -MM. .MM- `MMMM.MMM. Shell: bash 5.1.16
:MMM:MMMM` :MM. -MM- .MM: `MMMM-MMM: Resolution: 1366x768
:MMM:MMMM` :MM. -MM- .MM: `MMMM:MMM: DE: Xfce 4.16
:MMM:MMMM` :MM. -MM- .MM: `MMMM-MMM: WM: Xfwm4
.MMM.MMMM` :MM:--:MM:--:MM: `MMMM.MMM. WM Theme: Midnight-GreenNight
:MMM:MMM- `-MMMMMMMMMMMM-` -MMM-MMM: Theme: Midnight-GreenNight [GTK2/3]
:MMM:MMM:` `:MMM:MMM: Icons: Mint-X-Dark [GTK2/3]
.MMM.MMMM:--------------:MMMM.MMM. Terminal: xfce4-terminal
'-MMMM.-MMMMMMMMMMMMMMM-.MMMM-' Terminal Font: Monospace 15
'.-MMMM``--:::::--``MMMM-.' CPU: Intel i3-1005G1 (4) @ 3.400GHz
'-MMMMMMMMMMMMM-' GPU: Intel Iris Plus Graphics G1
``-:::::-`` Memory: 1584MiB / 7692MiB