From 4abef57c8ff4cdc5e9eb7d25a8a9435fa797629e Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 3 Jan 2024 12:10:14 +0900 Subject: [PATCH] cliphist --- CHANGELOGS.md | 4 ++++ README.md | 4 ++-- install-scripts/00-hypr-pkgs.sh | 9 --------- install-scripts/cliphist.sh | 29 +++++++++++++++++++++++++++++ install.sh | 1 + 5 files changed, 36 insertions(+), 11 deletions(-) create mode 100755 install-scripts/cliphist.sh diff --git a/CHANGELOGS.md b/CHANGELOGS.md index 048a937..69469ba 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -1,5 +1,9 @@ ## Changelogs +## 02 Jan 2024 +- Readme updated for cliphist instruction for ubuntu 23.10 users +- Created cliphist.sh for ubuntu 23.10 users (disabled by default and needs to be enabled on install.sh if desired) + ## 30 December 2023 - Code Cleaned up. - Pokemon Color Scripts now offered as optional diff --git a/README.md b/README.md index 1d49210..e31d3b7 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ sudo nano /etc/apt/sources.list > [!IMPORTANT] > UBUNTU USERS: You can use this installer. However, I have only tested on Ubuntu 23.10. Not sure if it works on older ubuntu as Hyprland needs an updated wayland libraries. For sure wont work in any Ubuntu LTS. > If you are using Gnome already, DO NOT install the SDDM. The GDM works file as well. For some reason, during installation, you will be asked which login manager you wanted to use. But during my test, nothing happened. +> Ubuntu 23.10 dont have cliphist (used as clipboard manager) in their repo yet! And it is not set to build by default. If you want script to install for you, edit `install-scripts/00-hypr-pks.sh` line 15 remove the cliphist under hypr_package . then edit `install.sh` line 175 remove # in `#execute_script "cliphist.sh"` > [!CAUTION] > For Ubuntu with NVIDIA GPU's, make sure to edit the install-scripts/nvidia.sh . Delete all packages in nvidia_pkg except libva-wayland2 and nvidia-vaapi-driver and uncomment/remove # before sudo ubuntu-drivers install. You also need to delete or simply just add # in the lines 37 and 38 echo "echo "## for nvidia" | sudo tee -a... and echo "deb http://deb.debian.org/debian........ @@ -81,8 +82,7 @@ sudo nano /etc/apt/sources.list - If However, decided to try, recommend to install SDDM. Apart from GDM and SDDM, any other Login Manager may not work nor launch Hyprland. However, hyprland can be launched through tty by type Hyprland - 🕯️ network-manager-gnome (nm-applet) has been removed from the packages to install. This is because it is known to restart the networkmanager causing issues in the installation process. After you boot up, inorder to get the network-manager applet, install network-manager-gnome. `sudo apt install network-manager-gnome` See below if your network or wifi became unmanaged after installation - If you have nvidia, and wanted to use proprietary drivers, uninstall nouveau first (if installed). This script will be installing proprietary nvidia drivers and will not deal with removal of nouveau. - - + #### ⚠️ WARNING! nwg-look takes long time to install. - nwg-look is a utility to costumize your GTK theme. It's a LXAppearance like. Its a good tool though but this package is entirely optional diff --git a/install-scripts/00-hypr-pkgs.sh b/install-scripts/00-hypr-pkgs.sh index 0519ba9..4adac88 100755 --- a/install-scripts/00-hypr-pkgs.sh +++ b/install-scripts/00-hypr-pkgs.sh @@ -96,18 +96,9 @@ for PKG in "${uninstall[@]}"; do fi done -# Install cliphist using go -printf "\n%s - Installing cliphist using go.... \n" "${NOTE}" -export PATH=$PATH:/usr/local/bin -go install go.senan.xyz/cliphist@latest 2>&1 | tee -a "$LOG" - -# copy cliphist into /usr/local/bin for some reason it is installing in ~/go/bin -sudo cp -r "$HOME/go/bin/cliphist" "/usr/local/bin/" 2>&1 | tee -a "$LOG" - ## making brightnessctl work sudo chmod +s $(which brightnessctl) 2>&1 | tee -a "$LOG" || true - ## Installing pywal colors printf "\n%s - Installing Pywal.... \n" "${NOTE}" diff --git a/install-scripts/cliphist.sh b/install-scripts/cliphist.sh new file mode 100755 index 0000000..ca7937b --- /dev/null +++ b/install-scripts/cliphist.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# 💫 https://github.com/JaKooLit 💫 # +# Cliphist install using go # + +## This is to be be use for Ubuntu 23.10 only +# it is disabled by default. Enable it on install.sh #execute_script "cliphist.sh" + +## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## +# Determine the directory where the script is located +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Change the working directory to the parent directory of the script +PARENT_DIR="$SCRIPT_DIR/.." +cd "$PARENT_DIR" || exit 1 + +source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" + +# Set the name of the log file to include the current date and time +LOG="Install-Logs/install-$(date +%d-%H%M%S)_cliphist.log" + +# Install cliphist using go (for UBUNTU 23.10 users) +printf "\n%s - Installing cliphist using go.... \n" "${NOTE}" +export PATH=$PATH:/usr/local/bin +go install go.senan.xyz/cliphist@latest 2>&1 | tee -a "$LOG" + +# copy cliphist into /usr/local/bin for some reason it is installing in ~/go/bin +sudo cp -r "$HOME/go/bin/cliphist" "/usr/local/bin/" 2>&1 | tee -a "$LOG" + +clear diff --git a/install.sh b/install.sh index c97113f..0b40bf6 100755 --- a/install.sh +++ b/install.sh @@ -172,6 +172,7 @@ execute_script "rofi-wayland.sh" execute_script "pywal.sh" execute_script "force-install.sh" +#execute_script "cliphist.sh" if [ "$nvidia" == "Y" ]; then execute_script "nvidia.sh"