Przeglądaj źródła

Add backlight select

pull/1/head
Dejvino 4 lat temu
rodzic
commit
a3f826a5ac
2 zmienionych plików z 18 dodań i 1 usunięć
  1. +2
    -1
      home/config/waybar/config_1
  2. +16
    -0
      usr/local/bin/swayphone_backlightselect

+ 2
- 1
home/config/waybar/config_1 Wyświetl plik

@@ -133,7 +133,8 @@
// "device": "acpi_video1", // "device": "acpi_video1",
"format": "{icon} {percent}% ", "format": "{icon} {percent}% ",
"states": [0,50], "states": [0,50],
"format-icons": ["", ""]
"format-icons": ["", ""],
"on-click": "termite -e swayphone_backlightselect"
}, },
"tray": { "tray": {
"icon-size": 22 "icon-size": 22


+ 16
- 0
usr/local/bin/swayphone_backlightselect Wyświetl plik

@@ -0,0 +1,16 @@
#!/bin/bash

BACKLIGHT=~/.backlight

dialog --menu EXECUTE 20 40 12 \
10 FULL \
9 . \
8 . \
7 . \
6 . \
5 . \
4 . \
3 . \
2 MIN \
2>$BACKLIGHT && pptk-backlight set `cat $BACKLIGHT`


Ładowanie…
Anuluj
Zapisz