Merge branch 'upstream-custom' into dev

This commit is contained in:
Yingjie Wang 2024-06-06 00:59:44 -04:00
commit 5ad9e37759
65 changed files with 30 additions and 247 deletions

View File

@ -13,24 +13,6 @@ if [[ $(_isInstalledPacman "ttf-ms-fonts") == 0 ]]; then
fi fi
fi fi
# Check for running NetworkManager.service
if [[ $(systemctl list-units --all -t service --full --no-legend "NetworkManager.service" | sed 's/^\s*//g' | cut -f1 -d' ') == "NetworkManager.service" ]];then
echo ":: NetworkManager.service already running."
else
sudo systemctl enable NetworkManager.service
sudo systemctl start NetworkManager.service
echo ":: NetworkManager.service activated successfully."
fi
# Check for running bluetooth.service
if [[ $(systemctl list-units --all -t service --full --no-legend "bluetooth.service" | sed 's/^\s*//g' | cut -f1 -d' ') == "bluetooth.service" ]];then
echo ":: bluetooth.service already running."
else
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
echo ":: bluetooth.service activated successfully."
fi
if [ -d ~/dotfiles/hypr/settings/ ] ;then if [ -d ~/dotfiles/hypr/settings/ ] ;then
rm -rf ~/dotfiles/hypr/settings rm -rf ~/dotfiles/hypr/settings
echo ":: ~/dotfiles/hypr/settings removed." echo ":: ~/dotfiles/hypr/settings removed."

View File

@ -49,5 +49,8 @@ fi
if [ -f ~/dotfiles-versions/$version/chrome-flags.conf ]; then if [ -f ~/dotfiles-versions/$version/chrome-flags.conf ]; then
_installSymLink chrome-flags ~/.config/chrome-flags.conf ~/dotfiles/chrome-flags.conf ~/.config _installSymLink chrome-flags ~/.config/chrome-flags.conf ~/dotfiles/chrome-flags.conf ~/.config
fi fi
if [ -d ~/dotfiles-versions/$version/Vimix-hyprcursors ]; then
_installSymLink Vimix-hyprcursors ~/.local/share/icons/Vimix-hyprcursors ~/dotfiles/Vimix-hyprcursors
fi
echo ":: Symbolic links created." echo ":: Symbolic links created."
echo echo

View File

@ -7,19 +7,15 @@ packagesPacman=(
"fastfetch" "fastfetch"
"ranger" "ranger"
"btop" "btop"
"bluez"
"bluez-utils"
"neovim" "neovim"
"wget" "wget"
"unzip" "unzip"
"alacritty" "alacritty"
"chromium"
"dunst" "dunst"
"starship" "starship"
"mpv" "mpv"
"thunar" "thunar"
"nautilus" "nautilus"
"mousepad"
"noto-fonts" "noto-fonts"
"otf-font-awesome" "otf-font-awesome"
"ttf-fira-sans" "ttf-fira-sans"
@ -32,41 +28,29 @@ packagesPacman=(
"python-pip" "python-pip"
"python-psutil" "python-psutil"
"python-rich" "python-rich"
"python-click"
"python-pywal" "python-pywal"
"python-gobject"
"pavucontrol" "pavucontrol"
"tumbler" "tumbler"
"papirus-icon-theme" "papirus-icon-theme"
"breeze-icons"
"polkit-gnome"
"brightnessctl"
"gum" "gum"
"man-pages" "man-pages"
"nm-connection-editor"
"gvfs" "gvfs"
"xdg-user-dirs" "xdg-user-dirs"
"xdg-desktop-portal-gtk" "xdg-desktop-portal-gtk"
"networkmanager"
"network-manager-applet"
"xarchiver" "xarchiver"
"thunar-archive-plugin" "thunar-archive-plugin"
"zip" "zip"
"fuse2" "fuse2"
"gtk4"
"libadwaita"
"xdg-desktop-portal" "xdg-desktop-portal"
"qalculate-gtk" "qalculate-gtk"
"imagemagick" "imagemagick"
"guvcview"
"jq" "jq"
"rofi-wayland" "rofi-wayland"
"fastfetch" "fastfetch"
"blueman"
); );
packagesYay=( packagesYay=(
"vimix-cursors" "vimix-cursors"
"trizen" "trizen"
"pacseek" "google-chrome"
); );

View File

@ -1 +1 @@
chromium google-chrome-stable

View File

@ -1 +1 @@
mousepad ~/dotfiles/.settings/terminal.sh -e vim

View File

@ -1 +0,0 @@
nm-connection-editor

View File

@ -1 +0,0 @@
alacritty -e pacseek

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,4 @@
name = Extracted Theme
description = Automatically extracted with hyprcursor-util
version = 0.1
cursors_directory = hyprcursors

View File

@ -34,6 +34,3 @@ exec-once = pypr
# Start autostart cleanup # Start autostart cleanup
exec-once = ~/dotfiles/hypr/scripts/cleanup.sh exec-once = ~/dotfiles/hypr/scripts/cleanup.sh
# Load configuration from ML4W Hyprland Settings App
exec = ~/.config/ml4w-hyprland-settings/hyprctl.sh

View File

@ -40,7 +40,6 @@ bind = $mainMod CTRL, H, exec, ~/dotfiles/hypr/scripts/keybindings.sh
bind = $mainMod SHIFT, B, exec, ~/dotfiles/waybar/launch.sh bind = $mainMod SHIFT, B, exec, ~/dotfiles/waybar/launch.sh
bind = $mainMod CTRL, B, exec, ~/dotfiles/waybar/toggle.sh bind = $mainMod CTRL, B, exec, ~/dotfiles/waybar/toggle.sh
bind = $mainMod SHIFT, R, exec, ~/dotfiles/hypr/scripts/loadconfig.sh bind = $mainMod SHIFT, R, exec, ~/dotfiles/hypr/scripts/loadconfig.sh
bind = $mainMod CTRL, F, exec, ~/dotfiles/scripts/filemanager.sh
bind = $mainMod CTRL, C, exec, ~/dotfiles/scripts/cliphist.sh bind = $mainMod CTRL, C, exec, ~/dotfiles/scripts/cliphist.sh
bind = $mainMod, V, exec, ~/dotfiles/scripts/cliphist.sh bind = $mainMod, V, exec, ~/dotfiles/scripts/cliphist.sh
bind = $mainMod CTRL, T, exec, ~/dotfiles/waybar/themeswitcher.sh bind = $mainMod CTRL, T, exec, ~/dotfiles/waybar/themeswitcher.sh

View File

@ -1 +0,0 @@
thunar

View File

@ -1,42 +0,0 @@
#!/bin/bash
# _____ _ _ _ __ _
# |_ _(_)_ __ ___ ___ ___| |__ (_)/ _| |_
# | | | | '_ ` _ \ / _ \/ __| '_ \| | |_| __|
# | | | | | | | | | __/\__ \ | | | | _| |_
# |_| |_|_| |_| |_|\___||___/_| |_|_|_| \__|
#
sleep 1
clear
figlet "Timeshift"
_isInstalledYay() {
package="$1";
check="$(yay -Qs --color always "${package}" | grep "local" | grep "${package} ")";
if [ -n "${check}" ] ; then
echo 0; #'0' means 'true' in Bash
return; #true
fi;
echo 1; #'1' means 'false' in Bash
return; #false
}
timeshift_installed=$(_isInstalledYay "timeshift")
grubbtrfs_installed=$(_isInstalledYay "grub-btrfs")
if [[ $timeshift_installed == "0" ]] ;then
echo ":: Timeshift is already installed"
else
if gum confirm "DO YOU WANT TO INSTALL Timeshift now?" ;then
yay -S timeshift
fi
fi
if [[ -d /boot/grub ]] && [[ $grubbtrfs_installed == "0" ]] ;then
echo ":: grub-btrfs is already installed"
else
echo ":: grub-btrfs is required to select a snapshot on grub bootloader."
if gum confirm "DO YOU WANT TO INSTALL grub-btrfs now?" ;then
yay -S grub-btrfs
fi
fi
sleep 3

View File

@ -1,66 +0,0 @@
#!/bin/bash
# ___ _ _ _ _ _ _ _
# |_ _|_ __ ___| |_ __ _| | | | | | |_ __ __| | __ _| |_ ___ ___
# | || '_ \/ __| __/ _` | | | | | | | '_ \ / _` |/ _` | __/ _ \/ __|
# | || | | \__ \ || (_| | | | | |_| | |_) | (_| | (_| | || __/\__ \
# |___|_| |_|___/\__\__,_|_|_| \___/| .__/ \__,_|\__,_|\__\___||___/
# |_|
# by Stephan Raabe (2024)
# -----------------------------------------------------
# Required: yay trizen timeshift btrfs-grub
# -----------------------------------------------------
sleep 1
clear
figlet "Updates"
echo
_isInstalledYay() {
package="$1";
check="$(yay -Qs --color always "${package}" | grep "local" | grep "${package} ")";
if [ -n "${check}" ] ; then
echo 0; #'0' means 'true' in Bash
return; #true
fi;
echo 1; #'1' means 'false' in Bash
return; #false
}
# ------------------------------------------------------
# Confirm Start
# ------------------------------------------------------
if gum confirm "DO YOU WANT TO START THE UPDATE NOW?" ;then
echo
echo ":: Update started."
elif [ $? -eq 130 ]; then
exit 130
else
echo
echo ":: Update canceled."
exit;
fi
if [[ $(_isInstalledYay "timeshift") == "0" ]] ;then
if gum confirm "DO YOU WANT TO CREATE A SNAPSHOT?" ;then
echo
c=$(gum input --placeholder "Enter a comment for the snapshot...")
sudo timeshift --create --comments "$c"
sudo timeshift --list
sudo grub-mkconfig -o /boot/grub/grub.cfg
echo ":: DONE. Snapshot $c created!"
echo
elif [ $? -eq 130 ]; then
echo ":: Snapshot canceled."
exit 130
else
echo ":: Snapshot canceled."
fi
echo
fi
yay
notify-send "Update complete"
echo
echo ":: Update complete"
sleep 2

View File

@ -1,12 +0,0 @@
# ___ ____ _
# / _ \ _ __ ___| _ \ _ __(_)_ _____
# | | | | '_ \ / _ \ | | | '__| \ \ / / _ \
# | |_| | | | | __/ |_| | | | |\ V / __/
# \___/|_| |_|\___|____/|_| |_| \_/ \___|
#
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &
notify-send "OneDrive connected" "Microsoft OneDrive successfully mounted."

View File

@ -1,61 +0,0 @@
#!/bin/bash
# ____ _ _
# / ___| _ __ __ _ _ __ ___| |__ ___ | |_
# \___ \| '_ \ / _` | '_ \/ __| '_ \ / _ \| __|
# ___) | | | | (_| | |_) \__ \ | | | (_) | |_
# |____/|_| |_|\__,_| .__/|___/_| |_|\___/ \__|
# |_|
#
# by Stephan Raabe (2024)
# -----------------------------------------------------
sleep 1
clear
figlet "Snapshot"
_isInstalledYay() {
package="$1";
check="$(yay -Qs --color always "${package}" | grep "local" | grep "${package} ")";
if [ -n "${check}" ] ; then
echo 0; #'0' means 'true' in Bash
return; #true
fi;
echo 1; #'1' means 'false' in Bash
return; #false
}
timeshift_installed=$(_isInstalledYay "timeshift")
grubbtrfs_installed=$(_isInstalledYay "grub-btrfs")
if [[ $timeshift_installed == "0" ]] ;then
c=$(gum input --placeholder "Enter a comment for the snapshot...")
sudo timeshift --create --comments "$c"
sudo timeshift --list
if [[ -d /boot/grub ]] ;then
if [[ -d /boot/grub ]] && [[ $grubbtrfs_installed == "1" ]] ;then
if gum confirm "DO YOU WANT TO INSTALL grub-btrfs now?" ;then
yay -S grub-btrfs
else
exit
fi
fi
sudo grub-mkconfig -o /boot/grub/grub.cfg
fi
echo "DONE. Snapshot $c created!"
else
echo "ERROR: Timeshift is not installed."
if gum confirm "DO YOU WANT TO INSTALL Timeshift now?" ;then
yay -S timeshift
echo
echo ":: Timeshift has been installed. Please restart this script."
if [[ -d /boot/grub ]] && [[ $grubbtrfs_installed == "1" ]] ;then
echo ":: grub-btrfs is required to select a snapshot on grub bootloader."
if gum confirm "DO YOU WANT TO INSTALL grub-btrfs now?" ;then
yay -S grub-btrfs
else
exit
fi
fi
fi
fi

View File

@ -102,8 +102,7 @@
"return-type": "json", "return-type": "json",
"exec": "~/dotfiles/scripts/updates.sh", "exec": "~/dotfiles/scripts/updates.sh",
"restart-interval": 60, "restart-interval": 60,
"on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/scripts/installupdates.sh", "on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/scripts/installupdates.sh"
"on-click-right": "~/dotfiles/.settings/software.sh"
}, },
// Wallpaper // Wallpaper

View File

@ -100,7 +100,6 @@
"exec": "~/dotfiles/scripts/updates.sh", "exec": "~/dotfiles/scripts/updates.sh",
"restart-interval": 60, "restart-interval": 60,
"on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/scripts/installupdates.sh", "on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/scripts/installupdates.sh",
"on-click-right": "~/dotfiles/.settings/software.sh",
"tooltip": false "tooltip": false
}, },