Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some plugins #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ fi
echo "Installing updates..."
apt update -y
apt install -y git gjs

apt install -y ppa-purge
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you develop on why it is needed when installing the app itself?


echo "Installing elementaryPIT..."
cd /tmp/
git clone https://github.com/monsieurh/elementaryPIT
cd elementaryPIT/
make install
gjs app.js
4 changes: 4 additions & 0 deletions plugins/atom.plugin/atom.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
add-apt-repository -y ppa:webupd8team/atom
apt-get -y update
apt-get -y install atom
22 changes: 22 additions & 0 deletions plugins/atom.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "atom",
"label": "Atom",
"description": "Atom text editor",
"license": "Free",
"category": "Programming",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s atom.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root ppa-purge -y ppa:webupd8team/atom"
},
"status": {
"command": "dpkg -s atom"
}
}
}


22 changes: 22 additions & 0 deletions plugins/docker.plugin/docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
apt-get install apt-transport-https ca-certificates
curl -fsSL https://yum.dockerproject.org/gpg | apt-key add -
add-apt-repository \
"deb https://apt.dockerproject.org/repo/ \
ubuntu-xenial \
main"
apt-get update
apt-get -y install docker-engine jq
groupadd docker
gpasswd -a ${USER} docker
service docker restart
platform=Linux-x86_64
compose_url=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r ".assets[] | select(.name | test(\"${platform}\")) | .browser_download_url")
echo $compose_url
curl -L $compose_url -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
machine_url=$(curl -s https://api.github.com/repos/docker/machine/releases/latest | jq -r ".assets[] | select(.name | test(\"${platform}\")) | .browser_download_url")
curl -L $machine_url >/tmp/docker-machine &&
chmod +x /tmp/docker-machine &&
cp /tmp/docker-machine /usr/local/bin/docker-machine
newgrp docker
22 changes: 22 additions & 0 deletions plugins/docker.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "docker",
"label": "Docker+machine+compose",
"description": "Docker + docker-machine + docker-compose",
"license": "Free",
"category": "Programming",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s docker.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root apt purge -y docker-engine jq"
},
"status": {
"command": "dpkg -s docker-engine"
}
}
}


4 changes: 4 additions & 0 deletions plugins/eos-tweaks.plugin/lokitweaks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
add-apt-repository ppa:philip.scott/elementary-tweaks
apt-get update
apt-get install elementary-tweaks
22 changes: 22 additions & 0 deletions plugins/eos-tweaks.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "elementary",
"label": "Elementary Tweaks",
"description": "elementaryOS Tweaks",
"license": "Free",
"category": "Apps",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s lokitweaks.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root ppa-purge -y ppa:philip.scott/elementary-tweaks"
},
"status": {
"command": "dpkg -s elementary-tweaks"
}
}
}


