Unity (Ubuntu Natty) の便利な機能の 1 つは、ランチャーのアプリケーション アイコンにクイックリストを追加することです。 たとえば、Google Chrome アイコンを右クリックしてシークレット ウィンドウを開くオプションにアクセスするか、Gmail アイコンを右クリックして [新しいメールを作成] オプションを選択します。 Windows のバックグラウンドを持つ人にとって、これは Windows 7 のタスクバー ジャンプリストに非常に似ています。
Unity クイックリストを追加するには?
Ubuntu は Unity ランチャー用の API を提供しており、構成ファイルを変更するだけで誰でも独自のクイックリストを作成できます。 現在、クイックリスト アイテムを簡単に追加する方法はありません。 以下は、クイックリスト アイテムを追加するために必要な手順の概要です。
- デスクトップ構成ファイルをホーム フォルダーにコピーします。
- デスクトップ構成ファイルを gedit で開きます。
- クイックリスト コードをファイルに追加します。 構文は次のとおりです。
#adapted from Ubuntu wiki. Example is for gnome-screenshot X-Ayatana-Desktop-Shortcuts=Screen;Window [ Screen Shortcut Group ] Name =Take a screenshot of the whole screen Exec =gnome-screenshot TargetEnvironment =Unity [ Window Shortcut Group ] Name =Take a screenshot of the current window Exec =gnome-screenshot -w TargetEnvironment =Unity
のX-Ayatana-デスクトップのショートカットコードは、アプリのアイコンを右クリックしたときに表示されるエントリを指します。 以下【XXXショートカットグループ】各エントリのアクションです。
最も便利な Unity クイックリストの一部
1. プライベート/セーフ モード、プロファイル マネージャー、および頻繁にアクセスするサイトを Firefox アイコンに追加します。
Firefox デスクトップ構成ファイルをホーム フォルダーにコピーします。
sudo cp / usr / share / applications / firefox.desktop ~ / .local / share / applications
gedit でファイルを開きます。
gedit ~ / .local / share / applications / firefox.desktop
ラインを交換する
X-Ayatana-Desktop-Shortcuts=NewWindow;
と
X-Ayatana-Desktop-Shortcuts=NewWindow;Private;Safe;ProfileManager;MakeTechEasier
#feel free to change the name of your frequently accessed site
次に、ファイルの末尾に次のコードを追加します。
[ Private Shortcut Group ] Name =Private Mode Exec =firefox -private-toggle TargetEnvironment =Unity [ Safe Shortcut Group ] Name =Safe Mode Exec =firefox -safe-mode TargetEnvironment =Unity [ ProfileManager Shortcut Group ] Name =Start Profile Manager Exec =firefox -ProfileManager TargetEnvironment =Unity [ MakeTechEasier Shortcut Group ] Name =Launch MakeTechEasier Exec =firefox "maketecheasier.com" TargetEnvironment =Unity
ファイルを保存して閉じます。 最後に Unity を再起動します
unity
--replace
2. Google Chrome に新しいウィンドウとシークレット モードを追加する
これは、Ubuntu に Google Chrome がインストールされていることを前提としています。

次のコマンドを実行します。
sudo cp / usr / share / applications / google-chrome.desktop ~ / .local / share / applications gedit ~ / .local / share / applications / google-chrome.desktop
ファイルの末尾に次のコードを追加します。
X-Ayatana-Desktop-Shortcuts=NewWindow;Incognito [ NewWindow Shortcut Group ] Name =Open New Window Exec =google-chrome TargetEnvironment =Unity [ Incognito Shortcut Group ] Name =Incognito Mode Exec =google-chrome --incognito TargetEnvironment =Unity
ファイルを保存して閉じます。 Unity を再起動する
unity
--replace
3.お気に入りとブックマークをホームフォルダーに追加する
これにより、ランチャーからさまざまなフォルダーに直接アクセスできます。

