Initial commit
BIN
.config/ml4w/assets/blank.png
Normal file
|
After Width: | Height: | Size: 569 B |
BIN
.config/ml4w/assets/newwallpaper.png
Normal file
|
After Width: | Height: | Size: 3 MiB |
BIN
.config/ml4w/assets/newwallpaper2.png
Normal file
|
After Width: | Height: | Size: 4.4 MiB |
BIN
.config/ml4w/assets/wall.png
Normal file
|
After Width: | Height: | Size: 740 KiB |
BIN
.config/ml4w/assets/wallhaven.png
Normal file
|
After Width: | Height: | Size: 419 KiB |
BIN
.config/ml4w/assets/wallhaven1.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
.config/ml4w/assets/wallpaper.png
Normal file
|
After Width: | Height: | Size: 4.2 MiB |
158
.config/ml4w/assets/wallpaper.png.xmp
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<rdf:Description rdf:about=""
|
||||
xmlns:exif="http://ns.adobe.com/exif/1.0/"
|
||||
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
|
||||
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
|
||||
xmlns:darktable="http://darktable.sf.net/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:lr="http://ns.adobe.com/lightroom/1.0/"
|
||||
exif:DateTimeOriginal="2024:10:25 01:40:40.000"
|
||||
xmp:Rating="1"
|
||||
xmpMM:DerivedFrom="wallpaper.png"
|
||||
darktable:import_timestamp="63884172139531848"
|
||||
darktable:change_timestamp="63884172286825317"
|
||||
darktable:export_timestamp="-1"
|
||||
darktable:print_timestamp="-1"
|
||||
darktable:xmp_version="5"
|
||||
darktable:raw_params="0"
|
||||
darktable:auto_presets_applied="1"
|
||||
darktable:history_end="10"
|
||||
darktable:iop_order_version="5"
|
||||
darktable:history_basic_hash="02d4cdbda625305c5e181669466f51d2"
|
||||
darktable:history_current_hash="d2d0eab5af28eb0ea49e21a164ca67f3">
|
||||
<darktable:masks_history>
|
||||
<rdf:Seq/>
|
||||
</darktable:masks_history>
|
||||
<darktable:history>
|
||||
<rdf:Seq>
|
||||
<rdf:li
|
||||
darktable:num="0"
|
||||
darktable:operation="colorin"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="7"
|
||||
darktable:params="gz46eJzjZBgFowABWAbaAaOAYaABADDYAA4="
|
||||
darktable:multi_name=""
|
||||
darktable:multi_name_hand_edited="0"
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="13"
|
||||
darktable:blendop_params="gz09eJxjYIAACSjNwHDCiQENsKILMDAwMGIRY2BosIfgkcpnoCr4////fxADAGpyHQU="/>
|
||||
<rdf:li
|
||||
darktable:num="1"
|
||||
darktable:operation="colorout"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="5"
|
||||
darktable:params="gz35eJxjZBgFDKOAAQAEEAAC"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_name_hand_edited="0"
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="13"
|
||||
darktable:blendop_params="gz09eJxjYIAACSjNwHDCiQENsKILMDAwMGIRY2BosIfgkcpnoCr4////fxADAGpyHQU="/>
|
||||
<rdf:li
|
||||
darktable:num="2"
|
||||
darktable:operation="gamma"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="1"
|
||||
darktable:params="0000000000000000"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_name_hand_edited="0"
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="13"
|
||||
darktable:blendop_params="gz09eJxjYIAACSjNwHDCiQENsKILMDAwMGIRY2BosIfgkcpnoCr4////fxADAGpyHQU="/>
|
||||
<rdf:li
|
||||
darktable:num="3"
|
||||
darktable:operation="flip"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="2"
|
||||
darktable:params="ffffffff"
|
||||
darktable:multi_name="auto"
|
||||
darktable:multi_name_hand_edited="0"
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="13"
|
||||
darktable:blendop_params="gz09eJxjYIAACSjNwHDCiQENsKILMDAwMGIRY2BosIfgkcpnoCr4////fxADAGpyHQU="/>
|
||||
<rdf:li
|
||||
darktable:num="4"
|
||||
darktable:operation="shadhi"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="5"
|
||||
darktable:params="000000000000c84220853e4200000000ebd1a8c200000000000048420000c842000048427f000000bd37863500000000"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_name_hand_edited="0"
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="13"
|
||||
darktable:blendop_params="gz09eJxjYGBgYGJgYJBggIETTgxogBVdgIGBgRGLGANDgz0Ej1Q+A1XB/////4MYAG2yHQc="/>
|
||||
<rdf:li
|
||||
darktable:num="5"
|
||||
darktable:operation="basecurve"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="6"
|
||||
darktable:params="gz08eJxjYIAAruuLrbmuK1vPmilpN2vmTLuzZ87YGRsb2zMwONgbGxfbMzA0QPEoYBhCgA2JzYQhC4lTRgYGBgB+Xg6q"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_name_hand_edited="0"
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="13"
|
||||
darktable:blendop_params="gz08eJxjYGBgYGFgYJBggIETTgxogBVdgIGBgRGLGANDgz0Ej1Q+A1ZQMevKARDGxccF/v///x/EAACbGCeh"/>
|
||||
<rdf:li
|
||||
darktable:num="6"
|
||||
darktable:operation="shadhi"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="5"
|
||||
darktable:params="000000000000c8427814064200000000000048c200000000000048420000c842000048427f000000bd37863501000000"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_name_hand_edited="0"
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="13"
|
||||
darktable:blendop_params="gz09eJxjYGBgYGJgYJBggIETTgxogBVdgIGBgRGLGANDgz0Ej1Q+A1XB/////4MYAG2yHQc="/>
|
||||
<rdf:li
|
||||
darktable:num="7"
|
||||
darktable:operation="exposure"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="6"
|
||||
darktable:params="00000000000000000000000000004842000080c000000000"
|
||||
darktable:multi_name="scene-referred default"
|
||||
darktable:multi_name_hand_edited="0"
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="13"
|
||||
darktable:blendop_params="gz08eJxjYGBgYGFgYJBggIETTgxogBVdgIGBgRGLGANDgz0Ej1Q+A1ZQMevKARDGxccF/v///x/EAACbGCeh"/>
|
||||
<rdf:li
|
||||
darktable:num="8"
|
||||
darktable:operation="rgblevels"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="1"
|
||||
darktable:params="0000000001000000000000000000003f0000803f000000000000003f0000803f000000000000003f0000803f"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_name_hand_edited="0"
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="13"
|
||||
darktable:blendop_params="gz08eJxjYGBgYGFgYJBggIETTgxogBVdgIGBgRGLGANDgz0Ej1Q+A1ZQMevKARDGxccF/v///x/EAACbGCeh"/>
|
||||
<rdf:li
|
||||
darktable:num="9"
|
||||
darktable:operation="sharpen"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="1"
|
||||
darktable:params="f7530b400000003f0000003f"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_name_hand_edited="0"
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="13"
|
||||
darktable:blendop_params="gz09eJxjYGBgYGJgYJBggIETTgxogBVdgIGBgRGLGANDgz0Ej1Q+A1XB/////4MYAG2yHQc="/>
|
||||
</rdf:Seq>
|
||||
</darktable:history>
|
||||
<dc:subject>
|
||||
<rdf:Bag>
|
||||
<rdf:li>changed</rdf:li>
|
||||
<rdf:li>darktable</rdf:li>
|
||||
<rdf:li>format</rdf:li>
|
||||
<rdf:li>png</rdf:li>
|
||||
</rdf:Bag>
|
||||
</dc:subject>
|
||||
<lr:hierarchicalSubject>
|
||||
<rdf:Bag>
|
||||
<rdf:li>darktable|changed</rdf:li>
|
||||
<rdf:li>darktable|format|png</rdf:li>
|
||||
</rdf:Bag>
|
||||
</lr:hierarchicalSubject>
|
||||
</rdf:Description>
|
||||
</rdf:RDF>
|
||||
</x:xmpmeta>
|
||||
BIN
.config/ml4w/assets/wallpaper2.png
Normal file
|
After Width: | Height: | Size: 4.3 MiB |
BIN
.config/ml4w/assets/wallpaper3.png
Normal file
|
After Width: | Height: | Size: 4.2 MiB |
BIN
.config/ml4w/cache/blurred_wallpaper.png
vendored
Normal file
|
After Width: | Height: | Size: 1 MiB |
1
.config/ml4w/cache/current_wallpaper
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
$HOME/.config/ml4w/assets/wallhaven.png
|
||||
1
.config/ml4w/cache/current_wallpaper.rasi
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
* { current-image: url("/home/patrick/.config/ml4w/cache/blurred_wallpaper.png", height); }
|
||||
BIN
.config/ml4w/cache/image_gen_00090_.png
vendored
Normal file
|
After Width: | Height: | Size: 17 MiB |
BIN
.config/ml4w/cache/login_background.png
vendored
Normal file
|
After Width: | Height: | Size: 2 MiB |
BIN
.config/ml4w/cache/ocbologo2.png
vendored
Executable file
|
After Width: | Height: | Size: 50 KiB |
BIN
.config/ml4w/cache/square_wallpaper.png
vendored
Normal file
|
After Width: | Height: | Size: 6.2 MiB |
BIN
.config/ml4w/cache/wallpaper-generated/blackwhite-default.jpg
vendored
Normal file
|
After Width: | Height: | Size: 2.8 MiB |
BIN
.config/ml4w/cache/wallpaper-generated/blur-50x30-blackwhite-OCBO.png
vendored
Normal file
|
After Width: | Height: | Size: 280 KiB |
BIN
.config/ml4w/cache/wallpaper-generated/blur-50x30-blackwhite-default.jpg.png
vendored
Normal file
|
After Width: | Height: | Size: 300 KiB |
BIN
.config/ml4w/cache/wallpaper-generated/blur-50x30-off-OCBO.png
vendored
Normal file
|
After Width: | Height: | Size: 1 MiB |
BIN
.config/ml4w/cache/wallpaper-generated/blur-50x30-off-default.jpg.png
vendored
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
.config/ml4w/cache/wallpaper-generated/square-OCBO.png
vendored
Normal file
|
After Width: | Height: | Size: 6.2 MiB |
BIN
.config/ml4w/cache/wallpaper-generated/square-default.jpg.png
vendored
Normal file
|
After Width: | Height: | Size: 6.2 MiB |
1
.config/ml4w/calculator.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
gnome-calculator
|
||||
11
.config/ml4w/login/issue
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
_ _
|
||||
| | ___ __ _(_)_ __
|
||||
| | / _ \\ / _' | | '_ \\
|
||||
| |__| (_) | (_| | | | | |
|
||||
|_____\\___/ \\__, |_|_| |_|
|
||||
|___/
|
||||
|
||||
Today is \d \t @ \n
|
||||
--------------------------------------------------------------
|
||||
\r (\l)
|
||||
|
||||
85
.config/ml4w/postinstall.sh
Executable file
|
|
@ -0,0 +1,85 @@
|
|||
#!/bin/bash
|
||||
sleep 2
|
||||
clear
|
||||
if ! type "pacman" > /dev/null 2>&1; then
|
||||
echo ":: You're not on an Arch based distro"
|
||||
exit
|
||||
fi
|
||||
|
||||
_installPackagesPacman() {
|
||||
toInstall=();
|
||||
for pkg; do
|
||||
if [[ $(_isInstalledPacman "${pkg}") == 0 ]]; then
|
||||
echo ":: ${pkg} is already installed.";
|
||||
continue;
|
||||
fi;
|
||||
toInstall+=("${pkg}");
|
||||
done;
|
||||
|
||||
if [[ "${toInstall[@]}" == "" ]] ; then
|
||||
# echo "All pacman packages are already installed.";
|
||||
return;
|
||||
fi;
|
||||
|
||||
# printf "Package not installed:\n%s\n" "${toInstall[@]}";
|
||||
sudo pacman --noconfirm -S "${toInstall[@]}";
|
||||
}
|
||||
|
||||
_isInstalledPacman() {
|
||||
package="$1";
|
||||
check="$(sudo pacman -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
|
||||
}
|
||||
|
||||
echo -e "${GREEN}"
|
||||
figlet -f smslant "Post Install"
|
||||
echo -e "${NONE}"
|
||||
echo ":: The script helps you to install additional packages for your ML4W Dotfiles."
|
||||
echo
|
||||
reboot=0
|
||||
|
||||
# Check for xdg-desktop-portal-gtk
|
||||
if [[ $(_isInstalledPacman "xdg-desktop-portal-gtk") == 0 ]]; then
|
||||
echo ":: xdg-desktop-portal-gtk already installed"
|
||||
else
|
||||
echo -e "${GREEN}"
|
||||
figlet -f smslant "Portal GTK"
|
||||
echo -e "${NONE}"
|
||||
echo "xdg-desktop-portal-gtk is required to use dark mode in GTK4 Apps."
|
||||
echo
|
||||
if gum confirm "Do you want to install xdg-desktop-portal-gtk?"; then
|
||||
_installPackagesPacman "xdg-desktop-portal-gtk";
|
||||
reboot=1
|
||||
elif [ $? -eq 130 ]; then
|
||||
echo ":: Installation canceled."
|
||||
exit 130
|
||||
else
|
||||
echo ":: Installation of xdg-desktop-portal-gtk skipped."
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
# Select shell
|
||||
source ~/.config/ml4w/scripts/shell.sh
|
||||
|
||||
# Reboot
|
||||
clear
|
||||
echo -e "${GREEN}"
|
||||
figlet -f smslant "Reboot"
|
||||
echo -e "${NONE}"
|
||||
echo "A reboot of your system is recommended."
|
||||
echo
|
||||
if gum confirm "Do you want to reboot your system now?" ;then
|
||||
gum spin --spinner dot --title "Rebooting now..." -- sleep 3
|
||||
systemctl reboot
|
||||
elif [ $? -eq 130 ]; then
|
||||
exit 130
|
||||
else
|
||||
gum spin --spinner dot --title "Reboot skipped..." -- sleep 3
|
||||
fi
|
||||
echo ""
|
||||
1
.config/ml4w/scripts/ags.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
ags run
|
||||
6
.config/ml4w/scripts/arch/cleanup.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
clear
|
||||
aur_helper="$(cat ~/.config/ml4w/settings/aur.sh)"
|
||||
figlet -f smslant "Cleanup"
|
||||
echo
|
||||
$aur_helper -Scc
|
||||
66
.config/ml4w/scripts/arch/installprinters.sh
Executable 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
|
||||
43
.config/ml4w/scripts/arch/installtimeshift.sh
Executable 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
|
||||
12
.config/ml4w/scripts/arch/lid-improvements.sh
Executable 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
|
||||
56
.config/ml4w/scripts/arch/pacman.sh
Executable file
|
|
@ -0,0 +1,56 @@
|
|||
#!/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
|
||||
61
.config/ml4w/scripts/arch/snapshot.sh
Executable 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
|
||||
9
.config/ml4w/scripts/arch/unlock-pacman.sh
Executable 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
|
||||
9
.config/ml4w/scripts/checkpostinstall.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
if [ -f ~/.cache/ml4w-post-install ] ;then
|
||||
terminal=$(cat ~/.config/ml4w/settings/terminal.sh)
|
||||
$terminal -e ~/.config/ml4w/postinstall.sh
|
||||
rm ~/.cache/ml4w-post-install
|
||||
com.ml4w.welcome
|
||||
else
|
||||
echo ":: Post installation script already executed"
|
||||
exit
|
||||
fi
|
||||
7
.config/ml4w/scripts/cleanup.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
clear
|
||||
aur_helper="$(cat ~/.config/ml4w/settings/aur.sh)"
|
||||
figlet -f smslant "Cleanup"
|
||||
echo
|
||||
sudo pacman -Rns $(pacman -Qtdq)
|
||||
$aur_helper -Scc
|
||||
24
.config/ml4w/scripts/cliphist.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/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
|
||||
24
.config/ml4w/scripts/figlet.sh
Executable 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!"
|
||||
66
.config/ml4w/scripts/installprinters.sh
Executable 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
|
||||
43
.config/ml4w/scripts/installtimeshift.sh
Executable 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
|
||||
100
.config/ml4w/scripts/installupdates.sh
Executable file
|
|
@ -0,0 +1,100 @@
|
|||
#!/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
|
||||
12
.config/ml4w/scripts/lid-improvements.sh
Executable 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
|
||||
15
.config/ml4w/scripts/ml4w-autostart.sh
Executable 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
|
||||
flatpak run com.ml4w.welcome
|
||||
else
|
||||
echo ":: Autostart of ML4W Welcome App disabled."
|
||||
fi
|
||||
20
.config/ml4w/scripts/nm-applet.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/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
|
||||
60
.config/ml4w/scripts/pacman.sh
Executable 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
|
||||
61
.config/ml4w/scripts/sddm-wallpaper.sh
Executable file
|
|
@ -0,0 +1,61 @@
|
|||
#!/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
|
||||
98
.config/ml4w/scripts/shell.sh
Executable 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
|
||||
61
.config/ml4w/scripts/snapshot.sh
Executable 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
|
||||
19
.config/ml4w/scripts/thunarterminal.sh
Executable 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
|
||||
9
.config/ml4w/scripts/unlock-pacman.sh
Executable 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
|
||||
82
.config/ml4w/scripts/updates.sh
Executable file
|
|
@ -0,0 +1,82 @@
|
|||
#!/bin/bash
|
||||
# _ _ _ _
|
||||
# | | | |_ __ __| | __ _| |_ ___ ___
|
||||
# | | | | '_ \ / _` |/ _` | __/ _ \/ __|
|
||||
# | |_| | |_) | (_| | (_| | || __/\__ \
|
||||
# \___/| .__/ \__,_|\__,_|\__\___||___/
|
||||
# |_|
|
||||
#
|
||||
|
||||
script_name=$(basename "$0")
|
||||
|
||||
# Count the instances
|
||||
instance_count=$(ps aux | grep -F "$script_name" | grep -v grep | grep -v $$ | wc -l)
|
||||
|
||||
if [ $instance_count -gt 1 ]; then
|
||||
sleep $instance_count
|
||||
fi
|
||||
|
||||
|
||||
# -----------------------------------------------------
|
||||
# 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
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Check for pacman or checkupdates-with-aur database lock and wait if necessary
|
||||
# -----------------------------------------------------------------------------
|
||||
check_lock_files() {
|
||||
local pacman_lock="/var/lib/pacman/db.lck"
|
||||
local checkup_lock="${TMPDIR:-/tmp}/checkup-db-${UID}/db.lck"
|
||||
|
||||
while [ -f "$pacman_lock" ] || [ -f "$checkup_lock" ]; do
|
||||
sleep 1
|
||||
done
|
||||
}
|
||||
|
||||
check_lock_files
|
||||
|
||||
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
|
||||
5
.config/ml4w/scripts/wlogout.sh
Executable 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
|
||||
11
.config/ml4w/sddm/readme.txt
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# CURRENTLY WORK IN PROGRESS TO CREATE A SDDM THEME
|
||||
|
||||
# Install sugar dark as a base
|
||||
yay -S sddm-sugar-dark
|
||||
|
||||
# In the [Theme] section simply add the themes name: Current=sugar-dark
|
||||
# Copy from /usr/lib/sddm/sddm.conf.d/default.conf
|
||||
/etc/sddm.conf.d/sddm.conf
|
||||
|
||||
# Test the theme
|
||||
sddm-greeter --test-mode --theme /usr/share/sddm/themes/sugar-dark
|
||||
12
.config/ml4w/sddm/scripts/disable.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
figlet -f smslant "Disable SDDM"
|
||||
if [ -f /etc/systemd/system/display-manager.service ]; then
|
||||
if gum confirm "Do you want to disable the current display manager?" ;then
|
||||
sudo rm /etc/systemd/system/display-manager.service
|
||||
echo ":: Current display manager removed."
|
||||
echo ":: Please reboot your system."
|
||||
fi
|
||||
else
|
||||
echo ":: No Display Manager enabled."
|
||||
fi
|
||||
sleep 3
|
||||
12
.config/ml4w/sddm/scripts/enable.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
figlet -f smslant "Enable SDDM"
|
||||
if [ -f /etc/systemd/system/display-manager.service ]; then
|
||||
echo ":: Display Manager is already enabled."
|
||||
else
|
||||
if gum confirm "Do you want to enable SDDM as your display manager?" ;then
|
||||
sudo systemctl enable sddm.service
|
||||
echo ":: Display manager SDDM has been enabled."
|
||||
echo ":: Please reboot your system!"
|
||||
fi
|
||||
fi
|
||||
sleep 3
|
||||
38
.config/ml4w/sddm/scripts/wallpaper.sh
Executable file
|
|
@ -0,0 +1,38 @@
|
|||
#!/bin/bash
|
||||
# _ _ _ _ _ _
|
||||
# | | | |_ __ __| | __ _| |_ ___ ___ __| | __| |_ __ ___
|
||||
# | | | | '_ \ / _` |/ _` | __/ _ \ / __|/ _` |/ _` | '_ ` _ \
|
||||
# | |_| | |_) | (_| | (_| | || __/ \__ \ (_| | (_| | | | | | |
|
||||
# \___/| .__/ \__,_|\__,_|\__\___| |___/\__,_|\__,_|_| |_| |_|
|
||||
# |_|
|
||||
#
|
||||
# by Stephan Raabe (2024)
|
||||
# -----------------------------------------------------
|
||||
cache_file="$HOME/.config/ml4w/cache/current_wallpaper"
|
||||
sleep 1
|
||||
clear
|
||||
figlet -f smslant "Set Wallpaper"
|
||||
echo
|
||||
echo "Set the 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 $HOME/.config/ml4w/sddm/sddm.conf /etc/sddm.conf.d/
|
||||
echo "File /etc/sddm.conf.d/sddm.conf updated."
|
||||
|
||||
current_wallpaper=$(cat "$cache_file")
|
||||
extension="${current_wallpaper##*.}"
|
||||
|
||||
sudo cp $current_wallpaper /usr/share/sddm/themes/sugar-candy/Backgrounds/current_wallpaper.$extension
|
||||
echo "Current wallpaper copied into /usr/share/sddm/themes/sugar-candy/Backgrounds/"
|
||||
new_wall=$(echo $current_wallpaper | sed "s|$HOME/wallpaper/||g")
|
||||
sudo cp $HOME/.config/ml4w/sddm/theme.conf /usr/share/sddm/themes/sugar-candy/
|
||||
sudo sed -i 's/CURRENTWALLPAPER/'"current_wallpaper.$extension"'/' /usr/share/sddm/themes/sugar-candy/theme.conf
|
||||
|
||||
echo "File theme.conf updated in /usr/share/sddm/themes/sugar-candy/"
|
||||
|
||||
echo "DONE! Please logout to test sddm."
|
||||
sleep 3
|
||||
138
.config/ml4w/sddm/sddm.conf
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
[Autologin]
|
||||
# Whether sddm should automatically log back into sessions when they exit
|
||||
Relogin=false
|
||||
|
||||
# Name of session file for autologin session (if empty try last logged in)
|
||||
Session=
|
||||
|
||||
# Username for autologin session
|
||||
User=
|
||||
|
||||
[General]
|
||||
# Which display server should be used.
|
||||
# Valid values are: x11, x11-user, wayland. Wayland support is experimental
|
||||
DisplayServer=x11
|
||||
|
||||
# Comma-separated list of environment variables to be set
|
||||
GreeterEnvironment=
|
||||
|
||||
# Halt command
|
||||
HaltCommand=/usr/bin/systemctl poweroff
|
||||
|
||||
# Input method module
|
||||
InputMethod=
|
||||
|
||||
# Comma-separated list of Linux namespaces for user session to enter
|
||||
Namespaces=
|
||||
|
||||
# Initial NumLock state. Can be on, off or none.
|
||||
# If property is set to none, numlock won't be changed
|
||||
# NOTE: Currently ignored if autologin is enabled.
|
||||
Numlock=none
|
||||
|
||||
# Reboot command
|
||||
RebootCommand=/usr/bin/systemctl reboot
|
||||
|
||||
|
||||
[Theme]
|
||||
# Current theme name
|
||||
Current=sugar-candy
|
||||
|
||||
# Cursor size used in the greeter
|
||||
CursorSize=24
|
||||
|
||||
# Cursor theme used in the greeter
|
||||
CursorTheme=Bibata-Modern-Ice
|
||||
|
||||
# Number of users to use as threshold
|
||||
# above which avatars are disabled
|
||||
# unless explicitly enabled with EnableAvatars
|
||||
DisableAvatarsThreshold=7
|
||||
|
||||
# Enable display of custom user avatars
|
||||
EnableAvatars=false
|
||||
|
||||
# Global directory for user avatars
|
||||
# The files should be named <username>.face.icon
|
||||
FacesDir=/usr/share/sddm/faces
|
||||
|
||||
# Font used in the greeter
|
||||
Font=
|
||||
|
||||
# Theme directory path
|
||||
# ThemeDir=/usr/share/sddm/themes
|
||||
ThemeDir=/usr/share/sddm/themes
|
||||
|
||||
[Users]
|
||||
# Default $PATH for logged in users
|
||||
DefaultPath=/usr/local/sbin:/usr/local/bin:/usr/bin
|
||||
|
||||
# Comma-separated list of shells.
|
||||
# Users with these shells as their default won't be listed
|
||||
HideShells=
|
||||
|
||||
# Comma-separated list of users that should not be listed
|
||||
HideUsers=
|
||||
|
||||
# Maximum user id for displayed users
|
||||
MaximumUid=60513
|
||||
|
||||
# Minimum user id for displayed users
|
||||
MinimumUid=1000
|
||||
|
||||
# Remember the session of the last successfully logged in user
|
||||
RememberLastSession=true
|
||||
|
||||
# Remember the last successfully logged in user
|
||||
RememberLastUser=true
|
||||
|
||||
# When logging in as the same user twice, restore the original session, rather than create a new one
|
||||
ReuseSession=true
|
||||
|
||||
|
||||
[Wayland]
|
||||
# Path of the Wayland compositor to execute when starting the greeter
|
||||
CompositorCommand=weston --shell=fullscreen-shell.so
|
||||
|
||||
# Enable Qt's automatic high-DPI scaling
|
||||
EnableHiDPI=true
|
||||
|
||||
# Path to a script to execute when starting the desktop session
|
||||
SessionCommand=/usr/share/sddm/scripts/wayland-session
|
||||
|
||||
# Comma-separated list of directories containing available Wayland sessions
|
||||
SessionDir=/usr/local/share/wayland-sessions,/usr/share/wayland-sessions
|
||||
|
||||
# Path to the user session log file
|
||||
SessionLogFile=.local/share/sddm/wayland-session.log
|
||||
|
||||
|
||||
[X11]
|
||||
# Path to a script to execute when starting the display server
|
||||
DisplayCommand=/usr/share/sddm/scripts/Xsetup
|
||||
|
||||
# Path to a script to execute when stopping the display server
|
||||
DisplayStopCommand=/usr/share/sddm/scripts/Xstop
|
||||
|
||||
# Enable Qt's automatic high-DPI scaling
|
||||
EnableHiDPI=true
|
||||
|
||||
# Arguments passed to the X server invocation
|
||||
ServerArguments=-nolisten tcp
|
||||
|
||||
# Path to X server binary
|
||||
ServerPath=/usr/bin/X
|
||||
|
||||
# Path to a script to execute when starting the desktop session
|
||||
SessionCommand=/usr/share/sddm/scripts/Xsession
|
||||
|
||||
# Comma-separated list of directories containing available X sessions
|
||||
SessionDir=/usr/local/share/xsessions,/usr/share/xsessions
|
||||
|
||||
# Path to the user session log file
|
||||
SessionLogFile=.local/share/sddm/xorg-session.log
|
||||
|
||||
# Path to Xephyr binary
|
||||
XephyrPath=/usr/bin/Xephyr
|
||||
|
||||
|
||||
138
.config/ml4w/sddm/theme.conf
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
[General]
|
||||
|
||||
Background="Backgrounds/CURRENTWALLPAPER"
|
||||
#Background="/home/patrick/dotfiles/.config/ml4w/assets/wallpaper3.png"
|
||||
|
||||
## Path relative to the theme root directory. Most standard image file formats are allowed including support for transparency. (e.g. background.jpeg/illustration.GIF/Foto.png/undraw.svgz)
|
||||
|
||||
DimBackgroundImage="0.0"
|
||||
## Double between 0 and 1 used for the alpha channel of a darkening overlay. Use to darken your background image on the fly.
|
||||
|
||||
ScaleImageCropped="true"
|
||||
## Whether the image should be cropped when scaled proportionally. Setting this to false will fit the whole image instead, possibly leaving white space. This can be exploited beautifully with illustrations (try it with "undraw.svg" included in the theme).
|
||||
|
||||
# ScreenWidth="2560"
|
||||
# ScreenHeight="1440"
|
||||
## Adjust to your resolution to help SDDM speed up on calculations
|
||||
|
||||
|
||||
|
||||
## [Blur Settings]
|
||||
|
||||
FullBlur="false"
|
||||
PartialBlur="true"
|
||||
## Enable or disable the blur effect; if HaveFormBackground is set to true then PartialBlur will trigger the BackgroundColor of the form element to be partially transparent and blend with the blur.
|
||||
|
||||
BlurRadius="100"
|
||||
## Set the strength of the blur effect. Anything above 100 is pretty strong and might slow down the rendering time. 0 is like setting false for any blur.
|
||||
|
||||
|
||||
|
||||
## [Design Customizations]
|
||||
|
||||
HaveFormBackground="false"
|
||||
## Have a full opacity background color behind the form that takes slightly more than 1/3 of screen estate; if PartialBlur is set to true then HaveFormBackground will trigger the BackgroundColor of the form element to be partially transparent and blend with the blur.
|
||||
|
||||
FormPosition="left"
|
||||
## Position of the form which takes roughly 1/3 of screen estate. Can be left, center or right.
|
||||
|
||||
BackgroundImageHAlignment="center"
|
||||
## Horizontal position of the background picture relative to its visible area. Applies when ScaleImageCropped is set to false or when HaveFormBackground is set to true and FormPosition is either left or right. Can be left, center or right; defaults to center if none is passed.
|
||||
|
||||
BackgroundImageVAlignment="center"
|
||||
## As before but for the vertical position of the background picture relative to its visible area.
|
||||
|
||||
MainColor="white"
|
||||
## Used for all elements when not focused/hovered etc. Usually the best effect is achieved by having this be either white or a very dark grey like #444 (not black for smoother antialias)
|
||||
## Colors can be HEX or Qt names (e.g. red/salmon/blanchedalmond). See https://doc.qt.io/qt-5/qml-color.html
|
||||
|
||||
AccentColor="#fb884f"
|
||||
## Used for elements in focus/hover/pressed. Should be contrasting to the background and the MainColor to achieve the best effect.
|
||||
|
||||
BackgroundColor="#444"
|
||||
## Used for the user and session selection background as well as for ScreenPadding and FormBackground when either is true. If PartialBlur and FormBackground are both enabled this color will blend with the blur effect.
|
||||
|
||||
OverrideLoginButtonTextColor=""
|
||||
## The text of the login button may become difficult to read depending on your color choices. Use this option to set it independently for legibility.
|
||||
|
||||
InterfaceShadowSize="6"
|
||||
## Integer used as multiplier. Size of the shadow behind the user and session selection background. Decrease or increase if it looks bad on your background. Initial render can be slow no values above 5-7.
|
||||
|
||||
InterfaceShadowOpacity="0.6"
|
||||
## Double between 0 and 1. Alpha channel of the shadow behind the user and session selection background. Decrease or increase if it looks bad on your background.
|
||||
|
||||
RoundCorners="20"
|
||||
## Integer in pixels. Radius of the input fields and the login button. Empty for square. Can cause bad antialiasing of the fields.
|
||||
|
||||
ScreenPadding="0"
|
||||
## Integer in pixels. Increase or delete this to have a padding of color BackgroundColor all around your screen. This makes your login greeter appear as if it was a canvas. Cool!
|
||||
|
||||
Font="Noto Sans"
|
||||
## If you want to choose a custom font it will have to be available to the X root user. See https://wiki.archlinux.org/index.php/fonts#Manual_installation
|
||||
|
||||
FontSize="11"
|
||||
## Only set a fixed value if fonts are way too small for your resolution. Preferrably kept empty.
|
||||
|
||||
|
||||
|
||||
## [Interface Behavior]
|
||||
|
||||
ForceRightToLeft="false"
|
||||
## Revert the layout either because you would like the login to be on the right hand side or SDDM won't respect your language locale for some reason. This will reverse the current position of FormPosition if it is either left or right and in addition position some smaller elements on the right hand side of the form itself (also when FormPosition is set to center).
|
||||
|
||||
ForceLastUser="true"
|
||||
## Have the last successfully logged in user appear automatically in the username field.
|
||||
|
||||
ForcePasswordFocus="true"
|
||||
## Give automatic focus to the password field. Together with ForceLastUser this makes for the fastest login experience.
|
||||
|
||||
ForceHideCompletePassword="true"
|
||||
## If you don't like to see any character at all not even while being entered set this to true.
|
||||
|
||||
ForceHideVirtualKeyboardButton="false"
|
||||
## Do not show the button for the virtual keyboard at all. This will completely disable functionality for the virtual keyboard even if it is installed and activated in sddm.conf
|
||||
|
||||
ForceHideSystemButtons="false"
|
||||
## Completely disable and hide any power buttons on the greeter.
|
||||
|
||||
AllowEmptyPassword="false"
|
||||
## Enable login for users without a password. This is discouraged. Makes the login button always enabled.
|
||||
|
||||
AllowBadUsernames="false"
|
||||
## Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! Also shows username as is instead of capitalized.
|
||||
|
||||
|
||||
|
||||
## [Locale Settings]
|
||||
|
||||
Locale=""
|
||||
## The time and date locale should usually be set in your system settings. Only hard set this if something is not working by default or you want a seperate locale setting in your login screen.
|
||||
|
||||
HourFormat="HH:mm"
|
||||
## Defaults to Locale.ShortFormat - Accepts "long" or a custom string like "hh:mm A". See http://doc.qt.io/qt-5/qml-qtqml-date.html
|
||||
|
||||
DateFormat="dddd, d of MMMM"
|
||||
## Defaults to Locale.LongFormat - Accepts "short" or a custom string like "dddd, d 'of' MMMM". See http://doc.qt.io/qt-5/qml-qtqml-date.html
|
||||
|
||||
|
||||
|
||||
## [Translations]
|
||||
|
||||
HeaderText="Welcome!"
|
||||
## Header can be empty to not display any greeting at all. Keep it short.
|
||||
|
||||
## SDDM may lack proper translation for every element. Suger defaults to SDDM translations. Please help translate SDDM as much as possible for your language: https://github.com/sddm/sddm/wiki/Localization. These are in order as they appear on screen.
|
||||
|
||||
TranslatePlaceholderUsername=""
|
||||
TranslatePlaceholderPassword=""
|
||||
TranslateShowPassword=""
|
||||
TranslateLogin=""
|
||||
TranslateLoginFailedWarning=""
|
||||
TranslateCapslockWarning=""
|
||||
TranslateSession=""
|
||||
TranslateSuspend=""
|
||||
TranslateHibernate=""
|
||||
TranslateReboot=""
|
||||
TranslateShutdown=""
|
||||
TranslateVirtualKeyboardButton=""
|
||||
## These don't necessarily need to translate anything. You can enter whatever you want here.
|
||||
1
.config/ml4w/settings/ai.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
$(cat ~/.config/ml4w/settings/browser.sh) --new-window https://chat.openai.com
|
||||
1
.config/ml4w/settings/aur.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
paru
|
||||
1
.config/ml4w/settings/blur.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
50x30
|
||||
1
.config/ml4w/settings/browser.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
zen-browser
|
||||
1
.config/ml4w/settings/calculator.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
qalculate-gtk
|
||||
1
.config/ml4w/settings/calendar.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
|
||||
0
.config/ml4w/settings/dock-disabled
Normal file
1
.config/ml4w/settings/dotfiles-folder.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
dotfiles
|
||||
1
.config/ml4w/settings/dunst_position.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
top-center
|
||||
1
.config/ml4w/settings/editor.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
xed
|
||||
1
.config/ml4w/settings/email.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
betterbird
|
||||
1
.config/ml4w/settings/emojipicker.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
flatpak run com.ml4w.sidebar
|
||||
1
.config/ml4w/settings/eww-monitor.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
auto
|
||||
1
.config/ml4w/settings/filemanager.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
thunar
|
||||
1
.config/ml4w/settings/hypridle_dpms_timeout.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
1100
|
||||
1
.config/ml4w/settings/hypridle_hyprlock_timeout.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
1000
|
||||
1
.config/ml4w/settings/hypridle_suspend_timeout.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
1800
|
||||
8
.config/ml4w/settings/hyprpaper.tpl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Preload Wallpapers
|
||||
preload = WALLPAPER
|
||||
|
||||
# Set Wallpapers
|
||||
wallpaper = ,WALLPAPER
|
||||
|
||||
# Disable Splash
|
||||
splash = false
|
||||
1
.config/ml4w/settings/hyprpicker.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
hyprpicker -a -f hex
|
||||
1
.config/ml4w/settings/hyprshade.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
hyprshade_filter="blue-light-filter-50"
|
||||
1
.config/ml4w/settings/installupdates.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
$(cat ~/.config/ml4w/settings/terminal.sh) --class dotfiles-floating -e ~/.config/ml4w/scripts/installupdates.sh
|
||||
1
.config/ml4w/settings/kitty-cursor-trail.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
cursor_trail 1
|
||||
1
.config/ml4w/settings/ml4w-sidebar.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
ags toggle sidebar
|
||||
1
.config/ml4w/settings/networkmanager.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
$(cat ~/.config/ml4w/settings/terminal.sh) --class dotfiles-floating -e nmtui
|
||||
1
.config/ml4w/settings/notification.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
dunst
|
||||
1
.config/ml4w/settings/platform.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
arch
|
||||
4
.config/ml4w/settings/printer-drivers.sh
Normal 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
|
||||
1
.config/ml4w/settings/rofi-border-radius.rasi
Normal file
|
|
@ -0,0 +1 @@
|
|||
* { border-radius: 2em; }
|
||||
1
.config/ml4w/settings/rofi-border.rasi
Normal file
|
|
@ -0,0 +1 @@
|
|||
* { border-width: 3px; }
|
||||
1
.config/ml4w/settings/rofi-font.rasi
Normal file
|
|
@ -0,0 +1 @@
|
|||
configuration { font: "Fira Sans 11"; }
|
||||
1
.config/ml4w/settings/rofi_bordersize.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
3
|
||||
1
.config/ml4w/settings/screenshot-editor.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
pinta
|
||||
1
.config/ml4w/settings/screenshot-filename.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
NAME="screenshot_$(date +%d%m%Y_%H%M%S).jpg"
|
||||
1
.config/ml4w/settings/screenshot-folder.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
screenshot_folder="$HOME/Pictures"
|
||||
132
.config/ml4w/settings/sddm/theme.tpl
Normal 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
|
||||
1
.config/ml4w/settings/software.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
$(cat ~/.config/ml4w/settings/terminal.sh) --class dotfiles-floating -e pacseek
|
||||
1
.config/ml4w/settings/system-monitor.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
$(cat ~/.config/ml4w/settings/terminal.sh) --class dotfiles-floating -e btop
|
||||
1
.config/ml4w/settings/systeminfo.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
missioncenter
|
||||
1
.config/ml4w/settings/terminal.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
kitty
|
||||
1
.config/ml4w/settings/wallpaper-automation.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
60
|
||||
1
.config/ml4w/settings/wallpaper-effect.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
off
|
||||