Update all dotfiles

This commit is contained in:
2025-05-22 17:56:05 -05:00
parent 0280a88a7b
commit 4bb042584b
1651 changed files with 60533 additions and 2672 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 832 KiB

View File

@ -0,0 +1 @@
/home/gib/Pictures/Wallpapers/faroe_islands.jpg

View File

@ -0,0 +1 @@
* { current-image: url("/home/gib/.config/ml4w/cache/blurred_wallpaper.png", height); }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 832 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 KiB

View File

@ -0,0 +1,11 @@
_ _
| | ___ __ _(_)_ __
| | / _ \\ / _' | | '_ \\
| |__| (_) | (_| | | | | |
|_____\\___/ \\__, |_|_| |_|
|___/
Today is \d \t @ \n
--------------------------------------------------------------
\r (\l)

View File

@ -0,0 +1 @@
ags run

View File

@ -0,0 +1,6 @@
#!/bin/bash
clear
aur_helper="$(cat ~/.config/ml4w/settings/aur.sh)"
figlet -f smslant "Cleanup"
echo
$aur_helper -Scc

View File

@ -0,0 +1,66 @@
#!/bin/bash
# _____ _ _ _____ __
# | __ \ (_) | | / ____| / _|
# | |__) | __ _ _ __ | |_ ___ _ __ | | ___ _ __ | |_
# | ___/ '__| | '_ \| __/ _ \ '__| | | / _ \| '_ \| _|
# | | | | | | | | | || __/ | | |___| (_) | | | | |
# |_| |_| |_|_| |_|\__\___|_| \_____\___/|_| |_|_|
#
# By @krystalsavage
sleep 1
clear
figlet -f smslant "Printers"
# ------------------------------------------------------
# Confirm Start
# ------------------------------------------------------
if gum confirm "DO YOU WANT TO START TO INSTALL PRINTER SYSTEM NOW?" ;then
echo
echo ":: Install started."
elif [ $? -eq 130 ]; then
exit 130
else
echo
echo ":: Install 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 -S cups cups-pdf cups-filters nss-mdns system-config-printer foomatic-db footmatic-db-engine foomatic-db-nonfree doomatic-db-nonfree-ppds foomatic-db-ppds cups-browsed libusb ipp-usb xdg-utils colord logrotate
notify-send "Installing printer system complete"
echo
echo ":: Installing printer system complete"
sleep 2
if [ -f ~/.config/ml4w/settings/printer-drivers.sh ] ;then
if gum confirm "DO YOU WANT TO INSTALL PRINTER DRIVERS NOW?" ;then
echo
echo ":: Install started."
elif [ $? -eq 130 ]; then
exit 130
else
echo
echo ":: Install cancelled."
exit;
fi
fi

View File

@ -0,0 +1,43 @@
#!/bin/bash
# _____ _ _ _ __ _
# |_ _(_)_ __ ___ ___ ___| |__ (_)/ _| |_
# | | | | '_ ` _ \ / _ \/ __| '_ \| | |_| __|
# | | | | | | | | | __/\__ \ | | | | _| |_
# |_| |_|_| |_| |_|\___||___/_| |_|_|_| \__|
#
sleep 1
clear
figlet -f smslant "Timeshift"
aur_helper="$(cat ~/.config/ml4w/settings/aur.sh)"
_isInstalledAUR() {
package="$1";
check="$($aur_helper -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=$(_isInstalledAUR "timeshift")
grubbtrfs_installed=$(_isInstalledAUR "grub-btrfs")
if [[ $timeshift_installed == "0" ]] ;then
echo ":: Timeshift is already installed"
else
if gum confirm "DO YOU WANT TO INSTALL Timeshift now?" ;then
$aur_helper -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
$aur_helper -S grub-btrfs
fi
fi
sleep 3

View File

@ -0,0 +1,12 @@
#!/bin/bash
while IFS= read -r line; do
# If the line starts with # and the next line is not the lines to be added
if [[ $line == \#HandleLidSwitchDocked=ignore ]]; then
# Add the new lines
echo "HandleLidSwitchDocked=ignore" | sudo tee -a /etc/systemd/logind.conf > /dev/null
fi
if [[ $line == \#HoldoffTimeoutSec=5s ]]; then
# Add the new lines
echo "HoldoffTimeoutSec=5s" | sudo tee -a /etc/systemd/logind.conf > /dev/null
fi
done < /etc/systemd/logind.conf

View File

@ -0,0 +1,60 @@
#!/bin/bash
# ____
# | _ \ __ _ ___ _ __ ___ __ _ _ __
# | |_) / _` |/ __| '_ ` _ \ / _` | '_ \
# | __/ (_| | (__| | | | | | (_| | | | |
# |_| \__,_|\___|_| |_| |_|\__,_|_| |_|
#
sleep 1
clear
figlet -f smslant "pacman.conf"
echo
echo ":: This script will activate or deactivate additions for your pacman.conf."
echo
if grep -Fq "#ParallelDownloads" /etc/pacman.conf
then
if gum confirm "Do you want to activate parallel downloads?" ;then
sudo sed -i 's/^#ParallelDownloads/ParallelDownloads/' /etc/pacman.conf
else
echo ":: Activation of parallel downloads skipped."
fi
else
echo ":: Parallel downloads are already activated."
fi
if grep -Fxq "#Color" /etc/pacman.conf
then
if gum confirm "Do you want to activate colors?" ;then
sudo sed -i 's/^#Color/Color/' /etc/pacman.conf
else
echo ":: Activation of Color skipped."
fi
else
echo ":: Color is already activated."
fi
if grep -Fxq "#VerbosePkgLists" /etc/pacman.conf
then
if gum confirm "Do you want to activate VerbosePkgLists?" ;then
sudo sed -i 's/^#VerbosePkgLists/VerbosePkgLists/' /etc/pacman.conf
else
echo ":: Activation of VerbosePkgLists skipped."
fi
else
echo ":: VerbosePkgLists is already activated."
fi
if grep -Fxq "ILoveCandy" /etc/pacman.conf
then
echo ":: ILoveCandy is already activated."
else
if gum confirm "Do you want to activate ILoveCandy?" ;then
sudo sed -i '/^ParallelDownloads = .*/a ILoveCandy' /etc/pacman.conf
else
echo ":: Activation of ILoveCandy skipped."
fi
fi
echo
echo "Press [ENTER] to close."
read

View File

@ -0,0 +1,61 @@
#!/bin/bash
# ____ _ _
# / ___| _ __ __ _ _ __ ___| |__ ___ | |_
# \___ \| '_ \ / _` | '_ \/ __| '_ \ / _ \| __|
# ___) | | | | (_| | |_) \__ \ | | | (_) | |_
# |____/|_| |_|\__,_| .__/|___/_| |_|\___/ \__|
# |_|
#
# by Stephan Raabe (2024)
# -----------------------------------------------------
sleep 1
clear
figlet -f smslant "Snapshot"
aur_helper="$(cat ~/.config/ml4w/settings/aur.sh)"
_isInstalledAUR() {
package="$1";
check="$($aur_helper -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=$(_isInstalledAUR "timeshift")
grubbtrfs_installed=$(_isInstalledAUR "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
$aur_helper -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
$aur_helper -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
$aur_helper -S grub-btrfs
else
exit
fi
fi
fi
fi

View File

@ -0,0 +1,9 @@
#!/bin/bash
sleep 1
if [ -f /var/lib/pacman/db.lck ]; then
sudo rm /var/lib/pacman/db.lck
echo ":: Unlock complete"
else
echo ":: Pacman database is not locked"
fi
sleep 3

View File

@ -0,0 +1,21 @@
#!/bin/bash
# ____ _ _ _ _ _
# / ___| (_)_ __ | |__ (_)___| |_
# | | | | | '_ \| '_ \| / __| __|
# | |___| | | |_) | | | | \__ \ |_
# \____|_|_| .__/|_| |_|_|___/\__|
# |_|
#
case $1 in
d) cliphist list | rofi -dmenu -replace -config ~/.config/rofi/config-cliphist.rasi | cliphist delete
;;
w) if [ `echo -e "Clear\nCancel" | rofi -dmenu -config ~/.config/rofi/config-short.rasi` == "Clear" ] ; then
cliphist wipe
fi
;;
*) cliphist list | rofi -dmenu -replace -config ~/.config/rofi/config-cliphist.rasi | cliphist decode | wl-copy
;;
esac

View File

@ -0,0 +1,24 @@
#!/bin/bash
figlet -f smslant "Figlet"
echo
# ------------------------------------------------
# Script to create ascii font based header on user input
# and copy the result to the clipboard
# -----------------------------------------------------
read -p "Enter the text for ascii encoding: " mytext
if [ -f ~/figlet.txt ]; then
touch ~/figlet.txt
fi
echo "cat <<\"EOF\"" > ~/figlet.txt
figlet -f smslant "$mytext" >> ~/figlet.txt
echo "" >> ~/figlet.txt
echo "EOF" >> ~/figlet.txt
lines=$( cat ~/figlet.txt )
wl-copy "$lines"
xclip -sel clip ~/figlet.txt
echo "Text copied to clipboard!"

View File

@ -0,0 +1,101 @@
#!/bin/bash
# ____ __ ____ __ __
# / _/__ ___ / /____ _/ / / __ _____ ___/ /__ _/ /____ ___
# _/ // _ \(_-</ __/ _ `/ / / / // / _ \/ _ / _ `/ __/ -_|_-<
# /___/_//_/___/\__/\_,_/_/_/ \_,_/ .__/\_,_/\_,_/\__/\__/___/
# /_/
#
sleep 1
clear
install_platform="$(cat ~/.config/ml4w/settings/platform.sh)"
figlet -f smslant "Updates"
echo
# ------------------------------------------------------
# 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
_isInstalled() {
package="$1";
case $install_platform in
arch)
check="$($aur_helper -Qs --color always "${package}" | grep "local" | grep "${package} ")";
;;
fedora)
check="$(dnf repoquery --quiet --installed ""${package}*"")"
;;
*)
;;
esac
if [ -n "${check}" ] ; then
echo 0; #'0' means 'true' in Bash
return; #true
fi;
echo 1; #'1' means 'false' in Bash
return; #false
}
# Check if platform is supported
case $install_platform in
arch)
aur_helper="$(cat ~/.config/ml4w/settings/aur.sh)"
if [[ $(_isInstalled "timeshift") == "0" ]] ;then
echo
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 skipped."
exit 130
else
echo ":: Snapshot skipped."
fi
echo
fi
$aur_helper
if [[ $(_isInstalled "flatpak") == "0" ]] ;then
flatpak upgrade
fi
;;
fedora)
sudo dnf upgrade
if [[ $(_isInstalled "flatpak") == "0" ]] ;then
flatpak upgrade
fi
;;
*)
echo ":: ERROR - Platform not supported"
echo "Press [ENTER] to close."
read
;;
esac
notify-send "Update complete"
echo
echo ":: Update complete"
echo
echo
echo "Press [ENTER] to close."
read

