Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Sxivのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Sxiv
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:グラフィックとデスクトップパブリッシング]] [[en:Sxiv]] {{Lowercase title}} {{Related articles start}} {{Related|feh}} {{Related articles end}} [http://github.com/muennich/sxiv sxiv] (Simple [[X]] Image Viewer) は C で書かれている軽量でスクリプト可能な画像ビューアです。 == インストール == [[公式リポジトリ]]の {{Pkg|sxiv}} を[[インストール]]してください。 == sxiv にキーボードショートカットを設定 == sxiv supports external key events. First you have to press {{ic|Ctrl-x}} to send the next key to the external key-handler. The external key-handler requires an executable file {{ic|~/.config/sxiv/exec/key-handler}} and passes the key combination pressed as well the name of the current image as arguments. In this example, we will add the bindings {{ic|Ctrl+d}} to execute {{ic|mv ''filename'' ~/.trash}}, {{ic|Ctrl+c}} to copy the current image's name to the clipboard with {{Pkg|xclip}}, and {{ic|Ctrl+w}} to set the current wallpaper with [[nitrogen]]. {{hc|~/.config/sxiv/exec/key-handler|<nowiki> #!/bin/sh case "$1" in "C-d") mv "$2" ~/.trash ;; "C-r") convert -rotate 90 "$2" "$2" ;; "C-c") echo -n "$2" | xclip -selection clipboard ;; "C-w") nitrogen --save --set-zoom-fill "$2" ;; esac </nowiki>}} Be sure to mark the script as executable $ chmod +x ~/.config/sxiv/exec/key-handler Create {{ic|.trash}} folder if it does not exist: $ mkdir ~/.trash {{Tip|You may want to use a [http://freedesktop.org/wiki/Specifications/trash-spec/ standards-compliant trashcan] (like {{AUR|trash-cli}} or {{AUR|bashtrash}}) rather than {{ic|mv "$2" ~/.trash}}.}} == Tips and tricks == === ファイルを開いた後にディレクトリの画像をブラウズ === Place [http://git.savannah.gnu.org/cgit/ranger.git/tree/doc/examples/rifle_sxiv.sh this script] in {{ic|/usr/local/bin}} and call it like this: $ ''scriptname'' a_single_image.jpg Alternatively you can also install the script as a package from the AUR: {{AUR|sxiv-rifle}}. As indicated in the comments of the script, it may be used to have this behavior when opening images from within [[ranger]]. === ステータスバーに画像サイズを表示 === Place the following executable script in {{ic|~/.config/sxiv/exec/image-info}} and make sure that you have the {{Pkg|exiv2}} package installed: {{hc|~/.config/sxiv/exec/image-info|<nowiki> #!/bin/sh # Example for ~/.config/sxiv/exec/image-info # Called by sxiv(1) whenever an image gets loaded, # with the name of the image file as its first argument. # The output is displayed in sxiv's status bar. s=" | " # field separator filename=$(basename "$1") filesize=$(du -Hh "$1" | cut -f 1) geometry=$(identify -format '%wx%h' "$1[0]") tags=$(exiv2 -q pr -pi "$1" | awk '$1~"Keywords" { printf("%s,", $4); }') tags=${tags%,} echo "${filesize}${s}${geometry}${tags:+$s}${tags}${s}${filename}" </nowiki>}} == 参照 == * Arch Linux [https://bbs.archlinux.org/viewtopic.php?id=112643 forum thread].
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Lowercase title
(
ソースを閲覧
)
テンプレート:META Related articles start
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Related
(
ソースを閲覧
)
テンプレート:Related articles end
(
ソースを閲覧
)
テンプレート:Related articles start
(
ソースを閲覧
)
テンプレート:Tip
(
ソースを閲覧
)
Sxiv
に戻る。
検索
検索
Sxivのソースを表示
話題を追加