feat: volume & brightness sliders;
experiment: trying to implement idle inhibitor
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
"title",
|
||||
"buttons-grid",
|
||||
"volume",
|
||||
"slider",
|
||||
"inhibitors",
|
||||
"dnd",
|
||||
"notifications",
|
||||
@@ -70,6 +71,21 @@
|
||||
"clear-all-button": true,
|
||||
"button-text": "Purge notifications"
|
||||
},
|
||||
"volume": {
|
||||
"label": " ",
|
||||
"show-per-app": true,
|
||||
"show-per-app-icon": true,
|
||||
"show-per-app-label": true
|
||||
},
|
||||
"slider": {
|
||||
"label": " ",
|
||||
"cmd_setter": "brightnessctl s $value",
|
||||
"cmd_getter": "brightnessctl g",
|
||||
"min": 5000,
|
||||
"min_limit": 5000,
|
||||
"max": 120000,
|
||||
"max_limit": 120000
|
||||
},
|
||||
"dnd": {
|
||||
"text": "Don't bother"
|
||||
},
|
||||
@@ -84,7 +100,7 @@
|
||||
"loop-carousel": false
|
||||
},
|
||||
"buttons-grid": {
|
||||
"buttons-per-row": 7,
|
||||
"buttons-per-row": 3,
|
||||
"actions": [
|
||||
{
|
||||
"label": "",
|
||||
@@ -99,13 +115,18 @@
|
||||
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && bluetoothctl power on || bluetoothctl power off'",
|
||||
"update-command": "sh -c \'bluetoothctl show | awk \\\"/Powered/ {print \\$2}\\\" | grep -q yes && echo true || echo false\'"
|
||||
},
|
||||
{
|
||||
"label": "",
|
||||
{
|
||||
"label": "",
|
||||
"type": "toggle",
|
||||
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && mullvad connect || mullvad disconnect'",
|
||||
"update-command": "sh -c '[[ $(mullvad status | grep -e Connected ) == \"Connected\" ]] && echo true || echo false'"
|
||||
},
|
||||
{
|
||||
"label": "",
|
||||
"type": "toggle",
|
||||
"command": "echo not implemented",
|
||||
"update-command": "echo not implemented"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user