From e774e6106fbe2ee6dce3f7b045068896287abe38 Mon Sep 17 00:00:00 2001 From: MoetaYuko Date: Wed, 1 May 2024 16:01:29 +0800 Subject: [PATCH] Add ddcutil to installer --- install.sh | 4 ++-- scriptdata/dependencies.conf | 5 ++++- uninstall.sh | 8 +++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 392837512..c4ed16da7 100755 --- a/install.sh +++ b/install.sh @@ -136,7 +136,8 @@ case $SKIP_PLASMAINTG in ;; esac -v sudo usermod -aG video,input "$(whoami)" +v sudo usermod -aG video,i2c,input "$(whoami)" +v bash -c "echo i2c-dev | sudo tee /etc/modules-load.d/i2c-dev.conf" v systemctl --user enable ydotool --now ##################################################################################### @@ -306,4 +307,3 @@ case $existed_hypr_conf in printf "\e[33mPlease use \"~/.config/hypr/hyprland.conf.new\" as a reference for a proper format.\e[0m\n" printf "\e[33mIf this is your first time installation, you must overwrite \"~/.config/hypr/hyprland.conf\" with \"~/.config/hypr/hyprland.conf.new\".\e[0m\n" ;;esac - diff --git a/scriptdata/dependencies.conf b/scriptdata/dependencies.conf index 9fe10337d..9c7bcd95d 100644 --- a/scriptdata/dependencies.conf +++ b/scriptdata/dependencies.conf @@ -26,7 +26,10 @@ pavucontrol wireplumber libdbusmenu-gtk3 playerctl swww webp-pixbuf-loader gtk-layer-shell gtk3 gtksourceview3 gobject-introspection upower yad ydotool ### Gnome -polkit-gnome gnome-keyring gnome-control-center blueberry networkmanager brightnessctl wlsunset gnome-bluetooth-3.0 +polkit-gnome gnome-keyring gnome-control-center blueberry networkmanager wlsunset gnome-bluetooth-3.0 + +### Backlight +brightnessctl ddcutil ### Widgets python-pywayland python-psutil hypridle-git hyprlock-git wlogout wl-clipboard hyprpicker-git anyrun-git diff --git a/uninstall.sh b/uninstall.sh index 4c2dc6a72..174958eae 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -35,16 +35,18 @@ v rm -rf "$HOME/.local/bin/fuzzel-emoji" ############################################################################################################################## -# Undo Step 1: Remove added user from video and input groups and remove yay packages -printf '\e[36mRemoving user from video and input groups and removing packages...\n\e[97m' +# Undo Step 1: Remove added user from video, i2c, and input groups and remove yay packages +printf '\e[36mRemoving user from video, i2c, and input groups and removing packages...\n\e[97m' user=$(whoami) v sudo deluser "$user" video +v sudo deluser "$user" i2c v sudo deluser "$user" input +v sudo rm /etc/modules-load.d/i2c-dev.conf ############################################################################################################################## read -p "Do you want to uninstall packages used by the dotfiles?\nCtrl+C to exit, or press Enter to proceed" # Removing installed yay packages and dependencies -v yay -Rns adw-gtk3-git brightnessctl cava foot fuzzel gjs gojq gradience-git grim gtk-layer-shell hyprland-git lexend-fonts-git libdbusmenu-gtk3 plasma-browser-integration playerctl python-build python-material-color-utilities python-poetry python-pywal ripgrep sassc swww slurp starship swayidle hyprlock-git tesseract ttf-jetbrains-mono-nerd ttf-material-symbols-variable-git ttf-space-mono-nerd typescript webp-pixbuf-loader wl-clipboard wlogout yad ydotool +v yay -Rns adw-gtk3-git brightnessctl cava ddcutil foot fuzzel gjs gojq gradience-git grim gtk-layer-shell hyprland-git lexend-fonts-git libdbusmenu-gtk3 plasma-browser-integration playerctl python-build python-material-color-utilities python-poetry python-pywal ripgrep sassc swww slurp starship swayidle hyprlock-git tesseract ttf-jetbrains-mono-nerd ttf-material-symbols-variable-git ttf-space-mono-nerd typescript webp-pixbuf-loader wl-clipboard wlogout yad ydotool printf '\e[36mUninstall Complete.\n\e[97m'