次のコマンドを実行します。
sudo cp / usr / share / applications / nautilus-home.desktop ~ / .local / share / applications gedit ~ / .local / share / applications / nautilus-home.desktop
ファイルを下にスクロールして、次の行を置き換えます。
OnlyShowIn
=GNOME;
と
OnlyShowIn
=GNOME;Unity;
ファイルの末尾に次のコードを追加します。
X-Ayatana-Desktop-Shortcuts=Videos;Documents;Music;Pictures;Downloads;Dropbox [ Videos Shortcut Group ] Name =Videos Exec =nautilus Videos TargetEnvironment =Unity [ Documents Shortcut Group ] Name =Documents Exec =nautilus Documents TargetEnvironment =Unity [ Music Shortcut Group ] Name =Music Exec =nautilus Music TargetEnvironment =Unity [ Pictures Shortcut Group ] Name =Pictures Exec =nautilus Pictures TargetEnvironment =Unity [ Downloads Shortcut Group ] Name =Downloads Exec =nautilus Downloads TargetEnvironment =Unity [ Dropbox Shortcut Group ] Name =Dropbox Exec =nautilus Dropbox TargetEnvironment =Unity
ファイルを保存して閉じます。 Unity を再起動する
unity
--replace
4. LibreOffice Start Center をより便利にする

次のコマンドを実行します。
sudo cp / usr / share / applications / libreoffice-startcenter.desktop ~ / .local / share / applications gedit ~ / .local / share / applications / libreoffice-startcenter.desktop
ファイルの末尾に次のコードを追加します。
X-Ayatana-Desktop-Shortcuts=Writer;Impress;Calc;Math;Draw [ Writer Shortcut Group ] Name =Writer Exec =libreoffice -writer % U TargetEnvironment =Unity [ Impress Shortcut Group ] Name =Impress Exec =libreoffice -impress % U TargetEnvironment =Unity [ Calc Shortcut Group ] Name =Calc Exec =libreoffice -calc % U TargetEnvironment =Unity [ Math Shortcut Group ] Name =Math Exec =libreoffice -math % U TargetEnvironment =Unity [ Draw Shortcut Group ] Name =Draw Exec =libreoffice -draw % U TargetEnvironment =Unity
ファイルを保存して閉じます。 Unity を再起動する
unity
--replace
5. ターミナルにカスタム コマンドを追加する
ターミナルは頻繁に使用するアプリケーションではありませんが、頻繁に使用する場合は、定期的に使用するコマンドが常にいくつかあります。 これらのコマンドをクイックリストに追加して、すばやくアクセスできます。

次のコマンドを実行します。
sudo cp / usr / share / applications / gnome-terminal.desktop ~ / .local / share / applications gedit ~ / .local / share / applications / gnome-terminal.desktop
ファイルを下にスクロールして、次の行を置き換えます。
OnlyShowIn
=GNOME;
と
OnlyShowIn
=GNOME;Unity;
次に、ファイルの末尾に次のコードを追加します。
X-Ayatana-Desktop-Shortcuts=UpdateUpgrade;XamppStart;XamppStop; [ UpdateUpgrade Shortcut Group ] Name =Update and Upgrade System Exec =gnome-terminal --command "sudo apt-get update && sudo apt-get upgrade" TargetEnvironment =Unity [ XamppStart Shortcut Group ] Name =Xampp Start Exec =gnome-terminal --command "sudo /opt/lampp/lampp start" TargetEnvironment =Unity [ XamppStop Shortcut Group ] Name =Xampp Stop Exec =gnome-terminal --command "sudo /opt/lampp/lampp stop" TargetEnvironment =Unity
ファイルを保存して閉じます。 Unity を再起動する
unity
--replace
6. Google サービス センターを作成する
私と同じように Google のサービスをよく利用している場合、これは非常に便利です。

