#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2024-present ArchR (https://github.com/archr-linux/Arch-R)

. /etc/profile.d/001-functions

if [ $DEVICE_ANALOG_STICKS_LED_CONTROL == "true" ]; then
  LEDS_CONFIG=$(get_setting analogsticks.led)

  if [ ! -z "${LEDS_CONFIG}" ]; then
    /usr/bin/analog_sticks_ledcontrol $LEDS_CONFIG
  fi
fi
