Skip to content

Commit 38f5a00

Browse files
authored
Merge pull request #2622 from basecamp/dev
v3.1.1
2 parents 7303698 + 12f9bea commit 38f5a00

File tree

7 files changed

+64
-42
lines changed

7 files changed

+64
-42
lines changed

bin/omarchy-install-terminal

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ fi
88
package="$1"
99

1010
# Install package
11-
omarchy-pkg-add $package
11+
if omarchy-pkg-add $package; then
12+
# Set as default terminal
13+
echo "Setting $package as new default terminal..."
14+
sed -i "/export TERMINAL=/ c\export TERMINAL=$package" ~/.config/uwsm/default
1215

13-
# Set as default terminal
14-
echo "Setting $package as new default terminal..."
15-
sed -i "/export TERMINAL=/ c\export TERMINAL=$package" ~/.config/uwsm/default
16-
17-
# Restart is needed for new default to take effect
18-
echo
19-
gum confirm "Restart to use new terminal?" && systemctl reboot --no-wall
16+
# Restart is needed for new default to take effect
17+
echo
18+
gum confirm "Restart to use new terminal?" && systemctl reboot --no-wall
19+
else
20+
echo "Failed to install $package"
21+
fi

bin/omarchy-windows-vm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Categories=System;Virtualization;
5858
EOF
5959

6060
# Get system resources
61-
TOTAL_RAM=$(free -h | grep "^Mem:" | awk '{print $2}')
62-
TOTAL_RAM_GB=$(free -g | grep "^Mem:" | awk '{print $2}')
61+
TOTAL_RAM=$(free -h | awk 'NR==2 {print $2}')
62+
TOTAL_RAM_GB=$(awk 'NR==1 {printf "%d", $2/1024/1024}' /proc/meminfo)
6363
TOTAL_CORES=$(nproc)
6464

6565
echo ""
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copy / Paste
2-
bind = SUPER, C, sendshortcut, CTRL, Insert,
3-
bind = SUPER, V, sendshortcut, SHIFT, Insert,
4-
bind = SUPER, X, sendshortcut, CTRL, X,
2+
bindd = SUPER, C, Copy, sendshortcut, CTRL, Insert,
3+
bindd = SUPER, V, Paste, sendshortcut, SHIFT, Insert,
4+
bindd = SUPER, X, Cut, sendshortcut, CTRL, X,
55
bindd = SUPER CTRL, V, Clipboard, exec, omarchy-launch-walker -m clipboard

default/hypr/bindings/tiling-v2.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ bindd = SUPER, J, Toggle split, togglesplit, # dwindle
77
bindd = SUPER, P, Pseudo window, pseudo, # dwindle
88
bindd = SUPER, T, Toggle floating, togglefloating,
99
bindd = SUPER, F, Force full screen, fullscreen, 0
10+
bindd = SUPER CTRL, F, Tiled full screen, fullscreenstate, 0 2
1011
bindd = SUPER ALT, F, Full width, fullscreen, 1
1112

1213
# Move focus with SUPER + arrow keys
@@ -63,8 +64,8 @@ bindd = SUPER SHIFT, code:20, Shrink window up, resizeactive, 0 -100
6364
bindd = SUPER SHIFT, code:21, Expand window down, resizeactive, 0 100
6465

6566
# Scroll through existing workspaces with SUPER + scroll
66-
bindd = SUPER, MOUSE_DOWN, Scroll active workspace forward, workspace, e+1
67-
bindd = SUPER, MOUSE_UP, Scroll active workspace backward, workspace, e-1
67+
bindd = SUPER, mouse_down, Scroll active workspace forward, workspace, e+1
68+
bindd = SUPER, mouse_up, Scroll active workspace backward, workspace, e-1
6869

6970
# Move/resize windows with mainMod + LMB/RMB and dragging
7071
bindmd = SUPER, mouse:272, Move window, movewindow

migrations/1758107878.sh

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

migrations/1758107879.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
echo "Migrate to Walker 2.0.0"
2+
3+
NEEDS_MIGRATION=false
4+
5+
PACKAGES=(
6+
"elephant"
7+
"elephant-calc"
8+
"elephant-clipboard"
9+
"elephant-bluetooth"
10+
"elephant-desktopapplications"
11+
"elephant-files"
12+
"elephant-menus"
13+
"elephant-providerlist"
14+
"elephant-runner"
15+
"elephant-symbols"
16+
"elephant-unicode"
17+
"elephant-websearch"
18+
"elephant-todo"
19+
"walker"
20+
)
21+
22+
for pkg in "${PACKAGES[@]}"; do
23+
if ! omarchy-pkg-present "$pkg"; then
24+
NEEDS_MIGRATION=true
25+
break
26+
fi
27+
done
28+
29+
WALKER_MAJOR=$(walker -v 2>&1 | grep -oP '^\d+' || echo "0")
30+
if [[ "$WALKER_MAJOR" -lt 2 ]]; then
31+
NEEDS_MIGRATION=true
32+
fi
33+
34+
if $NEEDS_MIGRATION; then
35+
kill -9 $(pgrep -x walker) 2>/dev/null || true
36+
37+
omarchy-pkg-drop walker-bin walker-bin-debug
38+
39+
omarchy-pkg-add "${PACKAGES[@]}"
40+
41+
source $OMARCHY_PATH/install/config/walker-elephant.sh
42+
43+
rm -rf ~/.config/walker/themes
44+
omarchy-refresh-walker
45+
fi

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.0
1+
3.1.1

0 commit comments

Comments
 (0)