From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/system/acpid/handler.sh | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 repo/system/acpid/handler.sh (limited to 'repo/system/acpid/handler.sh') diff --git a/repo/system/acpid/handler.sh b/repo/system/acpid/handler.sh deleted file mode 100644 index 412ac02..0000000 --- a/repo/system/acpid/handler.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# vim: set ts=4: -# -# This is the default ACPI handler script that is configured in -# /etc/acpi/events/anything to be called for every ACPI event. -# You can edit it and add your own actions; treat it as a configuration file. -# -PATH="/usr/share/acpid:$PATH" -alias log='logger -t acpid' - -# ::: -case "$1:$2:$3:$4" in - -button/power:PWRF:*) - log 'Power button pressed' - # Shutdown the system unless it has a lid (notebook). - [ -e /proc/acpi/button/lid/LID ] || poweroff -;; -button/sleep:SLPB:*) - log 'Sleep button pressed' - # Suspend to RAM. - zzz -;; -button/lid:*:close:*) - log 'Lid closed' - # Suspend to RAM if AC adapter is not connected. - power-supply-ac || zzz -;; -ac_adapter:*:*:*0) - log 'AC adapter unplugged' - # Suspend to RAM if notebook's lid is closed. - lid-closed && zzz -;; -esac - -exit 0 -- cgit v1.2.1