This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
terminal:profanity [2021/05/24 02:28] nanodano |
terminal:profanity [2021/05/30 21:22] (current) nanodano |
||
---|---|---|---|
Line 4: | Line 4: | ||
Refer to the official user guide for more details: [[https:// | Refer to the official user guide for more details: [[https:// | ||
+ | |||
+ | ===== Video course ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | </ | ||
===== Installation ===== | ===== Installation ===== | ||
Line 34: | Line 42: | ||
* ''/ | * ''/ | ||
* ''/ | * ''/ | ||
+ | |||
+ | ===== Store password ===== | ||
+ | |||
+ | If you want to store your password in plain-text (not recommended!) run: | ||
+ | |||
+ | < | ||
+ | /account set nobody@devdungeon.com password ' | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # Install dependencies (if needed) | ||
+ | sudo apt install pass gpg | ||
+ | |||
+ | # Generate a private PGP key (if needed) | ||
+ | gpg --quick-generate-key nobody@devdungeon.com | ||
+ | |||
+ | # Initialize password database (utilizes PGP encryption) | ||
+ | # < | ||
+ | pass init < | ||
+ | # Add a password to the database (name however you want) | ||
+ | pass insert xmpp/ | ||
+ | </ | ||
+ | |||
+ | Then inside Profanity: | ||
+ | |||
+ | < | ||
+ | /account set nobody@devdungeon.com eval_password "pass xmpp/ | ||
+ | </ | ||
===== DevDungeon theme file ===== | ===== DevDungeon theme file ===== | ||
+ | |||
+ | The '' | ||
+ | In Profanity, load the theme with: ''/ | ||
+ | |||
+ | Theme template at [[https:// | ||
+ | |||
+ | Theme documentation at [[https:// | ||
<code | devdungeon> | <code | devdungeon> | ||
# ~/ | # ~/ | ||
+ | # Load it with: /theme load devdungeon | ||
+ | # Template: https:// | ||
[colours] | [colours] | ||
Line 46: | Line 91: | ||
titlebar.brackets=Cyan1 | titlebar.brackets=Cyan1 | ||
- | titlebar.unencrypted=Red1 | + | titlebar.unencrypted=yellow |
titlebar.encrypted=Grey93 | titlebar.encrypted=Grey93 | ||
- | titlebar.untrusted=Grey93 | + | titlebar.untrusted=bold_yellow |
titlebar.trusted=Grey93 | titlebar.trusted=Grey93 | ||
Line 64: | Line 109: | ||
statusbar.active=Grey70 | statusbar.active=Grey70 | ||
statusbar.current=Grey93 | statusbar.current=Grey93 | ||
- | statusbar.new=magenta | + | statusbar.new=Cyan1 |
# Shell input color | # Shell input color | ||
input.text=Grey93 | input.text=Grey93 | ||
Line 139: | Line 184: | ||
===== profrc file ===== | ===== profrc file ===== | ||
- | The '' | + | The '' |
<code | profrc> | <code | profrc> | ||
# ~/ | # ~/ | ||
+ | # Template: https:// | ||
[ui] | [ui] | ||
Line 148: | Line 194: | ||
[connection] | [connection] | ||
+ | defaccount=you@devdungeon.com | ||
account=you@devdungeon.com | account=you@devdungeon.com | ||
Line 159: | Line 206: | ||
nanodano=/ | nanodano=/ | ||
devdungeon=/ | devdungeon=/ | ||
+ | |||
+ | [logging] | ||
+ | chlog=true | ||
+ | grlog=true | ||
+ | maxsize=1048580 | ||
+ | rotate=true | ||
+ | shared=true | ||
+ | |||
+ | [otr] | ||
+ | warn=true | ||
+ | log=on | ||
+ | policy=manual | ||
+ | |||
+ | [presence] | ||
+ | autoaway.mode=away | ||
+ | autoaway.time=15 | ||
+ | autoaway.message=Away from computer | ||
+ | autoaway.check=true | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== PGP Encryption ===== | ||
+ | |||
+ | You need a private key for yourself and the public key of your recipient. If you need someone to send a message to, you can send me a message using my public key. You can get my public key from [[https:// | ||
+ | |||
+ | <code bash> | ||
+ | # Download/ | ||
+ | curl -O https:// | ||
+ | |||
+ | #or | ||
+ | |||
+ | # Fetch nanodano@devdungeon.com public key from a keyserver | ||
+ | gpg --keyserver pgp.mit.edu --recv A6D4E83A1866995E | ||
+ | gpg --keyserver hkps.pool.sks-keyservers.net --recv A6D4E83A1866995E | ||
+ | </ | ||
+ | |||
+ | In Profanity, configure which PGP key should be associated with your XMPP account and set the public key for your recipient: | ||
+ | |||
+ | < | ||
+ | # List keys in your store | ||
+ | /pgp keys | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # Set your private PGP key to your account | ||
+ | /account set < | ||
+ | # For example: | ||
+ | /account set me@devdungeon.com pgpkeyid AAAABBBBCCCCDDDD | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # Set recipient account public key | ||
+ | /pgp setkey nanodano@devdungeon.com A6D4E83A1866995E | ||
+ | </ | ||
+ | |||
+ | Start and end PGP-encrypted conversations with: | ||
+ | |||
+ | < | ||
+ | /pgp start nanodano@devdungeon.com | ||
+ | /pgp end | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== vi keybinds ===== | ||
+ | |||
+ | Profanity uses readline so it supports tab completion and all the same keybinds a shell does like CTRL-P and CTRL-W. You can also set it to use vi keybinds. Update your `~/ | ||
+ | |||
+ | |||
+ | <code | input.rc> | ||
+ | set editing-mode vi | ||
+ | </ | ||
+ |