View File

@ -0,0 +1,15 @@
#!/bin/bash
# Compare installed version with running dotfiles
if [ -f ~/.config/ml4w/version/compare.sh ] ;then
$HOME/.config/ml4w/version/compare.sh
fi
# Start ML4W Welcome App
if [ ! -f $HOME/.cache/ml4w-welcome-autostart ] ;then
echo ":: Starting ML4W Welcome App ..."
sleep 2
com.ml4w.welcome
else
echo ":: Autostart of ML4W Welcome App disabled."
fi

View File

@ -0,0 +1,21 @@
#!/bin/bash
# __ __
# ___ __ _ ___ ____ ___ / /__ / /_
# / _ \/ ' \/ _ `/ _ \/ _ \/ / -_) __/
# /_//_/_/_/_/\_,_/ .__/ .__/_/\__/\__/
# /_/ /_/
#
if [[ "$1" == "stop" ]]; then
killall nm-applet
elif [[ "$1" == "toggle" ]]; then
if pgrep -x "nm-applet" > /dev/null
then
echo "Running"
killall nm-applet
else
echo "Stopped"
nm-applet --indicator &
fi
else
nm-applet --indicator &
fi

View File

@ -0,0 +1,62 @@
#!/bin/bash
# _ _ _ _ _ _
# | | | |_ __ __| | __ _| |_ ___ ___ __| | __| |_ __ ___
# | | | | '_ \ / _` |/ _` | __/ _ \ / __|/ _` |/ _` | '_ ` _ \
# | |_| | |_) | (_| | (_| | || __/ \__ \ (_| | (_| | | | | | |
# \___/| .__/ \__,_|\__,_|\__\___| |___/\__,_|\__,_|_| |_| |_|
# |_|
#
# by Stephan Raabe (2024)
# -----------------------------------------------------
sleep 1
clear
cache_file="$HOME/.config/ml4w/cache/current_wallpaper"
current_wallpaper=$(cat "$cache_file")
extension="${current_wallpaper##*.}"
echo -e "${GREEN}"
figlet -f smslant "SDDM Wallpaper"
echo -e "${NONE}"
sddm_theme_name="sequoia"
sddm_asset_folder="/usr/share/sddm/themes/$sddm_theme_name/backgrounds"
sddm_theme_tpl="/usr/share/ml4w-hyprland/sddm/theme.conf"
if [ -f $HOME/.config/ml4w/settings/sddm/theme.conf ]; then
sddm_theme_tpl="$HOME/.config/ml4w/settings/sddm/theme.conf"
echo ":: Using custum theme.conf"
fi
if [ ! -f $current_wallpaper ]; then
gum spin --spinner dot --title "File $current_wallpaper does not exist" -- sleep 3
exit
fi
echo ":: Set the current wallpaper $current_wallpaper as SDDM wallpaper."
echo
if [ ! -d /etc/sddm.conf.d/ ]; then
sudo mkdir /etc/sddm.conf.d
echo ":: Folder /etc/sddm.conf.d created."
fi
sudo cp /usr/share/ml4w-hyprland/sddm/sddm.conf /etc/sddm.conf.d/
echo ":: File /etc/sddm.conf.d/sddm.conf updated."
sudo cp $current_wallpaper $sddm_asset_folder/current_wallpaper.$extension
echo ":: Current wallpaper copied into $sddm_asset_folder"
sudo cp $sddm_theme_tpl /usr/share/sddm/themes/$sddm_theme_name/
sudo sed -i 's/CURRENTWALLPAPER/'"current_wallpaper.$extension"'/' /usr/share/sddm/themes/$sddm_theme_name/theme.conf
echo ":: File theme.conf updated in /usr/share/sddm/themes/$sddm_theme_name/"
echo
echo ":: You can preview your updated SDDM Login screen. (Close it with SUPER+Q)"
echo
if gum confirm "Do you want to preview the result?"; then
sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/sequoia
fi
echo
gum spin --spinner dot --title "Please logout to see the result." -- sleep 3

View File

@ -0,0 +1,98 @@
#!/bin/bash
# ____ _ _ _
# / ___|| |__ ___| | |
# \___ \| '_ \ / _ \ | |
# ___) | | | | __/ | |
# |____/|_| |_|\___|_|_|
#
sleep 1
_isInstalledYay() {
package="$1";
check="$(yay -Qs --color always "${package}" | grep "local" | grep "\." | 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
}
clear
figlet -f smslant "Shell"
echo ":: Please select your preferred shell"
echo
shell=$(gum choose "bash" "zsh" "Cancel")
# -----------------------------------------------------
# Activate bash
# -----------------------------------------------------
if [[ $shell == "bash" ]] ;then
# Change shell to bash
while ! chsh -s $(which bash); do
echo "ERROR: Authentication failed. Please enter the correct password."
sleep 1
done
echo ":: Shell is now bash."
gum spin --spinner dot --title "Please reboot your system." -- sleep 3
# -----------------------------------------------------
# Activate zsh
# -----------------------------------------------------
elif [[ $shell == "zsh" ]] ;then
# Change shell to shh
while ! chsh -s $(which zsh); do
echo "ERROR: Authentication failed. Please enter the correct password."
sleep 1
done
echo ":: Shell is now zsh."
# Installing oh-my-posh
yay -S oh-my-posh-bin
# Installing oh-my-zsh
if [ ! -d "$HOME/.oh-my-zsh" ]; then
echo ":: Installing oh-my-zsh"
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
cp ~/.config/ml4w/tpl/.zshrc ~/
else
echo ":: oh-my-zsh already installed"
fi
# Installing zsh-autosuggestions
if [ ! -d "$HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions" ]; then
echo ":: Installing zsh-autosuggestions"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
else
echo ":: zsh-autosuggestions already installed"
fi
# Installing zsh-syntax-highlighting
if [ ! -d "$HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting" ]; then
echo ":: Installing zsh-syntax-highlighting"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
else
echo ":: zsh-syntax-highlighting already installed"
fi
# Installing fast-syntax-highlighting
if [ ! -d "$HOME/.oh-my-zsh/custom/plugins/fast-syntax-highlighting" ]; then
echo ":: Installing fast-syntax-highlighting"
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
else
echo ":: fast-syntax-highlighting already installed"
fi
gum spin --spinner dot --title "Please reboot your system." -- sleep 3
# -----------------------------------------------------
# Cencel
# -----------------------------------------------------
else
echo ":: Changing shell canceled"
exit
fi

