1
0
Fork 0

change script name metadata to desc & other stuff

- rename terminal to kitty
- remove gnome calendar
This commit is contained in:
Kim, Jimin 2022-11-13 16:14:17 +09:00
parent 57c56ba53a
commit 5551afb0c3
60 changed files with 75 additions and 241 deletions

View file

@ -13,7 +13,7 @@ def choose_action() -> int:
f"""{s.removeprefix(f"{content_dir}/src/setup/")} - {import_file(
s.removeprefix(f"{content_dir}/src/setup/"),
s,
).name}"""
).desc}"""
for s in glob(f"{content_dir}/src/setup/**/*.py", recursive=True)
if "__init__.py" not in s
]
@ -59,5 +59,5 @@ def menu():
if choose_action() < 0:
return
print("Setup complete!")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "Blender"
desc = "3D graphics tool"
def setup():
"""3D graphics tool"""
flatpak_install("org.blender.Blender")

View file

@ -1,12 +1,10 @@
from src.util import flatpak_install
name = "Brave"
desc = "The least worst web browser"
# Brave handles restoration itself using its own sync stuff
post_install = ["enable sync"]
def setup():
"""The least worst web browser"""
flatpak_install("com.brave.Browser")

View file

@ -4,7 +4,7 @@ from src.util import flatpak_install, paru_install, copy_file
from src.log import log
name = "Discord"
desc = "Discord and better discord"
PLUGINS = (
134, # https://betterdiscord.app/plugin/Avatar%20Hover
@ -50,8 +50,6 @@ PLUGINS = (
def setup():
"""Discord and better discord"""
flatpak_install("com.discordapp.Discord")
paru_install("betterdiscordctl-git")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "GIMP"
desc = "Photoshop but FOSS"
def setup():
"""photoshop but FOSS"""
flatpak_install("org.gimp.GIMP")

View file

@ -1,6 +1,6 @@
from src.util import paru_install
name = "SSD Health checker"
desc = "SSD Health checker"
def setup():

View file

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

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "Kdenlive"
desc = "Adobe Premiere Pro but FOSS"
def setup():
"""FOSS video editing utility"""
flatpak_install("org.kde.kdenlive")

View file

@ -1,11 +1,9 @@
from src.util import appimage_install
name = "Notesnook"
desc = "FOSS Note taking utility"
def setup():
"""FOSS Note taking utility"""
appimage_install(
"https://notesnook.com/releases/linux/notesnook_linux_x86_64.AppImage",
"notesnook_linux_x86_64",

View file

@ -1,15 +1,8 @@
from src.util import flatpak_install, paru_install
name = "OBS studio"
desc = "Screen recording and streaming utility"
def setup():
"""
Screen recording and streaming utility
obs-plugin-input-overlay-bin: show inputs in OBS
"""
flatpak_install("com.obsproject.Studio")
paru_install("obs-plugin-input-overlay-bin")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "Office suite"
desc = "FOSS Office suite"
def setup():
"""MS office cracked 2022 pro+ deluxe v2.4"""
flatpak_install("org.onlyoffice.desktopeditors")

View file

@ -2,12 +2,10 @@
from os import system
name = "Tenacity"
desc = "Audacity fork that doesn't suck"
def setup():
"""Safe audacity fork"""
system(
"flatpak remote-add tenacity oci+https://tenacityteam.github.io/tenacity-flatpak-nightly"
)

View file

@ -1,9 +1,7 @@
from src.util import paru_install
name = "timshift"
desc = "System backup and restoration utility"
def setup():
"""System backup and restoring utility"""
paru_install("timeshift")

View file

@ -1,9 +1,7 @@
from src.util import paru_install
name = "bat"
desc = "cat but rusty"
def setup():
"""cat but better and rusty"""
paru_install("bat")

View file

@ -1,9 +1,7 @@
from src.util import paru_install
name = "Btop"
desc = "top but better"
def setup():
"""top but better"""
paru_install("btop")

View file

@ -1,9 +1,7 @@
from src.util import paru_install
name = "fd"
desc = "find but rusty"
def setup():
"""find but modern and rusty"""
paru_install("fd")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "dconf editor"
desc = "GUI application for editing dconf"
def setup():
"""GUI application for editing dconf"""
flatpak_install("ca.desrt.dconf-editor")

View file

@ -2,10 +2,8 @@ from src.util import flatpak_install
from os import makedirs
name = "flatseal"
desc = "flatpak permission manager"
def setup() -> None:
"""flatpak permission manager"""
flatpak_install("com.github.tchx84.Flatseal")

View file

@ -1,11 +1,7 @@
from src.util import paru_install
name = "PulseAudio volume control"
desc = "PulseAudio manager"
def setup():
"""
The thing I use until I find a good pipewire app
"""
paru_install("pavucontrol")

View file

@ -1,10 +1,8 @@
from src.util import paru_install
name = "piper"
desc = "Gaming mouse configuration utility"
def setup():
"""gaming mouse configuration utility"""
# Not using flatpak version because of some init bugs
paru_install("piper")

View file

@ -1,14 +1,9 @@
from src.util import appimage_install, get_latest_appimage_url_from_github
name = "Cutter"
desc = "Reverse engineering tool with GUI"
def setup():
"""
Reverse engineering tool with GUI
"""
appimage_install(
get_latest_appimage_url_from_github("rizinorg/cutter"),
"cutter",

View file

@ -1,13 +1,7 @@
from src.util import paru_install
name = "deno"
desc = "nodejs++"
def setup():
"""
nodejs++
check .zshrc for bin path stuff
"""
paru_install("deno")

View file

@ -2,12 +2,10 @@ from src.util import paru_install
from getpass import getuser
from os import system
name = "Docker"
desc = "Not a VM (TM)"
def setup():
"""Not a VM"""
paru_install("docker")
system(f'sudo usermod -aG docker "{getuser()}"')

View file

@ -1,9 +1,7 @@
from src.util import paru_install
name = ".NET"
desc = "The Microsoft Java"
def setup():
"""Microsoft java"""
paru_install("dotnet-sdk")

View file

@ -1,12 +1,10 @@
from src.util import paru_install
from os import system
name = "git"
desc = "The thing everyone pretends they know how it works"
def setup():
"""What's a branch?"""
paru_install("git")
system('git config --global user.email "developomp@gmail.com"')

