Added doc strings with theme examples
This commit is contained in:
10
pid/pid.c
10
pid/pid.c
@@ -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 <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
"""
|
||||||
|
Shows platform details in the console
|
||||||
|
|
||||||
|
Theme items in ~/.local/share/profanity/plugin_themes
|
||||||
|
|
||||||
|
[platform]
|
||||||
|
line=cyan
|
||||||
|
"""
|
||||||
|
|
||||||
import prof
|
import prof
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
|||||||
10
syscmd.py
10
syscmd.py
@@ -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 prof
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user