mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
12 Commits
v3.1.0
...
optional-h
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd632f90e1 | ||
|
|
42a5b3bf22 | ||
|
|
f0f319ed92 | ||
|
|
12f9beab86 | ||
|
|
572bbf823b | ||
|
|
f297ad1e99 | ||
|
|
c4f93787d6 | ||
|
|
730cba2e2a | ||
|
|
d70d84af71 | ||
|
|
d11d30ac31 | ||
|
|
ef52bb5f93 | ||
|
|
73036988ed |
12
bin/omarchy-install-hyprscrolling
Executable file
12
bin/omarchy-install-hyprscrolling
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Installing hyprscrolling plugin"
|
||||
|
||||
omarchy-pkg-add meson cpio cmake
|
||||
hyprpm update
|
||||
hyprpm add https://github.com/hyprwm/hyprland-plugins
|
||||
hyprpm enable hyprscrolling
|
||||
|
||||
if ! grep -q '/hypr/scrolling\.conf' ~/.config/hypr/hyprland.conf; then
|
||||
sed -i '/source = ~\/\.local\/share\/omarchy\/default\/hypr\/windows\.conf/a source = ~/.local/share/omarchy/default/hypr/scrolling.conf' ~/.config/hypr/hyprland.conf
|
||||
fi
|
||||
@@ -8,12 +8,14 @@ fi
|
||||
package="$1"
|
||||
|
||||
# Install package
|
||||
omarchy-pkg-add $package
|
||||
if omarchy-pkg-add $package; then
|
||||
# Set as default terminal
|
||||
echo "Setting $package as new default terminal..."
|
||||
sed -i "/export TERMINAL=/ c\export TERMINAL=$package" ~/.config/uwsm/default
|
||||
|
||||
# Set as default terminal
|
||||
echo "Setting $package as new default terminal..."
|
||||
sed -i "/export TERMINAL=/ c\export TERMINAL=$package" ~/.config/uwsm/default
|
||||
|
||||
# Restart is needed for new default to take effect
|
||||
echo
|
||||
gum confirm "Restart to use new terminal?" && systemctl reboot --no-wall
|
||||
# Restart is needed for new default to take effect
|
||||
echo
|
||||
gum confirm "Restart to use new terminal?" && systemctl reboot --no-wall
|
||||
else
|
||||
echo "Failed to install $package"
|
||||
fi
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
echo "Installing VSCode..."
|
||||
omarchy-pkg-add visual-studio-code-bin
|
||||
|
||||
mkdir -p ~/.vscode
|
||||
mkdir -p ~/.vscode ~/.config/Code/User
|
||||
|
||||
cat > ~/.vscode/argv.json << 'EOF'
|
||||
// This configuration file allows you to pass permanent command line arguments to VS Code.
|
||||
|
||||
@@ -232,7 +232,7 @@ show_setup_security_menu() {
|
||||
}
|
||||
|
||||
show_install_menu() {
|
||||
case $(menu "Install" " Package\n AUR\n Web App\n TUI\n Service\n Style\n Development\n Editor\n Terminal\n AI\n Windows\n Gaming") in
|
||||
case $(menu "Install" " Package\n AUR\n Web App\n TUI\n Service\n Style\n Development\n Editor\n Terminal\n AI\n Windows\n Gaming\n Extra") in
|
||||
*Package*) terminal omarchy-pkg-install ;;
|
||||
*AUR*) terminal omarchy-pkg-aur-install ;;
|
||||
*Web*) present_terminal omarchy-webapp-install ;;
|
||||
@@ -245,6 +245,7 @@ show_install_menu() {
|
||||
*AI*) show_install_ai_menu ;;
|
||||
*Windows*) present_terminal "omarchy-windows-vm install" ;;
|
||||
*Gaming*) show_install_gaming_menu ;;
|
||||
*Extra*) show_install_extra_menu ;;
|
||||
*) show_main_menu ;;
|
||||
esac
|
||||
}
|
||||
@@ -309,6 +310,13 @@ show_install_gaming_menu() {
|
||||
esac
|
||||
}
|
||||
|
||||
show_install_extra_menu() {
|
||||
case $(menu "Install" " Hyprscrolling") in
|
||||
*Hyprscrolling*) present_terminal omarchy-install-hyprscrolling ;;
|
||||
*) show_install_menu ;;
|
||||
esac
|
||||
}
|
||||
|
||||
show_install_style_menu() {
|
||||
case $(menu "Install" " Theme\n Background\n Font") in
|
||||
*Theme*) present_terminal omarchy-theme-install ;;
|
||||
|
||||
@@ -58,8 +58,8 @@ Categories=System;Virtualization;
|
||||
EOF
|
||||
|
||||
# Get system resources
|
||||
TOTAL_RAM=$(free -h | grep "^Mem:" | awk '{print $2}')
|
||||
TOTAL_RAM_GB=$(free -g | grep "^Mem:" | awk '{print $2}')
|
||||
TOTAL_RAM=$(free -h | awk 'NR==2 {print $2}')
|
||||
TOTAL_RAM_GB=$(awk 'NR==1 {printf "%d", $2/1024/1024}' /proc/meminfo)
|
||||
TOTAL_CORES=$(nproc)
|
||||
|
||||
echo ""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Copy / Paste
|
||||
bind = SUPER, C, sendshortcut, CTRL, Insert,
|
||||
bind = SUPER, V, sendshortcut, SHIFT, Insert,
|
||||
bind = SUPER, X, sendshortcut, CTRL, X,
|
||||
bindd = SUPER, C, Copy, sendshortcut, CTRL, Insert,
|
||||
bindd = SUPER, V, Paste, sendshortcut, SHIFT, Insert,
|
||||
bindd = SUPER, X, Cut, sendshortcut, CTRL, X,
|
||||
bindd = SUPER CTRL, V, Clipboard, exec, omarchy-launch-walker -m clipboard
|
||||
|
||||
@@ -7,6 +7,7 @@ bindd = SUPER, J, Toggle split, togglesplit, # dwindle
|
||||
bindd = SUPER, P, Pseudo window, pseudo, # dwindle
|
||||
bindd = SUPER, T, Toggle floating, togglefloating,
|
||||
bindd = SUPER, F, Force full screen, fullscreen, 0
|
||||
bindd = SUPER CTRL, F, Tiled full screen, fullscreenstate, 0 2
|
||||
bindd = SUPER ALT, F, Full width, fullscreen, 1
|
||||
|
||||
# Move focus with SUPER + arrow keys
|
||||
@@ -63,8 +64,8 @@ bindd = SUPER SHIFT, code:20, Shrink window up, resizeactive, 0 -100
|
||||
bindd = SUPER SHIFT, code:21, Expand window down, resizeactive, 0 100
|
||||
|
||||
# Scroll through existing workspaces with SUPER + scroll
|
||||
bindd = SUPER, MOUSE_DOWN, Scroll active workspace forward, workspace, e+1
|
||||
bindd = SUPER, MOUSE_UP, Scroll active workspace backward, workspace, e-1
|
||||
bindd = SUPER, mouse_down, Scroll active workspace forward, workspace, e+1
|
||||
bindd = SUPER, mouse_up, Scroll active workspace backward, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindmd = SUPER, mouse:272, Move window, movewindow
|
||||
|
||||
18
default/hypr/scrolling.conf
Normal file
18
default/hypr/scrolling.conf
Normal file
@@ -0,0 +1,18 @@
|
||||
plugin {
|
||||
hyprscrolling {
|
||||
column_width = 0.7
|
||||
fullscreen_on_one_column = true
|
||||
focus_fit_method = 1
|
||||
}
|
||||
}
|
||||
|
||||
general {
|
||||
layout = scrolling
|
||||
}
|
||||
|
||||
bindd = SUPER, period, Focus right window column, layoutmsg, move +col
|
||||
bindd = SUPER, comma, Focus left window column, layoutmsg, move -col
|
||||
bindd = SUPER SHIFT, period, Move window column right, layoutmsg, movewindowto r
|
||||
bindd = SUPER SHIFT, comma, Move window column left, layoutmsg, movewindowto l
|
||||
bindd = SUPER SHIFT, up, Move window column up, layoutmsg, movewindowto u
|
||||
bindd = SUPER SHIFT, down, Move window column down, layoutmsg, movewindowto d
|
||||
@@ -1,26 +0,0 @@
|
||||
echo "Migrate to Walker 2.0.0"
|
||||
|
||||
# Ensure we kill walker even if there's a restarting service running
|
||||
kill -9 $(pgrep -x walker)
|
||||
|
||||
omarchy-pkg-drop walker-bin walker-bin-debug
|
||||
|
||||
omarchy-pkg-add elephant \
|
||||
elephant-calc \
|
||||
elephant-clipboard \
|
||||
elephant-bluetooth \
|
||||
elephant-desktopapplications \
|
||||
elephant-files \
|
||||
elephant-menus \
|
||||
elephant-providerlist \
|
||||
elephant-runner \
|
||||
elephant-symbols \
|
||||
elephant-unicode \
|
||||
elephant-websearch \
|
||||
elephant-todo \
|
||||
walker
|
||||
|
||||
source $OMARCHY_PATH/install/config/walker-elephant.sh
|
||||
|
||||
rm -rf ~/.config/walker/themes
|
||||
omarchy-refresh-walker
|
||||
45
migrations/1758107879.sh
Normal file
45
migrations/1758107879.sh
Normal file
@@ -0,0 +1,45 @@
|
||||
echo "Migrate to Walker 2.0.0"
|
||||
|
||||
NEEDS_MIGRATION=false
|
||||
|
||||
PACKAGES=(
|
||||
"elephant"
|
||||
"elephant-calc"
|
||||
"elephant-clipboard"
|
||||
"elephant-bluetooth"
|
||||
"elephant-desktopapplications"
|
||||
"elephant-files"
|
||||
"elephant-menus"
|
||||
"elephant-providerlist"
|
||||
"elephant-runner"
|
||||
"elephant-symbols"
|
||||
"elephant-unicode"
|
||||
"elephant-websearch"
|
||||
"elephant-todo"
|
||||
"walker"
|
||||
)
|
||||
|
||||
for pkg in "${PACKAGES[@]}"; do
|
||||
if ! omarchy-pkg-present "$pkg"; then
|
||||
NEEDS_MIGRATION=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
WALKER_MAJOR=$(walker -v 2>&1 | grep -oP '^\d+' || echo "0")
|
||||
if [[ "$WALKER_MAJOR" -lt 2 ]]; then
|
||||
NEEDS_MIGRATION=true
|
||||
fi
|
||||
|
||||
if $NEEDS_MIGRATION; then
|
||||
kill -9 $(pgrep -x walker) 2>/dev/null || true
|
||||
|
||||
omarchy-pkg-drop walker-bin walker-bin-debug
|
||||
|
||||
omarchy-pkg-add "${PACKAGES[@]}"
|
||||
|
||||
source $OMARCHY_PATH/install/config/walker-elephant.sh
|
||||
|
||||
rm -rf ~/.config/walker/themes
|
||||
omarchy-refresh-walker
|
||||
fi
|
||||
21
migrations/1760974946.sh
Normal file
21
migrations/1760974946.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
echo "Turn off VSCode's own auto-update feature (we rely on pacman)"
|
||||
|
||||
# Note: We cannot use `jq` to update settings.json because it’s JSONC (allows comments),
|
||||
# which jq doesn’t support.
|
||||
|
||||
VS_CODE_SETTINGS="$HOME/.config/Code/User/settings.json"
|
||||
|
||||
# If VSCode is installed, ensure that the "update.mode" setting is set to "none"
|
||||
if omarchy-cmd-present code; then
|
||||
mkdir -p "$(dirname "$VS_CODE_SETTINGS")"
|
||||
|
||||
if [[ ! -f "$VS_CODE_SETTINGS" ]]; then
|
||||
# If settings.json doesn't exist, create it with just the update.mode setting
|
||||
printf '{\n "update.mode": "none"\n}\n' > "$VS_CODE_SETTINGS"
|
||||
elif ! grep -q '"update.mode"' "$VS_CODE_SETTINGS"; then
|
||||
# Insert "update.mode": "none", immediately after the first "{"
|
||||
# Use sed's first-match range (0,/{/) to only replace the first "{
|
||||
sed -i --follow-symlinks -E '0,/\{/{s/\{/{\
|
||||
"update.mode": "none",/}' "$VS_CODE_SETTINGS"
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user