use busctl ?
This commit is contained in:
parent
8e19ad8f22
commit
bf3d6e22ba
1 changed files with 6 additions and 11 deletions
|
@ -36,10 +36,9 @@ main() {
|
||||||
sed -i "s/bubblegum/monokai/g" "$HOME"/.config/micro/settings.json
|
sed -i "s/bubblegum/monokai/g" "$HOME"/.config/micro/settings.json
|
||||||
|
|
||||||
# Keyboard backlight
|
# Keyboard backlight
|
||||||
# gdbus call --session \
|
busctl call --system org.freedesktop.UPower \
|
||||||
# --dest org.gnome.SettingsDaemon.Power \
|
/org/freedesktop/UPower/KbdBacklight \
|
||||||
# --object-path /org/gnome/SettingsDaemon/Power \
|
org.freedesktop.UPower.KbdBacklight SetBrightness 'i' 1
|
||||||
# --method org.gnome.SettingsDaemon.Power.Keyboard.StepUp
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,13 +58,9 @@ main() {
|
||||||
sed -i "s/monokai/bubblegum/g" "$HOME"/.config/micro/settings.json
|
sed -i "s/monokai/bubblegum/g" "$HOME"/.config/micro/settings.json
|
||||||
|
|
||||||
# Keyboard backlight
|
# Keyboard backlight
|
||||||
# for _ in $(seq 2) # doing it 2 times to be sure we really turn off the lights
|
busctl call --system org.freedesktop.UPower \
|
||||||
# do
|
/org/freedesktop/UPower/KbdBacklight \
|
||||||
# gdbus call --session \
|
org.freedesktop.UPower.KbdBacklight SetBrightness 'i' 0
|
||||||
# --dest org.gnome.SettingsDaemon.Power \
|
|
||||||
# --object-path /org/gnome/SettingsDaemon/Power \
|
|
||||||
# --method org.gnome.SettingsDaemon.Power.Keyboard.StepDown
|
|
||||||
# done
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue