1
0
Fork 0

added more setup scripts

This commit is contained in:
Kim, Jimin 2022-01-30 15:28:14 +09:00
parent 6295576195
commit 2c7a5adeb4
12 changed files with 104 additions and 65 deletions

View file

@ -2,6 +2,7 @@
"cSpell.words": [
"alacritty",
"btop",
"davinci",
"deno",
"developomp",
"flatpak",

View file

@ -1,6 +1,10 @@
"""
setup scripts require two things: name and setup function.
name is a string that contains what it'll show in the list, and setup() is what'll run when it is selected.
name: string
post_install: array or string
setup: function
"""
from . import *
@ -366,11 +370,6 @@ setup_gsmartcontrol() {
package_install gsmartcontrol
}
setup_inkscape() {
# adobe illustrator but FOSS
package_install inkscape
}
setup_jdk() {
# jdk-openjdk: latest jdk (17 as of writing)
# jdk8-openjdk: jdk8
@ -382,11 +381,6 @@ setup_jdk() {
jdk11-openjdk
}
setup_kdenlive() {
# video editing
package_install kdenlive-appimage
}
setup_keyboard() {
# Korean keyboard support
package_install ibus-hangul
@ -406,22 +400,6 @@ setup_mystiq() {
package_install mystiq
}
setup_node() {
# nodejs: Javascript on servers!
# nvm: Node.JS version manager
# npm: node package manager
# yarn: better node package manager
package_install \
nodejs \
nvm \
npm \
yarn
# https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
# export PATH="$(yarn global bin):$PATH"
}
setup_obs() {
# obs-plugin-input-overlay-bin: show inputs in OBS
# obs-studio-browser: screen recording and streaming with browser overlay support
@ -431,10 +409,6 @@ setup_obs() {
obs-studio-browser
}
setup_ordne() {
package_install ordne
}
setup_pacman() {
# enable multilib, color, parallel download, and total download in /etc/pacman.conf
:
@ -471,24 +445,11 @@ setup_pip() {
package_install python-pip
}
setup_piper() {
# gaming mouse settings GUI
package_install piper
}
setup_pomky() {
install ./home/pomp/.local/bin/pomky ~/.local/bin/
install ./home/pomp/.config/autostart/pomky.desktop ~/.config/autostart/
}
setup_rust() {
package_install \
rust \
rustup
rustup install stable
}
setup_shfmt() {
package_install shfmt
}
@ -502,13 +463,6 @@ setup_timeshift() {
package_install timeshift
}
setup_unity() {
# game engine
package_install unityhub
POST_INSTALL+=("Change editors location")
}
setup_vim() {
# vim plugin manager
package_install vim-plug
@ -517,19 +471,6 @@ setup_vim() {
POST_INSTALL+=("Install vim plugins with :PlugInstall command")
}
setup_virtualbox() {
# https://wiki.archlinux.org/title/VirtualBox
package_install \
virtualbox \
virtualbox-host-modules-arch \
virtualbox-ext-oracle
sudo systemctl enable systemd-modules-load
sudo systemctl start systemd-modules-load
sudo modprobe vboxdrv
}
setup_wine() {
# wine: compatibility layer
# wine-gecko: internet explorer for wine

View file

@ -0,0 +1,7 @@
from ..util import pamac_install
name = "Davinci Resolve"
def setup():
pamac_install("davinci-resolve")

View file

@ -4,4 +4,10 @@ name = "deno"
def setup():
"""
nodejs++
check .zshrc for bin path stuff
"""
pamac_install("deno")

View file

@ -4,6 +4,10 @@ name = "Godot"
def setup():
"""MIT licensed game engine"""
"""
MIT licensed game engine
check .zshrc for path stuff
"""
flatpak_install("org.godotengine.Godot")

View file

@ -1,4 +1,4 @@
from .. import deno, dotnet, vscodium
from .. import deno, dotnet, rust, vscodiumm
name = "dev"
@ -8,4 +8,5 @@ def setup():
deno.setup()
dotnet.setup()
rust.setup()
vscodium.setup()

9
src/setup/inkscape.py Normal file
View file

@ -0,0 +1,9 @@
from ..util import flatpak_install
name = "Inkscape"
def setup():
"""adobe illustrator but FOSS"""
flatpak_install("org.inkscape.Inkscape")

21
src/setup/node.py Normal file
View file

@ -0,0 +1,21 @@
from ..util import pamac_install
from os import system
name = "node"
def setup():
"""
Javascript outside of browsers!
https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
nodejs: Javascript on servers!
nvm: NodejS version manager
npm: node package manager
yarn: better node package manager
check .zshrc for bin path stuff
"""
pamac_install(["nodejs", "nvm", "npm", "yarn"])

9
src/setup/piper.py Normal file
View file

@ -0,0 +1,9 @@
from ..util import flatpak_install
name = "piper"
def setup():
"""gaming mouse configuration utility"""
flatpak_install("org.freedesktop.Piper")

12
src/setup/rust.py Normal file
View file

@ -0,0 +1,12 @@
from ..util import pamac_install
from os import system
name = "rust"
def setup():
"""The next C"""
pamac_install(["rust", "rustup"])
system("rustup install stable")

10
src/setup/unity_hub.py Normal file
View file

@ -0,0 +1,10 @@
from ..util import flatpak_install
name = "Unity hub"
post_install = ["Change editors location"]
def setup():
"""Unity hub"""
flatpak_install("com.unity.UnityHub")

18
src/setup/virtualbox.py Normal file
View file

@ -0,0 +1,18 @@
from ..util import pamac_install
from os import system
name = "virtualbox"
def setup():
"""It's a computer inside a computer!"""
pamac_install([
"virtualbox",
"virtualbox-host-modules-arch",
"virtualbox-ext-oracle"
])
system("sudo systemctl enable systemd-modules-load")
system("sudo systemctl start systemd-modules-load")
system("sudo modprobe vboxdrv")