Skip to content

Commit b322d1c

Browse files
authored
Merge pull request #356 from basecamp/dev
Omarchy v1.6.2
2 parents 46e9721 + d503b0c commit b322d1c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+538
-546
lines changed

ansi.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

bin/omarchy

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ OMARCHY_VERSION=$(git -C ~/.local/share/omarchy describe --tags --abbrev=0 2>/de
44
PATH="$PATH:$HOME/.local/share/omarchy/bin"
55

66
show_ascii_art() {
7-
source ~/.local/share/omarchy/ansi.sh
7+
clear
8+
tte -i ~/.local/share/omarchy/logo.txt --frame-rate 640 expand
89
echo " $OMARCHY_VERSION"
910
}
1011

@@ -95,9 +96,10 @@ remove_theme_prompt() {
9596

9697
setup_menu() {
9798
show_ascii_art
98-
local menu=("Dropbox" "Docker DBs" "Fingerprint sensor" "Fido2 device" "Back")
99+
local menu=("Dropbox" "Steam" "Docker DBs" "Fingerprint sensor" "Fido2 device" "Back")
99100
local commands=(
100101
"omarchy-setup-dropbox"
102+
"omarchy-setup-steam"
101103
"setup_docker_dbs"
102104
"omarchy-setup-fingerprint"
103105
"omarchy-setup-fido2"
@@ -126,10 +128,10 @@ setup_docker_dbs() {
126128
if [[ -n "$choices" ]]; then
127129
for db in $choices; do
128130
case $db in
129-
MariaDB) sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mariadb11 -e MARIADB_ROOT_PASSWORD= -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true mariadb:11.8 ;;
130131
MySQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8.4 ;;
131-
Redis) sudo docker run -d --restart unless-stopped -p "127.0.0.1:6379:6379" --name=redis redis:7 ;;
132132
PostgreSQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:5432:5432" --name=postgres16 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:16 ;;
133+
MariaDB) sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mariadb11 -e MARIADB_ROOT_PASSWORD= -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true mariadb:11.8 ;;
134+
Redis) sudo docker run -d --restart unless-stopped -p "127.0.0.1:6379:6379" --name=redis redis:7 ;;
133135
esac
134136
done
135137
fi

bin/omarchy-cmd-screenrecord

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22

33
# Set recorder based on GPU
44

5+
[[ -f ~/.config/user-dirs.dirs ]] && source ~/.config/user-dirs.dirs
6+
OUTPUT_DIR="${OMARCHY_SCREENRECORD_DIR:-${XDG_VIDEOS_DIR:-$HOME/Videos}}"
7+
8+
if [[ ! -d "$OUTPUT_DIR" ]]; then
9+
notify-send "Screen recording directory does not exist: $OUTPUT_DIR" -u critical -t 3000
10+
exit 1
11+
fi
12+
513
screenrecording() {
6-
filename="$HOME/Videos/screenrecording-$(date +'%Y-%m-%d_%H-%M-%S').mp4"
14+
filename="$OUTPUT_DIR/screenrecording-$(date +'%Y-%m-%d_%H-%M-%S').mp4"
715
notify-send "Screen recording starting..." -t 1000
816
sleep 1
917

@@ -17,7 +25,7 @@ screenrecording() {
1725
if pgrep -x wl-screenrec >/dev/null || pgrep -x wf-recorder >/dev/null; then
1826
pkill -x wl-screenrec
1927
pkill -x wf-recorder
20-
notify-send "Screen recording saved to ~/Videos" -t 2000
28+
notify-send "Screen recording saved to $OUTPUT_DIR" -t 2000
2129
elif [[ "$1" == "output" ]]; then
2230
screenrecording
2331
else

bin/omarchy-cmd-screenshot

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
#!/bin/bash
22

3-
hyprshot -m ${1:-region} --raw |
3+
[[ -f ~/.config/user-dirs.dirs ]] && source ~/.config/user-dirs.dirs
4+
OUTPUT_DIR="${OMARCHY_SCREENSHOT_DIR:-${XDG_PICTURES_DIR:-$HOME/Pictures}}"
5+
6+
if [[ ! -d "$OUTPUT_DIR" ]]; then
7+
notify-send "Screenshot directory does not exist: $OUTPUT_DIR" -u critical -t 3000
8+
exit 1
9+
fi
10+
11+
pkill slurp || hyprshot -m ${1:-region} --raw |
412
satty --filename - \
5-
--output-filename ~/Pictures/screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png \
13+
--output-filename "$OUTPUT_DIR/screenshot-$(date +'%Y-%m-%d_%H-%M-%S').png" \
614
--early-exit \
715
--actions-on-enter save-to-clipboard \
816
--save-after-copy \

bin/omarchy-cmd-tzupdate

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
sudo tzupdate
4+
new_timezone=$(timedatectl show -p Timezone --value)
5+
notify-send "Timezone has been set to $new_timezone"

bin/omarchy-refresh-applications

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ mkdir -p ~/.local/share/applications
1010
cp ~/.local/share/omarchy/applications/*.desktop ~/.local/share/applications/
1111
cp ~/.local/share/omarchy/applications/hidden/*.desktop ~/.local/share/applications/
1212

13-
if [ -z "$OMARCHY_BARE" ]; then
13+
# Only copy xtras if user is not in bare mode
14+
if [[ ! -f ~/.local/state/omarchy/bare.mode ]] && [ -z "$OMARCHY_BARE" ]; then
1415
cp ~/.local/share/omarchy/applications/xtras/*.desktop ~/.local/share/applications/
1516
fi
1617

bin/omarchy-setup-steam

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
echo "Adding multilib repository for 32-bit compatibility"
4+
sudo sed -i '/^\s*#\[multilib\]/,/^$/{s/^\s*#//}' /etc/pacman.conf
5+
sudo pacman -Sy
6+
7+
echo "Now pick dependencies matching your graphics card"
8+
yay -S steam
9+
gtk-launch steam >/dev/null 2>&1 &

bin/omarchy-theme-bg-next

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ TOTAL=${#BACKGROUNDS[@]}
1111
if [[ $TOTAL -eq 0 ]]; then
1212
notify-send "No background was found for theme" -t 2000
1313
pkill -x swaybg
14-
uwsm app -- swaybg --color '#000000' >/dev/null 2>&1 &
14+
setsid uwsm app -- swaybg --color '#000000' >/dev/null 2>&1 &
1515
else
1616
# Get current background from symlink
1717
if [[ -L "$CURRENT_BACKGROUND_LINK" ]]; then
@@ -44,5 +44,5 @@ else
4444

4545
# Relaunch swaybg
4646
pkill -x swaybg
47-
uwsm app -- swaybg -i "$CURRENT_BACKGROUND_LINK" -m fill >/dev/null 2>&1 &
47+
setsid uwsm app -- swaybg -i "$CURRENT_BACKGROUND_LINK" -m fill >/dev/null 2>&1 &
4848
fi

bin/omarchy-theme-install

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ REPO_URL="$1"
1212
THEMES_DIR="$HOME/.config/omarchy/themes"
1313
THEME_NAME=$(basename "$REPO_URL" .git | sed -E 's/^omarchy-//; s/-theme$//')
1414
THEME_PATH="$THEMES_DIR/$THEME_NAME"
15-
THEME_BACKGROUND_PATH="$THEME_PATH/backgrounds"
16-
BACKGROUNDS_PATH="$HOME/.config/omarchy/backgrounds"
17-
BACKGROUNDS_THEME_PATH="$BACKGROUNDS_PATH/$THEME_NAME"
1815

1916
# Remove existing theme if present
2017
if [ -d "$THEME_PATH" ]; then
@@ -27,10 +24,5 @@ if ! git clone "$REPO_URL" "$THEME_PATH"; then
2724
exit 1
2825
fi
2926

30-
# Link backgrounds if present
31-
if [ -d $THEME_BACKGROUND_PATH ]; then
32-
ln -snf $THEME_BACKGROUND_PATH $BACKGROUNDS_THEME_PATH
33-
fi
34-
3527
# Apply the new theme with omarchy-theme-set
3628
omarchy-theme-set $THEME_NAME

boot.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ansi_art=' ▄██████▄ ▄▄▄▄███▄▄▄▄
1010
▀██████▀ ▀█ ███ █▀ ███ █▀ ███ ███ ████████▀ ███ █▀ ▀█████▀
1111
███ ███ '
1212

13+
clear
1314
echo -e "\n$ansi_art\n"
1415

1516
sudo pacman -Sy --noconfirm --needed git

0 commit comments

Comments
 (0)