View File

@ -0,0 +1,19 @@
#!/bin/bash
clear
if [ -f ~/.config/ml4w/settings/terminal.sh ]; then
terminal="$(cat ~/.config/ml4w/settings/terminal.sh)"
echo ":: Installing $terminal"
if [ -d ~/.config/xfce4 ]; then
if [ ! -f ~/.config/xfce4/helpers.rc ]; then
touch ~/.config/xfce4/helpers.rc
fi
echo "TerminalEmulator=$terminal" > ~/.config/xfce4/helpers.rc
echo ":: $terminal defined as Thunar Terminal Emulator."
else
echo "ERROR: ~/.config/xfce4 not found. Please open Thunar once to create it."
echo "Then start this script again."
fi
else
echo "ERROR: ~/.config/ml4w/settings/terminal.sh not found"
fi
sleep 3

View File

@ -0,0 +1,58 @@
#!/bin/bash
# _ _ _ _
# | | | |_ __ __| | __ _| |_ ___ ___
# | | | | '_ \ / _` |/ _` | __/ _ \/ __|
# | |_| | |_) | (_| | (_| | || __/\__ \
# \___/| .__/ \__,_|\__,_|\__\___||___/
# |_|
#
# -----------------------------------------------------
# Define threshholds for color indicators
# -----------------------------------------------------
threshhold_green=0
threshhold_yellow=25
threshhold_red=100
install_platform="$(cat ~/.config/ml4w/settings/platform.sh)"
# Check if platform is supported
case $install_platform in
arch)
aur_helper="$(cat ~/.config/ml4w/settings/aur.sh)"
# -----------------------------------------------------
# Calculate available updates
# -----------------------------------------------------
# flatpak remote-ls --updates
updates=$(checkupdates-with-aur | wc -l)
;;
fedora)
updates=$(dnf check-update -q|grep -c ^[a-z0-9])
;;
*)
updates=0
;;
esac
# -----------------------------------------------------
# Output in JSON format for Waybar Module custom-updates
# -----------------------------------------------------
css_class="green"
if [ "$updates" -gt $threshhold_yellow ]; then
css_class="yellow"
fi
if [ "$updates" -gt $threshhold_red ]; then
css_class="red"
fi
if [ "$updates" -gt $threshhold_green ]; then
printf '{"text": "%s", "alt": "%s", "tooltip": "Click to update your system", "class": "%s"}' "$updates" "$updates" "$css_class"
else
printf '{"text": "0", "alt": "0", "tooltip": "No updates available", "class": "green"}'
fi

