Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ideas to improve this? #81

Open
ikuria opened this issue Feb 6, 2016 · 3 comments
Open

ideas to improve this? #81

ikuria opened this issue Feb 6, 2016 · 3 comments

Comments

@ikuria
Copy link

ikuria commented Feb 6, 2016

export DISPLAY=:0
export XAUTHORITY=/home/ikuria/.Xauthority

case "${1}" in
    true) #battery_mode
        echo 1 > /sys/class/backlight/intel_backlight/brightness &
        echo 10s > /sys/class/leds/dell::kbd_backlight/stop_timeout &
        echo 0 > /sys/class/leds/dell::kbd_backlight/brightness &
        su -p -c 'notify-send --hint=int:transient:1 -i "battery-full-symbolic" "Laptop läuft jetzt über Akku" $
;;
    false) #ac_mode
        echo 937 > /sys/class/backlight/intel_backlight/brightness &
        echo 2 > /sys/class/leds/dell::kbd_backlight/brightness &
        echo 120m > /sys/class/leds/dell::kbd_backlight/stop_timeout &
        su -p -c 'notify-send --hint=int:transient:1 -i "goa-panel-symbolic" "Laptop mit Netzteil verbunden" "S$
esac

:D

@doreato
Copy link

doreato commented Feb 17, 2016

What is this exactly? Configs depending on the state of the computer? I would love to have this if you could elaborate on what it does more specifically and how to install.

@ikuria
Copy link
Author

ikuria commented Feb 18, 2016

ac cable not plugged:
set screenbacklight to lowest
set keyboard light to off + 10seconds for enable by fn key
notify all the stuff

ac cable plugged
set screenbacklight to highest
set keyboard light to highest and remove the timeout to "always on"
notify all the stuff

@ikuria
Copy link
Author

ikuria commented Aug 13, 2016

i'm on linux mint 18 now and there is system.d now working, is there any way to detect pluggin ac event to get the script to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants