diff options
author | Erich Eckner <git@eckner.net> | 2021-05-18 09:34:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-05-18 09:34:58 +0200 |
commit | 7d930aff06a84264df421c3c32e9b0eadab20ca4 (patch) | |
tree | 2db85f0163ff1ecb5332f104509bf683725db259 /slack-term | |
parent | c5b427ba90669c9c1e8d1a8d92590f44e0a2ad3d (diff) | |
download | archlinuxewe-7d930aff06a84264df421c3c32e9b0eadab20ca4.tar.xz |
slack-term neu
Diffstat (limited to 'slack-term')
-rw-r--r-- | slack-term/PKGBUILD | 46 | ||||
-rw-r--r-- | slack-term/slack-term.json | 76 |
2 files changed, 122 insertions, 0 deletions
diff --git a/slack-term/PKGBUILD b/slack-term/PKGBUILD new file mode 100644 index 000000000..262924546 --- /dev/null +++ b/slack-term/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Yigit Dallilar <yigit.dallilar@gmail.com> +# Prev. Maintainer: orumin <dev at orum.in> + +pkgname=slack-term +pkgver=0.5.0 +pkgrel=1 +pkgdesc="Slack client for your terminal" +arch=('i686' 'pentium4' 'x86_64') +url="https://github.com/erroneousboat/slack-term" +source=("slack-term-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" + "slack-term.json") +noextract=("slack-term-${pkgver}.tar.gz") +license=('MIT') +conflicts=('slack-term-bin') +options=() +makedepends=("go") +md5sums=('77c64a2aac37d65cbcfe2cecab043b9f' + '9cdd35c2d48f6d899333ab3721a6464b') + + +build() { + + export GOPATH=$(pwd) + reldir=src/github.com/erroneousboat + + mkdir -p ${srcdir}/${reldir} + ln -s $(pwd)/slack-term-${pkgver}.tar.gz ${srcdir}/${reldir} + cd ${srcdir}/${reldir} + tar zxvf slack-term-${pkgver}.tar.gz + mv slack-term-${pkgver} slack-term + cd slack-term + make build-linux + +} + +package() { + + reldir=src/github.com/erroneousboat + + install -Dm755 ${srcdir}/${reldir}/slack-term/bin/slack-term-linux-amd64 ${pkgdir}/usr/bin/slack-term + install -Dm644 ${srcdir}/${reldir}/slack-term/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + install -Dm644 slack-term.json ${pkgdir}/etc/slack-term.json + +} + +# vim:set ts=4 sw=4 et: diff --git a/slack-term/slack-term.json b/slack-term/slack-term.json new file mode 100644 index 000000000..e39b1271a --- /dev/null +++ b/slack-term/slack-term.json @@ -0,0 +1,76 @@ +{ + "slack_token": "yourslacktokenhere", + + // OPTIONAL: set the width of the sidebar (between 1 and 11), default is 1 + "sidebar_width": 1, + + // OPTIONAL: turn on desktop notifications for all incoming messages, set + // the value as: "all", and for only mentions and im messages set the + // value as: "mention", default is turned off: "" + "notify": "", + + // OPTIONAL: define custom key mappings, defaults are: + "key_map": { + "command": { + "i": "mode-insert", + "/": "mode-search", + "k": "channel-up", + "j": "channel-down", + "g": "channel-top", + "G": "channel-bottom", + "<previous>": "chat-up", + "C-b": "chat-up", + "C-u": "chat-up", + "<next>": "chat-down", + "C-f": "chat-down", + "C-d": "chat-down", + "n": "channel-search-next", + "N": "channel-search-previous", + "q": "quit", + "<f1>": "help" + }, + "insert": { + "<left>": "cursor-left", + "<right>": "cursor-right", + "<enter>": "send", + "<escape>": "mode-command", + "<backspace>": "backspace", + "C-8": "backspace", + "<delete>": "delete", + "<space>": "space" + }, + "search": { + "<left>": "cursor-left", + "<right>": "cursor-right", + "<escape>": "clear-input", + "<enter>": "clear-input", + "<backspace>": "backspace", + "C-8": "backspace", + "<delete>": "delete", + "<space>": "space" + } + }, + + // OPTIONAL: override the default theme (see wiki for more information), + // defaults are: + "theme": { + "view": { + "fg": "white", + "bg": "default", + "border_fg": "white", + "border_bg": "white", + "par_fg": "white", + "par_label_fg": "white" + }, + "channel": { + "prefix": "", + "icon": "", + "text": "" + }, + "message": { + "time": "", + "name": "", + "text": "" + } + } +} |