View File

@ -0,0 +1,5 @@
res_w=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .width')
res_h=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .height')
h_scale=$(hyprctl -j monitors | jq '.[] | select (.focused == true) | .scale' | sed 's/\.//')
w_margin=$(( res_h * 27 / h_scale ))
wlogout -b 5 -T $w_margin -B $w_margin

View File

@ -0,0 +1 @@
$(cat ~/.config/ml4w/settings/browser.sh) --new-window https://chat.gibbyb.com

View File

@ -0,0 +1 @@
50x30

View File

@ -0,0 +1 @@
firefox

View File

@ -0,0 +1 @@
gnome-calculator

View File

@ -0,0 +1 @@
Documents/Configs/hyprland/desktop

View File

@ -0,0 +1 @@
top-center

View File

@ -0,0 +1 @@
nvim

View File

@ -0,0 +1 @@
nautilus

View File

@ -0,0 +1,8 @@
# Preload Wallpapers
preload = WALLPAPER
# Set Wallpapers
wallpaper = ,WALLPAPER
# Disable Splash
splash = false

View File

@ -0,0 +1 @@
hyprshade_filter="blue-light-filter-50"

View File

@ -0,0 +1 @@
ags toggle sidebar

View File

@ -0,0 +1 @@
$(cat ~/.config/ml4w/settings/terminal.sh) --class dotfiles-floating -e nmtui

View File

@ -0,0 +1 @@
fedora

View File

@ -0,0 +1,4 @@
# Installation of Printer Drivers
# Please add your drivers to the package list
# Example:
# yay -S brother-hll2360dw-lpr-bin brother-hll2360dw-cups-bin brother-mfc-l3770cdw brscan-skey brscan4 skanpage

