SIXEL 対応のターミナル特化twitterクライアントのSAYAKA ちゃん. SIXELに対応しているmltermやXなしでもyaftの上では画像表示が可能
ホームタイムラインの表示
$ sayaka --home
キーワード検索.複数の検索キーワードは ,
区切りで繋げる.
$ sayaka --filter '#osc20on' $ sayaka --filter '#osc20on,オープンソースカンファレンス'
$ sayaka --progress --protect --support-evs --record ~/log/sayaka`date +s` --black '#osc20on'
SAYAKAでの投稿
$ echo 'SAYAKAからの投稿テスト📮'|sayaka --post Posted.
長時間起動していると切断される
sayaka: statuses/filter: Connection closed by peer
タイムアウトしてしまったら30秒待って再度起動
$ while [[ true ]];do sayaka --home; sleep 30; done
3.5.2 で自動再接続と –reconnect オプションが入ったので無限ループは必要なくなった :)
$ sayaka -h|grep -A1 -- --reconnect --reconnect <sec> : interval seconds before reconnection. 0 means no reconnection. (default: 5) $ sayaka --version sayaka version 3.5.2 (2021/07/22)
$ sudo apt install valac libglib2.0-dev freebsd-glue libgdk-pixbuf2.0-dev libjpeg62-turbo-dev $ git clone https://github.com/isaki68k/sayaka $ cd sayaka
vala/Makefileを修正
$ vi vala/Makefile $ git diff vala/Makefile diff --git a/vala/Makefile b/vala/Makefile index 4b036d0..aa90475 100644 --- a/vala/Makefile +++ b/vala/Makefile @@ -80,7 +80,7 @@ PKGS= \ gdk-pixbuf-2.0 \ # システムヘッダより先にバンドル版の mbedTLS ヘッダを探さないといけない -CFLAGS= -I../mbedtls/include -I./ +CFLAGS= -I../mbedtls/include -I./ -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include LIBS_MBEDTLS= \ ../mbedtls/library/libmbedtls.a \ ../mbedtls/library/libmbedx509.a \
$ make $ install ./vala/sayaka ~/bin/ $ sayaka --version sayaka.vala 3.4.3 (2020/02/15)
error
make[1]: valac: Command not found
$ sudo apt install valac
objdir/Diag.c:32:10: fatal error: glib.h: No such file or directory
diff --git a/vala/Makefile b/vala/Makefile index 4b036d0..aa90475 100644 --- a/vala/Makefile +++ b/vala/Makefile @@ -80,7 +80,7 @@ PKGS= \ gdk-pixbuf-2.0 \ # システムヘッダより先にバンドル版の mbedTLS ヘッダを探さないといけない -CFLAGS= -I../mbedtls/include -I./ +CFLAGS= -I../mbedtls/include -I./ -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include LIBS_MBEDTLS= \ ../mbedtls/library/libmbedtls.a \ ../mbedtls/library/libmbedx509.a \
objdir/ImageReductor.c:9:10: fatal error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory
$ sudo apt install libgdk-pixbuf2.0-dev
imagereductor.native.c:30:10: fatal error: jpeglib.h: No such file or directory
$ sudo apt install libjpeg62-turbo-dev
$ lsb_release -dr Description: Debian GNU/Linux 10 (buster) Release: 10 $ uname -m aarch64
画像をAA化して表示することが可能
初回起動時には認証が走る.
1. Visit, in your browser, ALL ON ONE LINE,
で表示されたURLをウェブブラウザで開いて表示されたPINを Enter PIN>
に入力する
認証情報は ~/.oysttyerkey
に保存される.
$ oysttyer -- using SSL for default URLs. trying to find cURL ... /usr/bin/curl -- Streaming API disabled (no -dostream) (oysttyer will use REST API only) -- no version check performed (use /vcheck, or -vcheck to check on startup) +------------------------------------------------------------------------------+ || WELCOME TO oysttyer: Authorize oysttyer by signing into Twitter with OAuth || +------------------------------------------------------------------------------+ Looks like you're starting oysttyer for the first time, and/or creating a keyfile. Welcome to the most user-hostile, highly obfuscated, spaghetti code infested and obscenely obscure Twitter client that's out there. You'll love it. oysttyer generates a keyfile that contains credentials for you, including your access tokens. This needs to be done JUST ONCE. You can take this keyfile with you to other systems. If you revoke oysttyer's access, you must remove the keyfile and start again with a new token. You need to do this once per account you use with oysttyer; only one account token can be stored per keyfile. If you have multiple accounts, use -keyf=... to specify different keyfiles. KEEP THESE FILES SECRET. ** This wizard will overwrite /home/matoken/.oysttyerkey Press RETURN/ENTER to continue or CTRL-C NOW! to abort. Request from https://api.twitter.com/oauth/request_token ... SUCCEEDED! 1. Visit, in your browser, ALL ON ONE LINE, https://api.twitter.com/oauth/authorize?oauth_token=TDquSAAAAAAAixnPAAABdmapmPc 2. If you are not already signed in, fill in your username and password. 3. Verify that oysttyer is the requesting application, and that its permissions are as you expect (read your timeline, see who you follow and follow new people, update your profile, post tweets on your behalf and access your direct messages). IF THIS IS NOT CORRECT, PRESS CTRL-C NOW! 4. Click Authorize app. 5. A PIN will appear. Enter it below. Enter PIN> 1448172 Request from https://api.twitter.com/oauth/access_token ... SUCCEEDED! Written keyfile /home/matoken/.oysttyerkey Now, restart oysttyer to use this keyfile. (To choose between multiple keyfiles other than the default .oysttyerkey, tell oysttyer where the key is using -keyf=... .)
$ oysttyer -- using SSL for default URLs. trying to find cURL ... /usr/bin/curl -- Streaming API disabled (no -dostream) (oysttyer will use REST API only) -- no version check performed (use /vcheck, or -vcheck to check on startup) (checking credentials) test-login SUCCEEDED! -- processing credentials: logged in as matoken1 ###################################################### +oo=========oo+ oysttyer 2.10.0 (c)2017 oysttyer organisation (c)2007-2012 cameron kaiser all rights reserved. .#*^#=. https://oysttyer.github.io/ %'.,`.#` ;',. ./#` freeware under the floodgap free software license. ({.`,` #/ http://www.floodgap.com/software/ffsl/ `& ,` %,~=*'"*=~=-., \`=_/'.`` - `'. *\. tweet us http://twitter.com/oysttyer (%. - - Ë -. `& `&` ~ @ . # ###################################################### `\`. ` .....Ë %' # `^~._.,,,.-+=~*' # when ready, hit RETURN/ENTER for a prompt. # type /help for commands or /quit to quit. # starting background monitoring process. # /.\ | ||_ |_ |_ | | /_\|'` # \_/ \_| _|'|_'|_ \_| \_ | # | | oysttyer> -- rate limit rate failure: using 180 second fallback
help
oysttyer> /help [1 of 5] *** BASIC COMMANDS: :a$AAOOOOOOOOOOOOOOOOOAA$a, ================== +@A:. .:B@+ ANYTHING WITHOUT /refresh =@B HELP!!! HELP!!! B@= A LEADING / IS grabs the newest :a$Ao oA$a, SENT AS A TWEET! tweets right ;AAA$a; :a$AAAAAAAAAAA; ================== away (or tells :AOaaao:, .:oA*:. JUST TYPE TO TALK! you if there .;=$$$OBO***+ .+aaaa$: is nothing new) :*; :***O@Aaaa*o, ============ by thumping .+++++: o#o REMEMBER!! the background :OOOOOOA*:::, =@o ,:::::. ============ process. .+++++++++: =@*.....=a$OOOB#; MANY COMMANDS, AND =@OoO@BAAA#@$o, ALL TWEETS ARE /again =@o .+aaaaa: --ASYNCHRONOUS-- displays most recent =@Aaaaaaaaaa*o*a;, and might not always tweets, both old and =@$++=++++++:,;+aA: respond new. ,+$@*.=O+ ...oO; oAo+. immediately! ,+o$OO=.+aA#####Oa;.*OO$o+. /dm and /dmagain for DMs. +Ba::;oaa*$Aa=aA$*aa=;::$B: ,===O@BOOOOOOOOO#@$===, /replies o@BOOOOOOOOO#@+ ================== shows replies and mentions. o@BOB@B$B@BO#@+ USE + FOR A COUNT: o@*.a@o a@o.$@+ /re +30 => last 30 replies /quit resumes your boring life. o@B$B@o a@A$#@+ ==========================
コメント