Yakuake
関連記事
Yakuake は KDE のトップダウン型ターミナルです (GNOME の Guake や Tilda、Quake で使われているターミナルと同じスタイル)。
インストール
公式リポジトリの yakuake をインストールしてください。
使用方法
インストールしたら、ターミナルから次のコマンドを実行することで Yakuake を起動できます:
$ yakuake
After yakuake has started you can click on configure yakuake by clicking on the "Open Menu" button (middle button on the bottom right hand side of the interface) and select "Configure Shortcuts" to change the hotkey to drop/retract the terminal automatically, by default it is set to F12.
Yakuake スクリプト
Like Guake, Yakuake allows to control itself at runtime by sending the D-Bus messages. Thus it can be used to start Yakuake in a user defined session. You can create tabs, assign names for them and also ask to run any specific command in any opened tab or just to show/hide Yakuake window, manually in a terminal or by creating a custom script for it.
Example of such a script is given below.
#!/bin/bash # Starting yakuake based on user preferences. Information based on http://forums.gentoo.org/viewtopic-t-873915-start-0.html # Adding sessions from previous website is broken, use this: http://pawelkoston.pl/blog/sublime-text-3-cheatsheet-modules-web-develpment/ # This line is needed in case yakuake does not accept fcitx inputs. /usr/bin/yakuake --im /usr/bin/fcitx --inputstyle onthespot # Start iotop in its own tab. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession qdbus org.kde.yakuake /yakuake/tabs setTabTitle 0 "iotop" qdbus org.kde.yakuake /yakuake/sessions runCommandInTerminal 0 "iotop" # Start htop in its own tab. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession qdbus org.kde.yakuake /yakuake/tabs setTabTitle 1 "htop" qdbus org.kde.yakuake /yakuake/sessions runCommandInTerminal 1 "htop" # Start atop in its own tab. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession qdbus org.kde.yakuake /yakuake/tabs setTabTitle 2 "atop" qdbus org.kde.yakuake /yakuake/sessions runCommandInTerminal 2 "atop" # Start (watching) iptables in its own tab. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession qdbus org.kde.yakuake /yakuake/tabs setTabTitle 3 "iptables -nvL" qdbus org.kde.yakuake /yakuake/sessions runCommandInTerminal 3 "~/.iptables.sh" # Start journalctl --follow --full in its own tab. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession qdbus org.kde.yakuake /yakuake/tabs setTabTitle 4 "journalctl" qdbus org.kde.yakuake /yakuake/sessions runCommandInTerminal 4 "journalctl --follow --full" # Start irssi in its own tab. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession qdbus org.kde.yakuake /yakuake/tabs setTabTitle 5 "irssi" qdbus org.kde.yakuake /yakuake/sessions runCommandInTerminal 5 "irssi" # Start root shell 1 in its own tab. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession qdbus org.kde.yakuake /yakuake/tabs setTabTitle 6 "rootshell0" qdbus org.kde.yakuake /yakuake/sessions runCommandInTerminal 6 "sudo -i" # Start root shell 2 in its own tab. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession qdbus org.kde.yakuake /yakuake/tabs setTabTitle 7 "rootshell1" qdbus org.kde.yakuake /yakuake/sessions runCommandInTerminal 7 "sudo -i" # Start shell 1 in its own tab. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession qdbus org.kde.yakuake /yakuake/tabs setTabTitle 8 "shell0" # Start shell 2 in its own tab. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession qdbus org.kde.yakuake /yakuake/tabs setTabTitle 9 "shell1" # Kill default (and now redundant) new shell tab. Already there are two shells each opened for both root and user. qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.removeSession 10
qdbus の代わりに dbus-send を使う
You can replace qdbus bundled with Qt with more common dbus-send. For example, to show/hide Yakuake:
$ dbus-send --type=method_call --dest=org.kde.yakuake /yakuake/window org.kde.yakuake.toggleWindowState