1
0
Эх сурвалжийг харах

added shortcuts for flags

Fabian Peter Hammerle 7 жил өмнө
parent
commit
ae96dc17cf
2 өөрчлөгдсөн 6 нэмэгдсэн , 4 устгасан
  1. 3 1
      README.md
  2. 3 3
      scripts/xrandrl

+ 3 - 1
README.md

@@ -1,5 +1,7 @@
 # xrandrl
 
+show names of outputs available to x server.
+
 ## Requirements
 
 ```{sh}
@@ -14,7 +16,7 @@ eDP2
 DP2-1
 DP2-2
 
-$ xrandrl --enabled 
+$ xrandrl --enabled
 eDP2
 DP2-2
 

+ 3 - 3
scripts/xrandrl

@@ -152,17 +152,17 @@ def _init_argparser():
     import argparse
     argparser = argparse.ArgumentParser(description=None)
     argparser.add_argument(
-        '--connected',
+        '-c', '--connected',
         action='store_true',
         help='connected only',
     )
     argparser.add_argument(
-        '--disabled',
+        '-d', '--disabled',
         action='store_true',
         help='disabled only (does not imply --connected)',
     )
     argparser.add_argument(
-        '--enabled',
+        '-e', '--enabled',
         action='store_true',
         help='enabled only (does not imply --connected)',
     )