Commit e599712f authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

remove flashlight

parent 1bac35f4
[Desktop Entry]
Name=Flashlight
Type=Application
Icon=system-shutdown
Exec=flashlight
Categories=Utility;
#!/bin/bash
# Enable the LED so we can poll its state
sudo bash -c 'echo 255 > /sys/class/leds/flash_en/brightness'
# Display the GUI
yad --title flashlight --form \
--field='Flashlight ON!switch-on-symbolic':fbtn "sudo i2cset -y 1 0x53 0x10 0x1a" \
--field='Flashlight OFF!switch-off-symbolic':fbtn "sudo i2cset -y 1 0x53 0x10 0x18" \
--button='Close!gtk-cancel':1
# Disable the LED now that we're done
sudo bash -c 'echo 0 > /sys/class/leds/flash_en/brightness'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment