{"id":1161,"date":"2018-10-22T17:06:40","date_gmt":"2018-10-22T17:06:40","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=1161"},"modified":"2018-10-23T00:26:52","modified_gmt":"2018-10-23T00:26:52","slug":"slack-for-the-cli-sclack-the-ultimate-linux-newbie-guide","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/22\/slack-for-the-cli-sclack-the-ultimate-linux-newbie-guide\/","title":{"rendered":"Slack for the CLI &#8211; Sclack \u2014 The Ultimate Linux Newbie Guide"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i2.wp.com\/linuxnewbieguide.org\/wp-content\/uploads\/2018\/10\/Slack_Icon.png?fit=256%2C256&amp;ssl=1\" alt=\"The Slack Instant Messenger icon\" width=\"256\" height=\"256\" \/><\/p>\n<p>At work, I\u2019m always working at the Terminal. I have my email (mutt), a few bash terminals for looking after servers and cutting some code, my Facebook messenger (<a href=\"http:\/\/messer\">see messer<\/a>) and my workplace instant messenger of choice, Slack. I combine all of this in tmux, so I can switch workstreams in a keypress or two. No moving those hands off the keyboard. The rodent stays idle.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i2.wp.com\/linuxnewbieguide.org\/wp-content\/uploads\/2018\/10\/sclack-example.png?w=895\" alt=\"sclack-example\" \/><\/p>\n<p>If you\u2019ve not already heard of Slack, it is quickly becoming one of he most popular instant messaging platforms for workplaces. It integrates with many tools that are commonplace in technology companies, and it is easy to use.<\/p>\n<p>I have tried a number of Terminal based Slack clients, and for various reasons, they\u2019ve always been ditched in favour of the official Linux Slack client, or the website version. They just didn\u2019t work great. Sclack is different, it uses keybindings I\u2019m used to (in my case ViM keybindings), it\u2019s colourful and it even supports giphy! (well, kind of!).<\/p>\n<p>To install Sclack, you\u2019re going to need to have Python 3 &amp; pip3 installed on your machine if you don\u2019t already have it:<\/p>\n<p>sudo apt install python3-pip<\/p>\n<p>Once you have pip3, simply run the following commands:<\/p>\n<p>git clone https:\/\/github.com\/haskellcamargo\/sclack.git<br \/>\ncd sclack<br \/>\npip3 install -r requirements.txt<br \/>\nchmod +x .\/app.py<br \/>\n.\/app.py<\/p>\n<p>Run .\/app.py after giving the correct permissions (chmod 755 app.py for example). If you don\u2019t have a ~\/.sclack file, you can <a href=\"https:\/\/api.slack.com\/custom-integrations\/legacy-tokens\">generate one<\/a> by providing your workspace token. You can change the theme, enable or disable images, emojis, markdown, configure keyboards and everything else in the config.jsonfile.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i1.wp.com\/linuxnewbieguide.org\/wp-content\/uploads\/2018\/10\/sclack-example_8.png?w=895\" alt=\"\" \/>Sclack looks lovely, works the way I want, and does pretty much everything you need from a Slack client!<\/p>\n<p>You can check out the author\u2019s github website here: <a href=\"https:\/\/github.com\/haskellcamargo\/sclack\">https:\/\/github.com\/haskellcamargo\/sclack<\/a><\/p>\n<p><a href=\"https:\/\/linuxnewbieguide.org\/slack-for-the-cli-sclack\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>At work, I\u2019m always working at the Terminal. I have my email (mutt), a few bash terminals for looking after servers and cutting some code, my Facebook messenger (see messer) and my workplace instant messenger of choice, Slack. I combine all of this in tmux, so I can switch workstreams in a keypress or two. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/22\/slack-for-the-cli-sclack-the-ultimate-linux-newbie-guide\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Slack for the CLI &#8211; Sclack \u2014 The Ultimate Linux Newbie Guide&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1161","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=1161"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1161\/revisions"}],"predecessor-version":[{"id":1282,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1161\/revisions\/1282"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=1161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=1161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=1161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}