View File

@ -0,0 +1 @@
* { border-radius: 2em; }

View File

@ -0,0 +1 @@
* { border-width: 3px; }

View File

@ -0,0 +1 @@
configuration { font: "Fira Sans 11"; }

View File

@ -0,0 +1 @@
NAME="screenshot_$(date +%d%m%Y_%H%M%S).jpg"

View File

@ -0,0 +1 @@
screenshot_folder="$HOME/Pictures"

View File

@ -0,0 +1,132 @@
[General]
# Set to your screen resolution for better results
width=1680
height=1050
backgroundColour="black"
wallpaper="backgrounds/CURRENTWALLPAPER"
# Whether to scale the image to fit on the screen, might leave some blank spaces
# will scale and crop the wallpaper if left false
fitWallpaper=false
# Main font
fontFamily="Noto Sans"
# Set to a patched NerdFont if some icons don't display properly
# or leave empty to use the main font family
iconFont=""
# Set this if fonts are the wrong size for your resolution
fontSize=14
# Whether to show icons inside menus
iconsInMenus=true
# [Colour_Palette]
# The main colour for text and icons
primaryColour="white"
# The background colour of popup panels
popupsBackgroundColour="white"
# Used for the text and icons inside popup panels
popupsForegroundColour="black"
# Colour used for selected and focused items
accentColour="#a7d9ea"
# [Greeting_Screen]
# Set true to be taken directly to the login screen
skipToLogin=false
# Supports Markdown formatting, leave empty to not display any text
greeting="Welcome back!"
# Adjusts the font size for the greeting message, clock and date
fontSizeMultiplier=2
# For help with date and time formatting see https://doc.qt.io/qt-5/qml-qtqml-date.html#format-strings
clockFormat="HH:mm"
dateFormat="dddd, dd MMMM"
# Set this in case the date isn't in your system locale or you wish to use a different one
locale=""
# Styles the clock font
# Set to 'outline' for alternate style
clockStyle=fill
# Anchor the clock to a side or corner of the screen, horizontal position is susceptible to layout mirroring
# Syntax: vertical | horizontal
# possible vertical values: top - center - bottom
# and horizontal: left - center - right
dateTimePosition="bottom right"
# Defines how far away the date and time are from the edges of the screen
dateTimePadding=55
# Defines the behaviour of the sliding transition from greeting to login form
# Set to +/- x or y
transitionDirection="x"
# [Login_Screen]
# The maximum radius allowed is 16 per loop
blurRadius=10
blurRecursiveLoops=5
# Used to dim the background
darkenWallpaper=0.3
# Purely cosmetic, has no effect on login credentials
capitaliseUsername=false
# 'mask' - hides your password by replacing the characters with something else
# 'off' - also hides the length of your password by disabling echoing
passwordEchoStyle=mask
allowEmptyPassword=false
# Set false to hide the selected session's name next to the menu icon
displaySession=true
# [Translations]
# SDDM may not have translations for every element, or you might want to change some text to something else
# setting these will override the text constants
virtualKeyboard=""
poweroff=""
reboot=""
suspend=""
hibernate=""
password=""
username=""
loginFailed=""
# [Accessibility]
# Set false to set all transition durations to 0
enableAnimations=true
# 'auto' - activates mirroring based on the system locale
# 'false' - never mirror layout
# 'true' - always mirrors
mirrorLayout=auto
# Whether the on-screen keyboard should be activated by default
# It can always be de/activated through the  accessibility panel
virtualKeyboardStartActive=false
# Normally the on-screen keyboard only shows up when text fields are focused
# Set this true to have the keyboard always be visible once activated
# This will render the hide button on the keyboard non-functional
forceKeyboardVisible=false

View File

@ -0,0 +1 @@
$(cat ~/.config/ml4w/settings/terminal.sh) --class dotfiles-floating -e pacseek

View File

@ -0,0 +1 @@
$(cat ~/.config/ml4w/settings/terminal.sh) --class dotfiles-floating -e htop

View File

@ -0,0 +1 @@
kitty

View File

@ -0,0 +1 @@
hyprpaper

View File

@ -0,0 +1,2 @@
# Enter the path to the folder that includes your wallpapers
wallpaper_folder=$HOME/wallpaper

View File

