Browse Source

Add backlight select

pull/1/head
Dejvino 3 years ago
parent
commit
a3f826a5ac
2 changed files with 18 additions and 1 deletions
  1. +2
    -1
      home/config/waybar/config_1
  2. +16
    -0
      usr/local/bin/swayphone_backlightselect

+ 2
- 1
home/config/waybar/config_1 View File

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


+ 16
- 0
usr/local/bin/swayphone_backlightselect View File

@@ -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`


Loading…
Cancel
Save