テキスト エディターを開き、次のコードをコピーして貼り付けます。
[ Desktop Entry ] Version = 1.0 Name =Google Services Exec = / opt / google / chrome / google-chrome Icon = / filepath / to / google-icon.png #change this filepath to the actual icon filepath Terminal = false Type =Application Categories =Network;WebBrowser; X-Ayatana-Desktop-Shortcuts=Gmail;Contacts;Calendar;Docs;Reader; [ Gmail Shortcut Group ] Name =Gmail Exec =xdg-open https: // gmail.com TargetEnvironment =Unity [ Contacts Shortcut Group ] Name =Gmail Contacts Exec =xdg-open https: // www.google.com / contacts TargetEnvironment =Unity [ Calendar Shortcut Group ] Name =Google Calendar Exec =xdg-open https: // calendar.google.com TargetEnvironment =Unity [ Docs Shortcut Group ] Name =Google Docs Exec =xdg-open https: // docs.google.com TargetEnvironment =Unity [ Reader Shortcut Group ] Name =Google Reader Exec =xdg-open https: // google.com / reader TargetEnvironment =Unity
アイコン ファイルのパスを変更することを忘れないでください (ここで使用した Google アイコンをダウンロードします.) 上記のコードは Google Chrome を使用しています。 Firefox またはお気に入りのブラウザーを使用するように変更できます。
「/home/username/.local/share/applications フォルダ」フォルダに「google-services.desktop」という名前でファイルを保存します。
次に、このファイルをランチャーにドラッグします。
7. Google ショートカットを追加する
Google サービスにアクセスする代わりに、新しいメールの作成、カレンダーの追加、新しいドキュメントを開くなど、Google のさまざまなタスクにすばやくアクセスしたい場合は、次のようにします。

テキスト エディターを開き、次のコードをコピーして貼り付けます。
[ Desktop Entry ] Version = 1.0 Name =Google Shortcuts Exec = / opt / google / chrome / google-chrome Icon = / filepath / to / google-icon.png #change this filepath to the actual icon filepath Terminal = false Type =Application Categories =Network;WebBrowser; X-Ayatana-Desktop-Shortcuts=Gmail;Calendar;Docs;Spreadsheet;Presentation; [ Gmail Shortcut Group ] Name =Compose New Mail Exec =xdg-open https: // mail.google.com / mail / ? shva = 1 #compose TargetEnvironment =Unity [ Calendar Shortcut Group ] Name =Create New Event Exec =xdg-open https: // www.google.com / calendar / event? action =TEMPLATE TargetEnvironment =Unity [ Docs Shortcut Group ] Name =Create New Document Exec =xdg-open https: // docs.google.com / document / create? hl =en TargetEnvironment =Unity [ Spreadsheet Shortcut Group ] Name =Create New Spreadsheet Exec =xdg-open https: // spreadsheets.google.com / ccc?new & hl =en TargetEnvironment =Unity [ Presentation Shortcut Group ] Name =Create New Presentation Exec =xdg-open https: // docs.google.com / present / create? hl =en TargetEnvironment =Unity
アイコンファイルのパスを忘れずに変更してください。
「google-shortcuts.desktop」という名前のファイルを「/home/username/.local/share/applications フォルダー」フォルダーに保存します。
次に、このファイルをランチャーにドラッグします。
8. Ubuntu Software Center で PPA をクイック追加
PPA を追加する通常の方法はターミナル経由ですが、これはより効率的な方法です。

次のコマンドを実行します。
sudo cp / usr / share / applications / ubuntu-software-center.desktop ~ / .local / share / applications gedit ~ / .local / share / applications / ubuntu-software-center.desktop
ファイルの末尾に次のコードを追加します。
X-Ayatana-Desktop-Shortcuts=SoftwareProperties;SoftwareSources; [ SoftwareProperties Shortcut Group ] Name =Update Manager Exec =update-manager -c % u TargetEnvironment =Unity [ SoftwareSources Shortcut Group ] Name =Add / Edit PPAs Exec =gksu software-properties-gtk TargetEnvironment =Unity
ファイルを保存して閉じます。 Unity を再起動する
unity
--replace
上記は、Unity クイックリストでできることのほんの一部です。 チェックアウトもできます質問Ubuntuその他のクイックリストについては。
ノート: クイックリスト コードを追加した後にシステムに問題が発生した場合は、/home/username/.local/share/applications フォルダーからそれぞれの .desktop ファイルを削除し、unity を再起動することで、システムを簡単に復元できます。
ニュースレターを購読する!
最新のチュートリアルが受信トレイに直接配信されます
すべてのニュースレターにサインアップしてください。
サインアップすることにより、あなたは当社のプライバシー ポリシーに同意し、ヨーロッパのユーザーはデータ転送ポリシーに同意したことになります。 お客様のデータを共有することはありません。いつでも購読を解除できます。
購読