mirror of
https://github.com/arkorty/Scripts.git
synced 2026-03-17 17:01:41 +00:00
Rename: set_gtk_theme to set-gsettings
This commit is contained in:
23
suspend
23
suspend
@@ -1,14 +1,21 @@
|
|||||||
#!/usr/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
# Script: suspend
|
# Script: suspend
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# Author: Arkaprabha Chakraborty
|
# Author: Arkaprabha Chakraborty
|
||||||
# Created: 23-12-2023
|
# Created: 12-05-24
|
||||||
# Dependencies: systemd
|
# Dependencies: None
|
||||||
#
|
#
|
||||||
# Copyright (C) 2023 Arkaprabha Chakraborty
|
# Copyright (C) 2024 Arkaprabha Chakraborty
|
||||||
|
|
||||||
PROG=systemctl
|
# Call systemctl suspend
|
||||||
OPTS=suspend
|
systemctl suspend
|
||||||
|
|
||||||
$PROG $OPTS
|
# Check the return status of systemctl suspend
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error: Failed to suspend the system." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "System suspended successfully."
|
||||||
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user