Add Wallpapers and Ringtones to top-level Sys menu in dmenu.so
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1952,6 +1952,12 @@ open_builtin_menu(const char *menu_name, int keep_idx)
|
|||||||
snprintf(label, sizeof(label), "%s Themes", ICON_THM);
|
snprintf(label, sizeof(label), "%s Themes", ICON_THM);
|
||||||
add_menu_item(label, "@plugin:themes", 0);
|
add_menu_item(label, "@plugin:themes", 0);
|
||||||
|
|
||||||
|
snprintf(label, sizeof(label), "%s Wallpapers", ICON_THM);
|
||||||
|
add_menu_item(label, "@plugin:wallpapers", 0);
|
||||||
|
|
||||||
|
snprintf(label, sizeof(label), "%s Ringtones", ICON_BEL);
|
||||||
|
add_menu_item(label, "@plugin:ringtones", 0);
|
||||||
|
|
||||||
char bl_buf[32] = "";
|
char bl_buf[32] = "";
|
||||||
if (read_first_line("/sys/class/leds/white:torch/brightness", bl_buf, sizeof(bl_buf)) ||
|
if (read_first_line("/sys/class/leds/white:torch/brightness", bl_buf, sizeof(bl_buf)) ||
|
||||||
read_first_line("/sys/class/leds/white:flash/brightness", bl_buf, sizeof(bl_buf))) {
|
read_first_line("/sys/class/leds/white:flash/brightness", bl_buf, sizeof(bl_buf))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user