Merge branch 'upstream-custom' into dev
This commit is contained in:
commit
5ad9e37759
@ -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."
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
);
|
);
|
||||||
|
@ -1 +1 @@
|
|||||||
chromium
|
google-chrome-stable
|
||||||
|
@ -1 +1 @@
|
|||||||
mousepad
|
~/dotfiles/.settings/terminal.sh -e vim
|
@ -1 +0,0 @@
|
|||||||
nm-connection-editor
|
|
@ -1 +0,0 @@
|
|||||||
alacritty -e pacseek
|
|
BIN
Vimix-hyprcursors/hyprcursors/alias.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/alias.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/all-scroll.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/all-scroll.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/bottom_left_corner.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/bottom_left_corner.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/bottom_right_corner.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/bottom_right_corner.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/bottom_side.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/bottom_side.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/cell.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/cell.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/center_ptr.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/center_ptr.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/col-resize.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/col-resize.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/color-picker.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/color-picker.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/context-menu.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/context-menu.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/copy.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/copy.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/crosshair.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/crosshair.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/default.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/default.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/dnd-move.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/dnd-move.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/dnd-no-drop.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/dnd-no-drop.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/down-arrow.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/down-arrow.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/draft.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/draft.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/fleur.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/fleur.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/help.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/help.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/left-arrow.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/left-arrow.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/left_side.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/left_side.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/no-drop.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/no-drop.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/not-allowed.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/not-allowed.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/openhand.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/openhand.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/pencil.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/pencil.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/pirate.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/pirate.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/pointer.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/pointer.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/progress.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/progress.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/right-arrow.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/right-arrow.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/right_ptr.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/right_ptr.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/right_side.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/right_side.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/row-resize.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/row-resize.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/size_bdiag.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/size_bdiag.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/size_fdiag.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/size_fdiag.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/size_hor.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/size_hor.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/size_ver.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/size_ver.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/text.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/text.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/top_left_corner.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/top_left_corner.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/top_right_corner.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/top_right_corner.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/top_side.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/top_side.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/up-arrow.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/up-arrow.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/vertical-text.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/vertical-text.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/wait.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/wait.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/wayland-cursor.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/wayland-cursor.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/x-cursor.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/x-cursor.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/zoom-in.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/zoom-in.hlc
Normal file
Binary file not shown.
BIN
Vimix-hyprcursors/hyprcursors/zoom-out.hlc
Normal file
BIN
Vimix-hyprcursors/hyprcursors/zoom-out.hlc
Normal file
Binary file not shown.
4
Vimix-hyprcursors/manifest.hl
Normal file
4
Vimix-hyprcursors/manifest.hl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name = Extracted Theme
|
||||||
|
description = Automatically extracted with hyprcursor-util
|
||||||
|
version = 0.1
|
||||||
|
cursors_directory = hyprcursors
|
@ -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
|
|
||||||
|
@ -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
|
||||||
|
@ -1 +0,0 @@
|
|||||||
thunar
|
|
@ -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
|
|
@ -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
|
|
@ -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."
|
|
@ -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
|
|
@ -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
|
||||||
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user