「アイコン」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(ページの作成:「Category:X サーバー en:Icons {{Related articles start}} {{Related|カーソルテーマ}} {{Related|Xfce}} {{Related articles end}} freedesktop.org プロジ...」)
 
12行目: 12行目:
 
=== アイコンとエンブレム ===
 
=== アイコンとエンブレム ===
   
  +
既存のアイコンテーマへカスタムアイコンを加えるために {{ic|xdg-icon-resource}} が使えます。これはアイコンをリサイズして {{ic|$HOME/.local/share/icons/}} へコピーします。この方法でカスタムエンブレムも加えることができます。例:
To append a custom icon to an existing icon theme {{ic|xdg-icon-resource}} can be used. This will resize and copy the icon to {{ic|$HOME/.local/share/icons/}}. With this method, custom emblems can also be added. Examples:
 
   
 
$ xdg-icon-resource install --size 128 --context emblems archuser-example.png # add as emblem
 
$ xdg-icon-resource install --size 128 --context emblems archuser-example.png # add as emblem

2015年9月30日 (水) 02:12時点における版

関連記事

freedesktop.org プロジェクトは Icon Theme Specification を提供しており、ほとんどの Linux デスクトップ環境でアイコンテーマのアイコンが統一されるようになっています。また、freedesktop.org は Icon Naming Specification も提供しており、システムにインストールされたアイコンを確かめるための標準の命名規則を定めています。デフォルトのテーマ hicolor には全てが含まれています。

インストール

アイコンとエンブレム

既存のアイコンテーマへカスタムアイコンを加えるために xdg-icon-resource が使えます。これはアイコンをリサイズして $HOME/.local/share/icons/ へコピーします。この方法でカスタムエンブレムも加えることができます。例:

$ xdg-icon-resource install --size 128 --context emblems archuser-example.png # add as emblem
$ xdg-icon-resource install --size 128 archuser-example.png # add as normal icon

Mime タイプアイコン

Todays file managers do not rely on the traditional mime type which file --mime outputs. Instead definitions from /usr/share/mime/ are used. Calling an icon according to the definition found there and copying it to ~/.local/share/icons will cause the file manager to display the custom mime type icon. This command illustrates the method:

Creates a custom icon for keepass database files (*.kdb)
# grep kdb /usr/share/mime/globs | egrep -o '.+\/[^:]+' | tr '/' '-'
application-x-keepass ;# rename your icon according to this output
xdg-icon-resource install --size 128 --context mimetypes application-x-keepass.png

アイコンテーマ

ヒント: It is recommended to install the hicolor-icon-theme package as many programs will deposit their icons in /usr/share/icons/hicolor and most other icon themes will inherit icons from the Hicolor icon theme.

パッケージ

手動

使用したいアイコンテーマのパッケージが見つけられない場合、手動でインストールする必要があります。

  • まず、使いたいアイコンパックをダウンロードしてください。次のサイトから様々なアイコンテーマをダウンロードできます: Customize.org, Opendesktop.org, Xfce-look.org
  • アイコンパックをダウンロードしたディレクトリまで移動して展開してください。例: tar -xzf /home/user/downloads/icon-pack.tar.gz
  • 展開したフォルダを ~/.icons~/.local/share/icons (ユーザー個別) または /usr/share/icons (システム全体) に移動してください。
  • 任意: gtk-update-icon-cache -f -t ~/.icons/<theme_name> を実行してアイコンのキャッシュを更新。

fstab / gvfs

According to this document file managers using GVFS (like nautilus or thunar) can display icons for custom locations, like NFS shares. All you need are some extended mount options inside /etc/fstab with icon names supported by your selected icon theme:

/etc/fstab
hostname:/ /mnt/ nfs4 defaults,_netdev,user,rw,exec,comment=x-gvfs-show,x-gvfs-name=Network%20Attached%20Storage,x-gvfs-icon=network-server,x-gvfs-symbolic-icon=network-server,timeo=14,noatime 0 0

Xfce アイコン

Xfce 環境で使用されるアイコンの完全なセットを提供していないアイコンテーマも存在します。以下は Xfce に対応しているアイコンテーマのリストです。

  • faenza-icon-themefaience-icon-theme (faenza に依存)
  • rave-x-colorsAUR - Faenza ベースのアイコンテーマ。フルカラーフォルダとダークパネルをサポート。
  • vibrancy-colorsAUR - フラットで、近代的なアイコンテーマ。フルカラーフォルダとダークパネルをサポート。
  • gnome-colors-icon-themeAUR - GNOME のアイコンテーマに似ているアイコンセット。Xfce をサポート。
  • echo-icon-theme-gitAUR - Fedora の以前のデフォルトアイコンテーマ。git バージョン以外には Xfce アイコンの全ては含まれていません
  • gnome-icon-theme-xfceAUR - GNOME アイコンテーマに欠けているアイコンを追加するパッケージ。
  • elementary-xfce-iconsAUR - 上流からフォークして Xfce 用に拡張された Elementary アイコン。