5 Commits
v1.10.0 ... dev

Author SHA1 Message Date
1306085102 Merge pull request #471 from rmacklin/fix-timeout
Fix hypridle timeout to actually be 2.5min
2025-08-03 20:12:13 +02:00
755633cd95 Documentation 2025-08-03 20:07:46 +02:00
63179c7d80 Add format-drive function to wipe drives 2025-08-03 19:59:25 +02:00
5a29322bf8 Fix hypridle timeout to actually be 2.5min
The intent was for this to be 2.5 minutes but 180s is 3 minutes.
2025-08-03 10:23:08 -07:00
fc911e16e6 Add script to update hyprland itself
Nice if you don't make any adjustments yourself
2025-08-03 16:57:53 +02:00
3 changed files with 25 additions and 1 deletions

3
bin/omarchy-refresh-hyprland Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
omarchy-refresh-config hypr/hyprland.conf

View File

@ -7,7 +7,7 @@ general {
}
listener {
timeout = 180 # 2.5min
timeout = 150 # 2.5min
on-timeout = pidof hyprlock || omarchy-launch-screensaver # start screensaver (if we haven't locked already)
}

View File

@ -15,6 +15,27 @@ iso2sd() {
fi
}
# Format an entire drive for a single partition using ext4
format-drive() {
if [ $# -ne 2 ]; then
echo "Usage: format-drive <device> <name>"
echo "Example: format-drive /dev/sda 'My Stuff'"
echo -e "\nAvailable drives:"
lsblk -d -o NAME -n | awk '{print "/dev/"$1}'
else
echo "WARNING: This will completely erase all data on $1 and label it '$2'."
read -rp "Are you sure you want to continue? (y/N): " confirm
if [[ "$confirm" =~ ^[Yy]$ ]]; then
sudo wipefs -a "$1"
sudo dd if=/dev/zero of="$1" bs=1M count=100 status=progress
sudo parted -s "$1" mklabel gpt
sudo parted -s "$1" mkpart primary ext4 1MiB 100%
sudo mkfs.ext4 -L "$2" "$([[ $1 == *"nvme"* ]] && echo "${1}p1" || echo "${1}1")"
echo "Drive $1 formatted and labeled '$2'."
fi
fi
}
# Create a desktop launcher for a web app
web2app() {
if [ "$#" -ne 3 ]; then