7 changes: 7 additions & 0 deletions plugins/firacode.plugin/firacode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
keyword=FiraCode
apt-get install -y jq
url=$(curl -s https://api.github.com/repos/tonsky/FiraCode/releases/latest | jq -r ".assets[] | select(.name | test(\"${keyword}\")) | .browser_download_url")
curl -L $url -o /tmp/firacode.zip
unzip /tmp/firacode.zip -d /tmp/firacode
mkdir ~/.fonts
cp /tmp/firacode/otf/* ~/.fonts
22 changes: 22 additions & 0 deletions plugins/firacode.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "font",
"label": "FiraCode",
"description": "FiraCode font with ligatures",
"license": "Free",
"category": "Programming",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s fira.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root rm ~/.fonts/FiraCode*"
}
// "status": {
// "command": "dpkg -s zsh"
// }
}
}


12 changes: 12 additions & 0 deletions plugins/fish.plugin/fishsetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
apt install fish -y
# install fisherman plugin manager
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher
# install ohmyfish
curl -L http://get.oh-my.fish | fish
#install some themes
omf install agnoster
omf install nai
# install bass to get bash compatibility
fisher edc/bass
fisher fzf
21 changes: 21 additions & 0 deletions plugins/fish.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"icon": "fish",
"label": "Fish+Ohmyfish",
"description": "Fish shell + plugins",
"license": "Free",
"category": "Programming",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s fishsetup.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root apt purge -y fish"
},
"status": {
"command": "dpkg -s fish"
}
}
}

6 changes: 6 additions & 0 deletions plugins/fusuma.plugin/fusuma.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
gpasswd -a $USER input # Log out and back in to assign this group
apt-get install libinput-tools -y
apt-get install xdotool -y
apt-get install -y ruby
gem install fusuma
20 changes: 20 additions & 0 deletions plugins/fusuma.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"icon": "touchpad",
"label": "Fusuma",
"description": "Fusuma multitouch gestures",
"license": "Free",
"category": "Utilities",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s fusuma.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root apt purge -y libinput-tools xdotool ruby"
},
"status": {
"command": "dpkg -s fusuma"
}
}
}
22 changes: 22 additions & 0 deletions plugins/neovim.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "neovim",
"label": "Neovim",
"description": "Neovim text editor + vimplug plugin manager",
"license": "Free",
"category": "Programming",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s neovim.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root apt purge -y neovim"
},
"status": {
"command": "dpkg -s neovim"
}
}
}


13 changes: 13 additions & 0 deletions plugins/neovim.plugin/neovim.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
apt-get install -y software-properties-common
add-apt-repository -y ppa:neovim-ppa/stable
apt-get update
apt-get install vim neovim curl -y
mkdir -p ~/.config/nvim/
rm ~/.config/nvim/init.vim ~/.vimrc
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
22 changes: 22 additions & 0 deletions plugins/node.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "node",
"label": "Node v7",
"description": "Node version 7",
"license": "Free",
"category": "Programming",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s node7.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root apt purge -y nodejs"
},
"status": {
"command": "dpkg -s nodejs"
}
}
}


3 changes: 3 additions & 0 deletions plugins/node.plugin/node7.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl -sL https://deb.nodesource.com/setup_7.x | -E bash -
apt-get install -y nodejs
apt-get install -y build-essential
22 changes: 22 additions & 0 deletions plugins/papericons.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "icons",
"label": "Paper icons",
"description": "Paper icon theme",
"license": "Free",
"category": "Utilities",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s papericons.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root ppa-purge -y ppa:snwh/pulp"
},
"status": {
"command": "dpkg -s paper-icon-theme"
}
}
}


6 changes: 6 additions & 0 deletions plugins/papericons.plugin/papericons.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
add-apt-repository ppa:snwh/pulp
# update repository info
apt-get update
# install icon theme
apt-get install paper-icon-theme
22 changes: 22 additions & 0 deletions plugins/qbittorrent.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "qbittorrent",
"label": "Qbittorrent",
"description": "Qbittorrent torrent client",
"license": "Free",
"category": "Apps",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root apt-get install -y qbittorrent"
},
"undo": {
"label": "Remove",
"command": "run-as-root apt purge -y qbittorrent"
},
"status": {
"command": "dpkg -s qbittorrent"
}
}
}


22 changes: 22 additions & 0 deletions plugins/terminix.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "terminal",
"label": "Terminix",
"description": "Terminix",
"license": "Free",
"category": "Programming",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s terminix.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root apt purge -y terminix"
},
"status": {
"command": "dpkg -s terminix"
}
}
}


4 changes: 4 additions & 0 deletions plugins/terminix.plugin/terminix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
add-apt-repository ppa:webupd8team/terminix
apt-get update
apt-get install terminix
22 changes: 22 additions & 0 deletions plugins/vscode.plugin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"icon": "vscode",
"label": "Vscode",
"description": "Visual Studio Code",
"license": "Free",
"category": "Programming",
"scripts": {
"exec": {
"label": "Install",
"command": "run-as-root -s vscode.sh"
},
"undo": {
"label": "Remove",
"command": "run-as-root apt purge -y code"
},
"status": {
"command": "dpkg -s code"
}
}
}


10 changes: 10 additions & 0 deletions plugins/vscode.plugin/vscode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# Install key
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
# Install repo
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
# Update apt-get
apt-get update
# Install
apt-get install code # or code-insiders
Loading