summaryrefslogtreecommitdiff
path: root/raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/tool/shutdowntimerctl
diff options
context:
space:
mode:
authorAlexanderCurl <alexc@alexc.hu>2026-04-18 17:46:06 +0100
committerAlexanderCurl <alexc@alexc.hu>2026-04-18 17:46:06 +0100
commit70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 (patch)
treeab1123d4067c1b086dd6faa7ee4ea643236b565a /raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/tool/shutdowntimerctl
parent5d94c0a7d44a2255b81815a52a7056a94a39842d (diff)
downloadRaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.tar.gz
RaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.zip
Replaced file structures for themes in the correct format
Diffstat (limited to 'raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/tool/shutdowntimerctl')
-rw-r--r--raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/tool/shutdowntimerctl55
1 files changed, 0 insertions, 55 deletions
diff --git a/raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/tool/shutdowntimerctl b/raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/tool/shutdowntimerctl
deleted file mode 100644
index c79c6b0..0000000
--- a/raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/tool/shutdowntimerctl
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-# SPDX-FileCopyrightText: 2023 Deminder <tremminder@gmail.com>
-# SPDX-License-Identifier: GPL-3.0-or-later
-#
-# shutdowntimerctl - This script can configure the shutdown and rtc wake alarm schedule.
-#
-# This file is part of the gnome-shell extension ShutdownTimer@Deminder.
-
-SHUTDOWN_BIN=/usr/sbin/shutdown
-RTCWAKE_BIN=/usr/sbin/rtcwake
-
-SHUTDOWN_MODE="-P"
-if [ ! -z "$2" ] && [ "$2" -gt 0 ];then
- POSITIVE_VALUE="$2"
-fi
-
-function print_help() {
- echo "[help] (show this help)" >&2
- echo "[shutdown|reboot|shutdown-cancel] {MINUTES}" >&2
- echo "[wake|wake-cancel] {MINUTES} (default: 0)" >&2
-}
-
-if [ "$#" -lt 1 ]; then
- print_help
- exit
-fi
-
-case "$1" in
- shutdown|reboot)
- if [[ "$1" = "reboot" ]]; then
- SHUTDOWN_MODE="-r"
- fi
- $SHUTDOWN_BIN "$SHUTDOWN_MODE" "$POSITIVE_VALUE"
- ;;
- shutdown-cancel)
- $SHUTDOWN_BIN -c
- ;;
- wake)
- $RTCWAKE_BIN --date +${POSITIVE_VALUE:-0}min --mode no
- ;;
- wake-cancel)
- $RTCWAKE_BIN --mode disable
- ;;
- --version)
- echo 1
- ;;
- -h|help)
- print_help
- ;;
- *)
- echo "Invalid argument: $1" >&2
- print_help
-esac
-