Skip to content

Commit

Permalink
Improve help content and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
sidevesh committed Jul 11, 2023
1 parent df20bc3 commit fc5d8f2
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 22 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,16 @@ Usage: com.sidevesh.Luminance [OPTIONS]
An application to control brightness of displays including external displays supporting DDC/CI

Options:
-l, --list-displays List displays and their brightness
-g, --get-percentage [NUM] Get the brightness percentage of a display
-s, --set-brightness [NUM] Set the brightness of a display to a percentage value
-i, --increase-brightness [NUM] Increase the brightness of a display by a percentage value
-d, --decrease-brightness [NUM] Decrease the brightness of a display by a percentage value
-p --percentage [PERCENT] Percentage value to set the brightness to in case of --set-brightness option or to increase or decrease the brightness by in case of --increase-brightness or --decrease-brightness option
-o, --show-osd Show OSD popup when brightness is changed for specified environment:
g: GNOME, experimental, only works with https://extensions.gnome.org/extension/5952/eval-gjs/ extension installed
-h, --help Show help information
-l, --list-displays List displays and their brightness
-g, --get-percentage [DISPLAY NUMBER] Get the brightness percentage of a display
-s, --set-brightness [DISPLAY NUMBER] Set the brightness of a display to a percentage value
-i, --increase-brightness [DISPLAY NUMBER] Increase the brightness of a display by a percentage value
-d, --decrease-brightness [DISPLAY NUMBER] Decrease the brightness of a display by a percentage value
If DISPLAY NUMBER is not provided, for --set-brightness, --increase-brightness and --decrease-brightness options, the brightness of all displays will be changed
-p --percentage [PERCENTAGE] Percentage value to set the brightness to in case of --set-brightness option or to increase or decrease the brightness by in case of --increase-brightness or --decrease-brightness option
-o, --show-osd Show OSD popup when brightness is changed for specified environment:
g: GNOME, experimental, only works with https://extensions.gnome.org/extension/5952/eval-gjs/ extension installed
-h, --help Show help information

When no arguments are provided, the application starts in GUI mode.
```
Expand Down
2 changes: 1 addition & 1 deletion arch
Submodule arch updated from c9a8a1 to 552a41
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: luminance
Version: 1.0.1
Version: 1.0.2
Architecture: amd64
Maintainer: Swapnil Devesh <me@sidevesh.com>
Homepage: https://github.com/sidevesh/Luminance
Expand Down
2 changes: 1 addition & 1 deletion info.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define APP_INFO_VERSION_NUMBER "1.0.1"
#define APP_INFO_VERSION_NUMBER "1.0.2"
#define APP_INFO_PACKAGE_NAME "com.sidevesh.Luminance"
#define APP_INFO_DISPLAY_NAME "Luminance"
#define APP_INFO_ICON_NAME "com.sidevesh.Luminance"
Expand Down
2 changes: 1 addition & 1 deletion rpm/com.sidevesh.Luminance.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: com.sidevesh.Luminance
Version: 1.0.1
Version: 1.0.2
Release: 1%{?dist}
Summary: A simple GTK application to control brightness of displays including external displays supporting DDC/CI

Expand Down
19 changes: 10 additions & 9 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,16 @@ int display_help_in_cli() {
printf("An application to control brightness of displays including external displays supporting DDC/CI\n");
printf("\n");
printf("Options:\n");
printf(" -l, --list-displays List displays and their brightness\n");
printf(" -g, --get-percentage [NUM] Get the brightness percentage of a display\n");
printf(" -s, --set-brightness [NUM] Set the brightness of a display to a percentage value\n");
printf(" -i, --increase-brightness [NUM] Increase the brightness of a display by a percentage value\n");
printf(" -d, --decrease-brightness [NUM] Decrease the brightness of a display by a percentage value\n");
printf(" -p --percentage [PERCENT] Percentage value to set the brightness to in case of --set-brightness option or to increase or decrease the brightness by in case of --increase-brightness or --decrease-brightness option\n");
printf(" -o, --show-osd Show OSD popup when brightness is changed for specified environment:\n");
printf(" g: GNOME, experimental, only works with https://extensions.gnome.org/extension/5952/eval-gjs/ extension installed\n");
printf(" -h, --help Show help information\n");
printf(" -l, --list-displays List displays and their brightness\n");
printf(" -g, --get-percentage [DISPLAY NUMBER] Get the brightness percentage of a display\n");
printf(" -s, --set-brightness [DISPLAY NUMBER] Set the brightness of a display to a percentage value\n");
printf(" -i, --increase-brightness [DISPLAY NUMBER] Increase the brightness of a display by a percentage value\n");
printf(" -d, --decrease-brightness [DISPLAY NUMBER] Decrease the brightness of a display by a percentage value\n");
printf(" - If DISPLAY NUMBER is not provided, for --set-brightness, --increase-brightness and --decrease-brightness options, the brightness of all displays will be changed\n");
printf(" -p --percentage [PERCENTAGE] Percentage value to set the brightness to in case of --set-brightness option or to increase or decrease the brightness by in case of --increase-brightness or --decrease-brightness option\n");
printf(" -o, --show-osd Show OSD popup when brightness is changed for specified environment:\n");
printf(" g: GNOME, experimental, only works with https://extensions.gnome.org/extension/5952/eval-gjs/ extension installed\n");
printf(" -h, --help Show help information\n");
printf("\n");
printf("When no arguments are provided, the application starts in GUI mode.\n");

Expand Down

0 comments on commit fc5d8f2

Please sign in to comment.