Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2012-08-23 22:26:30

  P@blo - Nadworny matematyk

P@blo
Nadworny matematyk
Skąd: Wrocław v Jasło
Zarejestrowany: 2010-11-11

Kadu vs Audacious

Hej,

Od razu mówię, że szukałem ale nie znalazłem odpowiedzi na moje pytanie ;)

Zachciało mi się w opisie w kadu wzmianki o tym co słucham :) Pragnąłem, aby to zrobił totem, ale poczytałem i raczej chyba się nie da (chyba, że jestem w błędzie to mile widziana mała instrukcja).

Znalazłem moduł w kadu, który (tak mi się wydaje, ale nie sprawdzałem tego) czyta opis z pliku. Jakby znaleźć plik w którym jest informacja o tym co aktualnie leci to super.

No rozwiązanie ostateczne to przenieść się na odtwarzacz który taką sztuczkę potrafi i 'spodobał' mi się audacious. I tu podjąłem kroki. Gdy odtwarzacz gra - opis: Zatrzymane. Gdy jest wyłączony - opis: Wyłączone. Czyli jakiś tam kontakt jest, ale no nie taki jaki powinien.

Bardzo proszę o pomoc i nie odsyłanie mnie na forum kadu bo naprawdę nie lubie i jak mogę minimalizuje rejestrowanie się gdziekolwiek.

Pozdrawiam


ThinkPadX220i
| Procesor: Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz |
|  Debian: sid   |   Arch: amd64   |   Sound: alsa   |
| No DE | WM: DWM  |  DM: .bash_profile  |  BIOS+MBR |

Offline

 

#2  2012-09-06 11:24:32

  P@blo - Nadworny matematyk

P@blo
Nadworny matematyk
Skąd: Wrocław v Jasło
Zarejestrowany: 2010-11-11

Re: Kadu vs Audacious

Czy uważacie że artykuł na portalu, opisujący jak obejść ten problem będzie... Potrzebny? Mam skrypcik i mógłbym się nim podzielić, ale nie wiem czy jest to warte zachodu... W końcu powiedzmy sobie szczerze, że tutejszy problem nie jest jakiś ważny czy taki bez którego nie można żyć...

Przy okazji, czy taki demon typu:

Kod:

while true
do
...
sleep 1
end

To jedyny sposób na działanie tego typu? Czy jest to duże obciążenie dla procka i takie tam?

Pozdrawiam


ThinkPadX220i
| Procesor: Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz |
|  Debian: sid   |   Arch: amd64   |   Sound: alsa   |
| No DE | WM: DWM  |  DM: .bash_profile  |  BIOS+MBR |

Offline

 

#3  2012-09-08 08:32:59

  torrentow - Członek Sejmowej Komisji Śledczej

torrentow
Członek Sejmowej Komisji Śledczej
Skąd: z GNU
Zarejestrowany: 2009-11-23

Re: Kadu vs Audacious

Witam,
Mam dla Ciebie bardzo dobrą wiadomość:

Kod:

[satan@Leningrad_v2][~] $ audtool --help
Vital information:
   current-song                       - returns current song title
   current-song-filename              - returns current song filename
   current-song-length                - returns current song length
   current-song-length-seconds        - returns current song length in seconds
   current-song-length-frames         - returns current song length in frames
   current-song-output-length         - returns current song output length
   current-song-output-length-seconds - returns current song output length in seconds
   current-song-output-length-frames  - returns current song output length in frames
   current-song-bitrate               - returns current song bitrate in bits per second
   current-song-bitrate-kbps          - returns current song bitrate in kilobits per second
   current-song-frequency             - returns current song frequency in hertz
   current-song-frequency-khz         - returns current song frequency in kilohertz
   current-song-channels              - returns current song channels
   current-song-tuple-data            - returns the value of a tuple field for the current song
   current-song-info                  - returns current song bitrate, frequency and channels

Playlist manipulation:
   playlist-advance                   - go to the next song in the playlist
   playlist-auto-advance-status       - returns the status of playlist auto-advance
   playlist-auto-advance-toggle       - toggles playlist auto-advance
   playlist-reverse                   - go to the previous song in the playlist
   playlist-addurl                    - adds a URL to the playlist
   playlist-insurl                    - inserts a URL at specified position in the playlist
   playlist-addurl-to-new-playlist    - adds a URL to the newly created playlist
   playlist-delete                    - deletes a song from the playlist
   playlist-length                    - returns the total length of the playlist
   playlist-song                      - returns the title of a song in the playlist
   playlist-song-filename             - returns the filename of a song in the playlist
   playlist-song-length               - returns the length of a song in the playlist
   playlist-song-length-seconds       - returns the length of a song in the playlist in seconds
   playlist-song-length-frames        - returns the length of a song in the playlist in frames
   playlist-display                   - returns the entire playlist
   playlist-position                  - returns the position in the playlist
   playlist-jump                      - jumps to a position in the playlist
   playlist-clear                     - clears the playlist
   playlist-repeat-status             - returns the status of playlist repeat
   playlist-repeat-toggle             - toggles playlist repeat
   playlist-shuffle-status            - returns the status of playlist shuffle
   playlist-shuffle-toggle            - toggles playlist shuffle
   playlist-stop-after-status         - queries if stopping after current song
   playlist-stop-after-toggle         - toggles if stopping after current song
   playlist-tuple-data                - returns the value of a tuple field for a song in the playlist
   current-playlist-name              - returns the playlist title of the active playlist