View file

@ -1,9 +1,7 @@
from src.util import paru_install
name = "go"
desc = "Goofy ah language that's popular for some reason"
def setup():
"""Golang stuff"""
paru_install("go")

View file

@ -1,13 +1,7 @@
from src.util import flatpak_install
name = "Godot"
desc = "FOSS game engine"
def setup():
"""
MIT licensed game engine
check .zshrc for path stuff
"""
flatpak_install("org.godotengine.Godot")

View file

@ -1,16 +1,13 @@
from src.util import paru_install
name = "JDK"
desc = "Java development kit"
def setup():
"""
Java development kit
jdk-openjdk: latest jdk (17 as of writing)
jdk8-openjdk: jdk8
jdk11-openjdk: jdk11
"""
paru_install(["jdk-openjdk", "jdk8-openjdk", "jdk11-openjdk"])
paru_install(
[
"jdk-openjdk", # latest jdk (17 as of writing)
"jdk8-openjdk", # jdk8
"jdk11-openjdk", # jdk11
]
)

View file

@ -1,11 +1,9 @@
from src.util import paru_install, copy_file
name = "Terminal"
desc = "fastest terminal"
def setup() -> None:
"""install and configure the kitty terminal"""
paru_install(["kitty", "kitty-shell-integration"])
# copy configuration file

View file

@ -6,20 +6,10 @@ from src.log import log
from os.path import isdir
from os import system
name = "node"
desc = "Javascript everywhere!"
def setup():
"""
Javascript outside of browsers!
https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
nvm: NodejS version manager
pnpm: better node package manager
yarn: better node package manager
"""
# Install zsh if it's not installed already
if not command_exists("zsh"):
zsh.setup()

View file

