Added doc strings with theme examples

This commit is contained in:
James Booth
2016-03-16 21:41:17 +00:00
parent c0e425367e
commit 189e63c128
4 changed files with 38 additions and 0 deletions

View File

@@ -1,3 +1,13 @@
/*
Simple plugin to display the PID of the Profanity process and its parent
Theme example in ~/.local/share/profanity/plugin_themes
[pid]
self=bold_white
parent=white
*/
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

View File

@@ -1,3 +1,12 @@
"""
Shows platform details in the console
Theme items in ~/.local/share/profanity/plugin_themes
[platform]
line=cyan
"""
import prof
import platform

View File

@@ -1,3 +1,13 @@
"""
Allow running system commands in a plugin window, or send result to recipient
Theme options in ~/.local/share/profanity/plugin_themes
[system]
command=magenta
result=green
"""
import prof
import subprocess

View File

@@ -1,3 +1,12 @@
"""
Calls the 'whoami' command
Theme in ~/.local/share/profanity/plugin_themes
[whoami]
result=bold_magenta
"""
import prof
import getpass