@ -0,0 +1,45 @@
{
"custom/quicklink1": {
"format": "",
"on-click": "chromium",
"tooltip-format": "Open Chromium"
},
"custom/quicklink2": {
"format": "",
"on-click": "~/.config/ml4w/settings/browser.sh",
"tooltip-format": "Open Firefox"
},
"custom/quicklink3": {
"format": "",
"on-click": "~/.config/ml4w/settings/filemanager.sh",
"tooltip-format": "Open filemanager"
},
"custom/quicklink4": {
"format": "",
"on-click": "betterbird",
"tooltip-format": "Open Betterbird"
},
"custom/quicklink5": {
"format": "",
"on-click": "~/.config/ml4w/settings/calculator.sh",
"tooltip-format": "Open calculator"
},
"custom/quicklink6": {
"format": "",
"on-click": "~/.config/ml4w/settings/emojipicker.sh",
"tooltip-format": "Open emoji picker"
},
"custom/quicklinkempty": {
},
"group/quicklinks": {
"orientation": "horizontal",
"modules": [
"custom/quicklink2",
"custom/quicklink3",
/*
"custom/quicklink4",
*/
"custom/quicklinkempty"
]
}
}

View File

@ -0,0 +1 @@
/ml4w;/ml4w/colored

View File

@ -0,0 +1 @@
America/Chicago

View File

@ -0,0 +1,23 @@
# _
# _______| |__ _ __ ___
# |_ / __| '_ \| '__/ __|
# _ / /\__ \ | | | | | (__
# (_)___|___/_| |_|_| \___|
#
# -----------------------------------------------------
# ML4W zshrc loader
# -----------------------------------------------------
# DON'T CHANGE THIS FILE
# You can define your custom configuration by adding
# files in ~/.config/zshrc
# or by creating a folder ~/.config/zshrc/custom
# with you own zshrc configuration
# -----------------------------------------------------
if [ -d ~/.config/zshrc/custom ] ;then
for f in ~/.config/zshrc/custom/*; do source $f; done
else
for f in ~/.config/zshrc/*; do source $f; done
fi

View File

@ -0,0 +1,14 @@
#!/bin/bash
# ------------------------------------------------------
# Compare installed version with used version
# ------------------------------------------------------
source ~/.config/ml4w/version/library.sh
if [ -f /usr/share/ml4w-hyprland/dotfiles/.config/ml4w/version/name ] ;then
installed_version=$(cat /usr/share/ml4w-hyprland/dotfiles/.config/ml4w/version/name)
used_version=$(cat ~/.config/ml4w/version/name)
if [[ $(testvercomp $used_version $installed_version "<") == "0" ]] ;then
notify-send "Please run ml4w-hyprland-setup" "Installed version is newer then the version you're currently using."
fi
fi

View File

@ -0,0 +1,42 @@
vercomp () {
if [[ $1 == $2 ]]
then
return 0
fi
local IFS=.
local i ver1=($1) ver2=($2)
# fill empty fields in ver1 with zeros
for ((i=${#ver1[@]}; i<${#ver2[@]}; i++))
do
ver1[i]=0
done
for ((i=0; i<${#ver1[@]}; i++))
do
if ((10#${ver1[i]:=0} > 10#${ver2[i]:=0}))
then
return 1
fi
if ((10#${ver1[i]} < 10#${ver2[i]}))
then
return 2
fi
done
return 0
}
testvercomp () {
vercomp $1 $2
case $? in
0) op='=';;
1) op='>';;
2) op='<';;
esac
if [[ $op != $3 ]]
then
# No update available
echo "1"
else
# Update available
echo "0"
fi
}

View File

@ -0,0 +1 @@
2.9.7.4

View File

@ -0,0 +1,25 @@
#!/bin/bash
# ------------------------------------------------------
# Check for updates
# ------------------------------------------------------
source ~/.config/ml4w/version/library.sh
# Get latest tag from GitHub
get_latest_release() {
v_online=$(curl --silent "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=ml4w-hyprland")
v_full_online=$(grep -m 1 'pkgver' <<< $v_online | sed 's/^$/pkgver/')
echo ${v_full_online/pkgver=/}
}
# Check for internet connection
if ping -q -c 1 -W 1 google.com >/dev/null; then
version=$(cat ~/.config/ml4w/version/name)
online=$(get_latest_release "mylinuxforwork/hyprland-dotfiles")
echo $version "<" $online
testvercomp $version $online "<"
else
# Network is down
echo "1"
fi