mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-03 23:29:23 +00:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
1306085102 | |||
755633cd95 | |||
63179c7d80 | |||
5a29322bf8 | |||
fc911e16e6 |
3
bin/omarchy-refresh-hyprland
Executable file
3
bin/omarchy-refresh-hyprland
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
omarchy-refresh-config hypr/hyprland.conf
|
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user