@ -2,11 +2,9 @@ from src.util import paru_install
from os import system
name = "rust"
desc = "C++ but modern"
def setup():
"""C++ but modern"""
paru_install(["rustup", "rust-analyzer"])
system("rustup install stable")

View file

@ -1,9 +1,7 @@
from src.util import paru_install
name = "traceroute"
desc = "packet route viewer"
def setup():
"""packet route tracker"""
paru_install("traceroute")

View file

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

View file

@ -1,12 +1,10 @@
from src.util import paru_install
from os import system
name = "virtualbox"
desc = "containerized OS"
def setup():
"""It's a computer inside a computer!"""
paru_install(
[
"virtualbox",

View file

@ -2,7 +2,7 @@ from src.util import paru_install, copy_file
from os import system
name = "Vscodium"
desc = "vscode without spyware"
EXTENSIONS = (
@ -45,8 +45,6 @@ EXTENSIONS = (
def setup():
"""vscode without microsoft"""
paru_install("vscodium-bin")
# codium --list-extensions

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "Wireshark"
desc = "network analyzer"
def setup():
"""network protocol analyzer GUI"""
flatpak_install("org.wireshark.Wireshark")

View file

@ -9,7 +9,7 @@ from src.setup.system import system76_scheduler
from os import system
name = "osu!lazer"
desc = "A circle-clicking rhythm game."
post_install = ["Install osu! skin from https://github.com/developomp/osu-pomp-skin"]
@ -44,10 +44,6 @@ def setup_open_tablet_driver():
def setup():
"""
A circle-clicking rhythm game.
"""
# install the game
appimage_install(
get_latest_appimage_url_from_github("ppy/osu"),

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "steam"
desc = "steam game downloader & launcher"
def setup():
"""Game launcher"""
flatpak_install("com.valvesoftware.Steam")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "Baobab"
desc = "Disk usage analysis tool"
def setup():
"""Storage usage analysis tool"""
flatpak_install("org.gnome.baobab")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "GNOME Calculator"
desc = "GNOME Calculator"
def setup():
"""For calculating stuff"""
flatpak_install("org.gnome.Calculator")

View file

@ -1,10 +0,0 @@
from src.util import paru_install
name = "Calendar"
def setup():
"""GNOME calendar"""
# not using the flatpak version because it doesn't integrate well with the GNOME shell
paru_install("gnome-calendar")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "GNOME Characters"
desc = "GNOME character browser"
def setup():
"""Browser for emojis, special characters, and symbols."""
flatpak_install("org.gnome.Characters")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "cheese"
desc = "GNOME photo taking utility"
def setup():
"""photo/video utility"""
flatpak_install("org.gnome.Cheese")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "GNOME Clocks"
desc = "GNOME time management utility"
def setup():
"""For managing multiple time zone clocks."""
flatpak_install("org.gnome.clocks")

View file

@ -1,9 +1,7 @@
from src.util import paru_install
name = "GNOME Disk Utility"
desc = "GNOME Disk Utility"
def setup():
"""Disk management utility"""
paru_install("gnome-disk-utility")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "file roller"
desc = "GNOME compression & decompression utility"
def setup():
"""compression & decompression utility"""
flatpak_install("org.gnome.FileRoller")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "GNOME Font Viewer"
desc = "GNOME font viewing utility"
def setup():
"""GNOME font viewing utility"""
flatpak_install("org.gnome.font-viewer")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "GNOME extension manager"
desc = "GNOME extension manager without using browsers"
def setup():
"""GNOME extension manager without using browsers"""
flatpak_install("com.mattjakeman.ExtensionManager")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "eye of gnome"
desc = "GNOME image viewing utility"
def setup():
"""photo viewing utility"""
flatpak_install("org.gnome.eog")

View file

@ -1,13 +1,11 @@
from src.util import paru_install, load_dconf, command_exists
from src.setup.dev import terminal
from src.setup.dev import kitty
from os import system
name = "Nautilus"
desc = "GNOME file manager"
def setup():
"""File viewer for GNOME"""
paru_install(
[
"nautilus",

View file

@ -1,9 +1,7 @@
from src.util import paru_install
name = "GNOME Control Center"
desc = "GNOME configuration utility"
def setup():
"""The GNOME configuration utility"""
paru_install("gnome-control-center")

View file

@ -1,9 +1,7 @@
from src.util import paru_install
name = "GNOME Tweaks"
desc = "Extra settings for GNOME"
def setup():
"""Extra settings for GNOME"""
paru_install("gnome-tweaks")

View file

@ -1,9 +1,7 @@
from src.util import flatpak_install
name = "Video player"
desc = "Video player"
def setup():
"""GNOME video player"""
flatpak_install("org.gnome.Totem")

View file

@ -6,7 +6,7 @@ from os.path import exists, basename
import requests
import glob
name = "fonts"
desc = "Like... they're fonts"
# path to temporarily save font related files
TMP_FONTS_DIRECTORY = f"{tmp_dir}/tmp/fonts"
@ -30,21 +30,12 @@ FONT_INSTALL_DIR = f"{home_dir}/.local/share/fonts"
def setup():
"""
System fonts
adobe-source-han-sans-kr-fonts: Korean font
ttf-baekmuk: Korean font
unicode-emoji: Colorful emojis
ttf-iosevka-nerd: Terminal font
"""
paru_install(
[
"adobe-source-han-sans-kr-fonts",
"ttf-baekmuk",
"unicode-emoji",
"ttf-iosevka-nerd",
"adobe-source-han-sans-kr-fonts", # Korean font
"ttf-baekmuk", # Korean font
"unicode-emoji", # Colorful emoji
"ttf-iosevka-nerd", # Terminal font
]
)

View file

@ -1,11 +1,9 @@
from os import system
name = "fstab"
desc = "adds /home/pomp to fstab"
def setup():
"""adds /home/pomp drive to fstab"""
fstab_path = "/etc/fstab"
# check if /home/pomp exists already

View file

@ -3,7 +3,7 @@ from src.log import log
from os import system
name = "GNOME extensions"
desc = "GNOME extensions"
post_install = ["Restart GNOME shell", "enable GNOME extensions"]
@ -18,21 +18,13 @@ EXTENSIONS = (
def setup():
"""
Extensions for the GNOME Desktop environment
Intentionally left out chrome-gnome-shell because I won't be using browsers to install GNOME extensions.
gnome-shell-extension-installer: gnome extension installer CLI
gnome-shell-extension-pop-shell-git: window tiling extension
"""
paru_install(
[
"gnome-shell-extension-installer",
# Intentionally left out chrome-gnome-shell because I'm not using browsers to install GNOME extensions
"gnome-shell-extension-installer", # gnome extension installer CLI
# not using gnome-shell-extension-pop-shell because it builds from source too anyway
# not using gnome-shell-extension-pop-shell-bin because it's unmaintained
"gnome-shell-extension-pop-shell-git",
"gnome-shell-extension-pop-shell-git", # window tiling extension
]
)

View file

@ -1,10 +1,8 @@
from src.util import paru_install
name = "middle click paste"
desc = "Prevents middle click paste"
post_install = ["restart"]
def setup():
"""Prevents middle click paste"""
paru_install("xmousepasteblock-git")

View file

@ -1,12 +1,10 @@
from src.util import copy_file, command_exists
from src.constants import tmp_dir
name = "pomky"
desc = "conky but rusty"
def setup():
"""conky but rusty"""
if not command_exists("pomky"):
system(
f"git clone --depth 1 https://github.com/developomp/pomky {tmp_dir}/pomky"

View file

@ -1,12 +1,10 @@
from src.util import paru_install, copy_file
name = "system76 scheduler"
desc = "Process priority optimizer"
def setup():
"""Process priority optimizer"""
# using the git version because "system76-scheduler" builds from source too anyway
paru_install("system76-scheduler-git")
copy_file(

View file

@ -5,12 +5,10 @@ from src.log import log
from os.path import isdir
from os import system
name = "Zsh"
desc = "bash+++"
def setup():
"""Objectively better shell"""
paru_install("zsh")
log("Installing Oh My Zsh")