Playqueue manipulation:
   playqueue-add                      - adds a song to the playqueue
   playqueue-remove                   - removes a song from the playqueue
   playqueue-is-queued                - returns OK if a song is queued
   playqueue-get-queue-position       - returns the playqueue position of a song in the given position in the playlist
   playqueue-get-list-position        - returns the playlist position of a song in the given position in the playqueue
   playqueue-length                   - returns the length of the playqueue
   playqueue-display                  - returns a list of currently-queued songs
   playqueue-clear                    - clears the playqueue

Playback manipulation:
   playback-play                      - starts/unpauses song playback
   playback-pause                     - (un)pauses song playback
   playback-playpause                 - plays/(un)pauses song playback
   playback-stop                      - stops song playback
   playback-playing                   - returns OK if audacious is playing
   playback-paused                    - returns OK if audacious is paused
   playback-stopped                   - returns OK if audacious is stopped
   playback-status                    - returns the playback status
   playback-seek                      - performs an absolute seek
   playback-seek-relative             - performs a seek relative to the current position

Volume control:
   get-volume                         - returns the current volume level in percent
   set-volume                         - sets the current volume level in percent

Equalizer manipulation:
   equalizer-activate                 - activates/deactivates the equalizer
   equalizer-get                      - gets the equalizer settings
   equalizer-set                      - sets the equalizer settings
   equalizer-get-preamp               - gets the equalizer pre-amplification
   equalizer-set-preamp               - sets the equalizer pre-amplification
   equalizer-get-band                 - gets the equalizer value in specified band
   equalizer-set-band                 - sets the equalizer value in the specified band

Miscellaneous:
   mainwin-show                       - shows/hides the main window
   filebrowser-show                   - shows/hides the filebrowser
   jumptofile-show                    - shows/hides the jump to file window
   preferences-show                   - shows/hides the preferences window
   about-show                         - shows/hides the about window
   always-on-top                      - on/off always on top
   version                            - shows Audacious version
   shutdown                           - shuts down Audacious

Help system:
   list-handlers                      - shows handlers list
   help                               - shows handlers list

Handlers may be prefixed with `--' (GNU-style long-options) or not, your choice.
Report bugs to http://redmine.audacious-media-player.org/

Przykład działania:

Kod:

[satan@Leningrad_v2][~] $ audtool current-song
Feed Me - UKF Bass Culture 2 - One Click Headshot

Pozdrawiam,
Towarzysz Torrentow

Ostatnio edytowany przez torrentow (2012-09-08 08:33:43)


Każdy sam sobie szkodzi :)
http://img715.imageshack.us/img715/7104/apt.png

Offline

 

#4  2012-09-08 12:04:49

  P@blo - Nadworny matematyk

P@blo
Nadworny matematyk
Skąd: Wrocław v Jasło
Zarejestrowany: 2010-11-11

Re: Kadu vs Audacious

@up: wiem o tym ;)
http://dug.net.pl/tekst/205/kadu_vs__audacious__czy … nek_w_opisie/

Z nudów napisałem :)

OT: Czy ktoś może mnie nakierować na taką 'przedmowę' w skrypcie? Chodzi o licencje czy coś tam? Kiedyś mati dał mi skrypt i widziałem w nim coś takiego, ale nie mogę tego znaleźć...


ThinkPadX220i
| Procesor: Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz |
|  Debian: sid   |   Arch: amd64   |   Sound: alsa   |
| No DE | WM: DWM  |  DM: .bash_profile  |  BIOS+MBR |

Offline

 

#5  2012-09-08 15:20:00

  Minio - Użyszkodnik

Minio
Użyszkodnik
Skąd: Poznań, Polska
Zarejestrowany: 2007-12-22
Serwis

Re: Kadu vs Audacious

P@blo: vim $(grep -l '/bin/sh' * |shuf -n 100 ) pokaże Ci więcej przykładów niż byś chciał ;) .
Generalnie umieszcza się tam:
- nazwę skryptu
- krótki opis działania (co ten skrypt robi? Dlaczego ktokolwiek miałby go potrzebować?)
- informację o autorze (IMIĘ "NICK" NAZWISKO <ADRES E-MAIL>)
- informację o licencji (warto, aby miała sens — np. GNU GPLv2 wymagała dostarczenia kopii tekstu licencji wraz z programem — wpisanie „GNU GPLv2” nie wystarczy)
- datę ostatniej modyfikacji (przy większych projektach warto tę informację oddelegować na używany system kontroli wersji)

Jeśli chodzi o konkretne przykłady: /usr/bin/lftpget (lftp), /usr/bin/xdg-desktop-menu (xdg-utils), /usr/bin/pnminterp-gen (netpbm). Możesz też spojrzeć na moje skrypty na GitHubie.

Offline

 

#6  2012-09-08 19:23:10

  P@blo - Nadworny matematyk

P@blo
Nadworny matematyk
Skąd: Wrocław v Jasło
Zarejestrowany: 2010-11-11

Re: Kadu vs Audacious

A może to od ciebie miałem ten skrypt?? ;) Tak czy inaczej wielkie dzięki :D


ThinkPadX220i
| Procesor: Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz |
|  Debian: sid   |   Arch: amd64   |   Sound: alsa   |
| No DE | WM: DWM  |  DM: .bash_profile  |  BIOS+MBR |

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)