From 9a12259f09b87f5389f620b7f9aff5fa65933017 Mon Sep 17 00:00:00 2001 From: riley Date: Wed, 22 Sep 2021 21:39:20 -0400 Subject: [PATCH] cleanup --- .config/alacritty/alacritty.yml | 4 ++-- .dracula_theme_discord.css | 10 ---------- addins/package.xsh | 6 +++--- 3 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 .dracula_theme_discord.css diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index a473d80..e7a1cbc 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -25,7 +25,7 @@ import: # available, otherwise `xterm-256color` is used. #TERM: alacritty -#window: +window: # Window dimensions (changes require restart) # # Number of lines/columns (not pixels) in the terminal. The number of columns @@ -63,7 +63,7 @@ import: # Values for `decorations` (macOS only): # - transparent: Title bar, transparent background and title bar buttons # - buttonless: Title bar, transparent background and no title bar buttons - #decorations: full + decorations: none # Startup Mode (changes require restart) # diff --git a/.dracula_theme_discord.css b/.dracula_theme_discord.css deleted file mode 100644 index 9a1b128..0000000 --- a/.dracula_theme_discord.css +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @name Dracula Theme - * @author Kabir Kwatra - * @authorId 168376512272269313 - * @version 1.0.0 - * @description 🧛🏻‍♂️ Dark theme for all the things - * @source https://github.com/Dracula/BetterDiscord -**/ - -@import url("https://dracula.github.io/betterdiscord/base.css") diff --git a/addins/package.xsh b/addins/package.xsh index b69c7cb..9cce36a 100644 --- a/addins/package.xsh +++ b/addins/package.xsh @@ -19,7 +19,7 @@ class Package: else: return False if self.source == 'npm': - if !(npm list -g @(self.name)).returncode == 0: + if !(npm list -g --parseable --silent @(self.name)).returncode == 0: return True else: return False @@ -29,12 +29,12 @@ class Package: def install(self): if self.installed: print(f"package '{self.name}' already installed.") - return elif self.source == 'apt': $(sudo apt-get install -qq --yes @(self.name)) elif self.source == 'npm': - $(npm install -g @(self.name)) + $(npm install -g --silent --yes @(self.name)) elif self.source == 'pacman': $(pacman -Syu @(self.name)) else: print(f"unsupported package manager '{source}'.") +