Changeset 5124:d5f2eee3d3b8 in roaraudio for plugins/bash
- Timestamp:
- 08/10/11 13:04:25 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/bash/roaraudio
r4145 r5124 69 69 x11sock=$(xprop -root 2>/dev/null | grep '^ROAR_SERVER(STRING) = ' | sed 's/^[^"]*"//; s/"$//') 70 70 71 words="$link $nodes $stdsocks $x11sock +slp +fork "71 words="$link $nodes $stdsocks $x11sock +slp +fork +abstract" 72 72 73 73 compgen -A hostname $cur … … 107 107 local cur 108 108 cur="${COMP_WORDS[COMP_CWORD]}" 109 COMPREPLY=($(compgen -W "meta primary sync cleanmeta hwmixer pause mute mmap antiecho recsource passmixer virtual prethru immutable enhance " -- ${cur}))109 COMPREPLY=($(compgen -W "meta primary sync cleanmeta hwmixer pause mute mmap antiecho recsource passmixer virtual prethru immutable enhance singlesink" -- ${cur})) 110 110 } 111 111 … … 119 119 local cur 120 120 cur="${COMP_WORDS[COMP_CWORD]}" 121 COMPREPLY=($(compgen -W "none title album author autor artist version date license tracknumber organization description genre location contact streamurl homepage thumbnail length comment other filename fileurl server duration www woaf encoder encodedby year discid rpg_track_peak rpg_track_gain rpg_album_peak rpg_album_gain hash signalinfo audioinfo offset performer copyright" -- ${cur})) 121 #phi@ph7:roaraudio $ echo $(grep '^#define ROAR_META_TYPE_' include/roaraudio/meta.h | cut -d_ -f4,5,6,7,8,9 | cut -d' ' -f1 | tr A-Z a-z) 122 COMPREPLY=($(compgen -W "none title album author autor artist version date license tracknumber organization description genre location contact streamurl homepage thumbnail length comment other filename fileurl server duration www woaf encoder encodedby year discid rpg_track_peak rpg_track_gain rpg_album_peak rpg_album_gain hash signalinfo audioinfo offset performer copyright likeness composer rights isrc language gtin isbn ean publisher discnumber sourcemedia label labelno" -- ${cur})) 122 123 } 123 124 … … 559 560 { 560 561 local cur prev opts 561 local opts_misc opts_au dio opts_stream opts_driver opts_output opts_source opts_cf opts_midi opts_rdtcs opts_server opts_plugins562 local opts_misc opts_auth opts_plugins opts_audio opts_stream opts_rolestack opts_output opts_source opts_cf opts_midi opts_light opts_rdtcs opts_x11 opts_server 562 563 COMPREPLY=() 563 564 cur="${COMP_WORDS[COMP_CWORD]}" … … 567 568 # The basic options we'll complete. 568 569 # 569 opts_misc="--daemon --verbose --terminate --start --restart --stop --shutdown --realtime --chroot --setgid --setuid --sysclocksync --location --pidfile" 570 opts_misc="--daemon --verbose --terminate --start --restart --stop --shutdown --realtime --memlock --chroot --setgid --setuid --sysclocksync --location --description --pidfile --log-syslog --script-postdown" 571 opts_auth="--guest-acclev --trust-acclev --trust-root --no-trust-root --authfile-gen --authfile-load --authfile-type --authfile-acclev --new-authfile" 572 opts_plugins="--plugin-load" 570 573 opts_audio="--rate --bits --chans -R -B -C --aiprofile" 571 574 opts_stream="--stream-flags" 572 opts_ driver="--driver --device -d -D --list-driver"573 opts_output="--odriver --odevice -o -O -oO -oP -oN "575 opts_rolestack="--list-rolestack --rolestack-push" 576 opts_output="--odriver --odevice -o -O -oO -oP -oN --list-driver" 574 577 opts_source="--source -s -S -sO -sP -sN --list-sources" 578 opts_mixer="-m --mixer -mO -mN -mP --list-mixers" 575 579 opts_cf="--list-cf" 576 580 opts_midi="--midi-no-console --midi-console-enable --midi-console --ssynth-enable --ssynth-disable" 577 581 opts_light="--light-channels" 578 582 opts_rdtcs="--rds-pi --rds-ps --rds-pty --rds-tp --rds-ct" 579 opts_ server="--tcp --unix --decnet -t -u -n -4 -6 -64 --port -p --bind -b --sock --proto --proto-dir --proto-rate --proto-bits --proto-codec --proto-chans --list-proto --list-profiles --proto-profile --proto-aiprofile --new-sock --slp --x11 --jumbo-mtu -G -U --no-listen --client-fh --close-fh --standby --auto-standby"580 opts_ plugins="--plugin-load"581 582 opts="$opts_misc $opts_au dio $opts_stream $opts_driver $opts_output $opts_source $opts_cf $opts_midi $opts_light $opts_rdtcs $opts_server $opts_plugins--help"583 opts_x11="--x11-display --display" 584 opts_server="--tcp --unix --decnet -t -u -n -4 -6 -64 --port -p --bind -b --sock --proto --proto-dir --proto-rate --proto-bits --proto-codec --proto-chans --list-proto --list-profiles --proto-profile --proto-aiprofile --list-aiprofiles --new-sock --slp --x11 --jumbo-mtu -G -U --no-listen --client-fh --close-fh --standby --auto-standby" 585 586 opts="$opts_misc $opts_auth $opts_plugins $opts_audio $opts_stream $opts_rolestack $opts_output $opts_source $opts_mixer $opts_cf $opts_midi $opts_light $opts_rdtcs $opts_x11 $opts_server --help" 583 587 584 588 … … 596 600 return 0 597 601 ;; 602 '--script-postdown') 603 _filedir 604 return 0 605 ;; 598 606 '--plugin-load') 599 607 _filedir 600 608 return 0 601 609 ;; 610 '--authfile-gen'|'--authfile-load') 611 _filedir 612 return 0 613 ;; 614 # MemLock: 615 '--memlock') 616 COMPREPLY=($(compgen -W "none low medium high nearlyall nearlyallsys allcur all default" -- ${cur})) 617 return 0 618 ;; 619 # Acclev 620 '--guest-acclev'|'--trust-acclev'|'--authfile-acclev') 621 COMPREPLY=($(compgen -W "none idented conctl guest user pwruser all" -- ${cur})) 622 return 0 623 ;; 624 '--authfile-type') 625 COMPREPLY=($(compgen -W "roar esd pulse htpasswd xauth" -- ${cur})) 626 return 0 627 ;; 602 628 # String: 603 '--location' )629 '--location'|'--description') 604 630 return 0 605 631 ;; … … 629 655 return 0 630 656 ;; 657 # R:A 658 '--rolestack-push') 659 return 0 660 ;; 631 661 # driver: 632 '--driver'|'-d')633 words=$(roard --list-driver | tail -n +3 | sed 's/^ *//; s/ .*$//')634 COMPREPLY=($(compgen -W "${words}" -- ${cur}))635 return 0636 ;;637 662 '--odriver'|'-o') 638 663 words=$(roard --list-driver | tail -n +3 | sed 's/^ *//; s/ .*$//') … … 648 673 # Device: 649 674 # FIXME: add support for non file devices 650 '--device'|'-D')651 _filedir652 return 0653 ;;654 675 '--odevice'|'-O') 655 676 _filedir … … 682 703 ;; 683 704 '--rds-pty') 705 return 0 706 ;; 707 # X11: 708 '--x11-display'|'--display') 684 709 return 0 685 710 ;;
Note: See TracChangeset
for help on using the changeset viewer.