Parcourir la source

added shortcuts for flags

Fabian Peter Hammerle il y a 7 ans
Parent
commit
ae96dc17cf
2 fichiers modifiés avec 6 ajouts et 4 suppressions
  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)',
     )