mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
34 Commits
sddm-uki-c
...
super-copy
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
edbafe7a13 | ||
|
|
b97cba39af | ||
|
|
6d20a13076 | ||
|
|
bf4fb40877 | ||
|
|
4365a52a08 | ||
|
|
f701cf7c6d | ||
|
|
9c5cf01410 | ||
|
|
6ea9c9311e | ||
|
|
66abd7dc2e | ||
|
|
819da32ebb | ||
|
|
5b062cddce | ||
|
|
e9ab1d9bcc | ||
|
|
f956233ecf | ||
|
|
e6d1a2f754 | ||
|
|
dfd133df87 | ||
|
|
2326018341 | ||
|
|
011174699c | ||
|
|
1ffed127db | ||
|
|
a38d80ee9f | ||
|
|
a401c74083 | ||
|
|
5faa2c8d49 | ||
|
|
3f25fcbd98 | ||
|
|
14b020dcfb | ||
|
|
c91c75a5e6 | ||
|
|
e3658556ea | ||
|
|
2971a25a4f | ||
|
|
2c14252d7d | ||
|
|
b0ee5d2e79 | ||
|
|
7a7266aed0 | ||
|
|
6892304277 | ||
|
|
6aac67a1d5 | ||
|
|
2666e75666 | ||
|
|
d40c1ba454 | ||
|
|
648832dcc6 |
9
.editorconfig
Normal file
9
.editorconfig
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
Name=Neovim
|
Name=Neovim
|
||||||
GenericName=Text Editor
|
GenericName=Text Editor
|
||||||
Comment=Edit text files
|
Comment=Edit text files
|
||||||
Exec=sh -c "$TERMINAL --class=nvim --title=nvim -e nvim -- %F"
|
Exec=omarchy-launch-editor %F
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Keywords=Text;editor;
|
Keywords=Text;editor;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ if [[ -f "$FIRST_RUN_MODE" ]]; then
|
|||||||
|
|
||||||
bash "$OMARCHY_PATH/install/first-run/battery-monitor.sh"
|
bash "$OMARCHY_PATH/install/first-run/battery-monitor.sh"
|
||||||
bash "$OMARCHY_PATH/install/first-run/firewall.sh"
|
bash "$OMARCHY_PATH/install/first-run/firewall.sh"
|
||||||
|
bash "$OMARCHY_PATH/install/first-run/dns-resolver.sh"
|
||||||
bash "$OMARCHY_PATH/install/first-run/gnome-theme.sh"
|
bash "$OMARCHY_PATH/install/first-run/gnome-theme.sh"
|
||||||
sudo rm -f /etc/sudoers.d/first-run
|
sudo rm -f /etc/sudoers.d/first-run
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,13 @@ terminal_pid=$(hyprctl activewindow | awk '/pid:/ {print $2}')
|
|||||||
shell_pid=$(pgrep -P "$terminal_pid" | head -n1)
|
shell_pid=$(pgrep -P "$terminal_pid" | head -n1)
|
||||||
|
|
||||||
if [[ -n $shell_pid ]]; then
|
if [[ -n $shell_pid ]]; then
|
||||||
readlink -f "/proc/$shell_pid/cwd" 2>/dev/null || echo "$HOME"
|
cwd=$(readlink -f "/proc/$shell_pid/cwd" 2>/dev/null)
|
||||||
|
|
||||||
|
if [[ -d $cwd ]]; then
|
||||||
|
echo "$cwd"
|
||||||
|
else
|
||||||
|
echo "$HOME"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "$HOME"
|
echo "$HOME"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ echo "Installing all dependencies..."
|
|||||||
omarchy-pkg-add dropbox dropbox-cli libappindicator-gtk3 python-gpgme nautilus-dropbox
|
omarchy-pkg-add dropbox dropbox-cli libappindicator-gtk3 python-gpgme nautilus-dropbox
|
||||||
|
|
||||||
echo "Starting Dropbox..."
|
echo "Starting Dropbox..."
|
||||||
uwsm app -- dropbox-cli start &>/dev/null &
|
uwsm-app -- dropbox-cli start &>/dev/null &
|
||||||
echo "See Dropbox icon behind hover tray in top right and right-click for setup."
|
echo "See Dropbox icon behind hover tray in top right and right-click for setup."
|
||||||
|
|||||||
21
bin/omarchy-install-vscode
Executable file
21
bin/omarchy-install-vscode
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Installing VSCode..."
|
||||||
|
omarchy-pkg-add visual-studio-code-bin
|
||||||
|
|
||||||
|
mkdir -p ~/.vscode
|
||||||
|
|
||||||
|
cat > ~/.vscode/argv.json << 'EOF'
|
||||||
|
// This configuration file allows you to pass permanent command line arguments to VS Code.
|
||||||
|
// Only a subset of arguments is currently supported to reduce the likelihood of breaking
|
||||||
|
// the installation.
|
||||||
|
//
|
||||||
|
// PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT
|
||||||
|
//
|
||||||
|
// NOTE: Changing this file requires a restart of VS Code.
|
||||||
|
{
|
||||||
|
"password-store":"gnome-libsecret"
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
setsid gtk-launch code
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
exec setsid uwsm app -- alacritty --class=Omarchy -o font.size=9 -e bash -c 'fastfetch; read -n 1 -s'
|
exec setsid uwsm-app -- alacritty --class=Omarchy -o font.size=9 -e bash -c 'fastfetch; read -n 1 -s'
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ else
|
|||||||
private_flag="--incognito"
|
private_flag="--incognito"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec setsid uwsm app -- "$browser_exec" "${@/--private/$private_flag}"
|
exec setsid uwsm-app -- "$browser_exec" "${@/--private/$private_flag}"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
case "${EDITOR:-nvim}" in
|
case "${EDITOR:-nvim}" in
|
||||||
nvim | vim | nano | micro | hx)
|
nvim | vim | nano | micro | hx | helix)
|
||||||
exec setsid uwsm app -- "$TERMINAL" -e "$EDITOR" "$@"
|
exec setsid uwsm-app -- "$TERMINAL" -e "$EDITOR" "$@"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
exec setsid uwsm app -- "$EDITOR" "$@"
|
exec setsid uwsm-app -- "$EDITOR" "$@"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cmd="$*"
|
cmd="$*"
|
||||||
exec setsid uwsm app -- alacritty --class=Omarchy --title=Omarchy -e bash -c "omarchy-show-logo; $cmd; omarchy-show-done"
|
exec setsid uwsm-app -- alacritty -o font.size=9 --class=Omarchy --title=Omarchy -e bash -c "omarchy-show-logo; $cmd; omarchy-show-done"
|
||||||
@@ -6,7 +6,7 @@ if (($# == 0)); then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
WINDOW_PATTERN="$1"
|
WINDOW_PATTERN="$1"
|
||||||
LAUNCH_COMMAND="${2:-"uwsm app -- $WINDOW_PATTERN"}"
|
LAUNCH_COMMAND="${2:-"uwsm-app -- $WINDOW_PATTERN"}"
|
||||||
WINDOW_ADDRESS=$(hyprctl clients -j | jq -r --arg p "$WINDOW_PATTERN" '.[]|select((.class|test("\\b" + $p + "\\b";"i")) or (.title|test("\\b" + $p + "\\b";"i")))|.address' | head -n1)
|
WINDOW_ADDRESS=$(hyprctl clients -j | jq -r --arg p "$WINDOW_PATTERN" '.[]|select((.class|test("\\b" + $p + "\\b";"i")) or (.title|test("\\b" + $p + "\\b";"i")))|.address' | head -n1)
|
||||||
|
|
||||||
if [[ -n $WINDOW_ADDRESS ]]; then
|
if [[ -n $WINDOW_ADDRESS ]]; then
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (($# == 0)); then
|
if (($# == 0)); then
|
||||||
echo "Usage: omarchy-launch-or-focus-webapp [window-pattern] [url]"
|
echo "Usage: omarchy-launch-or-focus-webapp [window-pattern] [url-and-flags...]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec omarchy-launch-or-focus "$1" "omarchy-launch-webapp '$2'"
|
WINDOW_PATTERN="$1"
|
||||||
|
shift
|
||||||
|
LAUNCH_COMMAND="omarchy-launch-webapp $@"
|
||||||
|
|
||||||
|
exec omarchy-launch-or-focus "$WINDOW_PATTERN" "$LAUNCH_COMMAND"
|
||||||
@@ -7,4 +7,4 @@ google-chrome* | brave-browser* | microsoft-edge* | opera* | vivaldi* | helium-b
|
|||||||
*) browser="chromium.desktop" ;;
|
*) browser="chromium.desktop" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exec setsid uwsm app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,~/.nix-profile,/usr}/share/applications/$browser 2>/dev/null | head -1) --app="$1" "${@:2}"
|
exec setsid uwsm-app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,~/.nix-profile,/usr}/share/applications/$browser 2>/dev/null | head -1) --app="$1" "${@:2}"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
exec setsid uwsm app -- "$TERMINAL" --class=Impala -e impala "$@"
|
exec setsid uwsm-app -- "$TERMINAL" --class=Impala -e impala "$@"
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ if pgrep -x "1password" >/dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Avoid running screensaver when locked
|
# Avoid running screensaver when locked
|
||||||
pkill -f "$TERMINAL --class Screensaver"
|
pkill -f "alacritty --class Screensaver"
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ show_install_service_menu() {
|
|||||||
|
|
||||||
show_install_editor_menu() {
|
show_install_editor_menu() {
|
||||||
case $(menu "Install" " VSCode\n Cursor\n Zed\n Sublime Text\n Helix\n Emacs") in
|
case $(menu "Install" " VSCode\n Cursor\n Zed\n Sublime Text\n Helix\n Emacs") in
|
||||||
*VSCode*) install_and_launch "VSCode" "visual-studio-code-bin" "code" ;;
|
*VSCode*) present_terminal omarchy-install-vscode ;;
|
||||||
*Cursor*) install_and_launch "Cursor" "cursor-bin" "cursor" ;;
|
*Cursor*) install_and_launch "Cursor" "cursor-bin" "cursor" ;;
|
||||||
*Zed*) install_and_launch "Zed" "zed" "dev.zed.Zed" ;;
|
*Zed*) install_and_launch "Zed" "zed" "dev.zed.Zed" ;;
|
||||||
*Sublime*) aur_install_and_launch "Sublime Text" "sublime-text-4" "sublime_text" ;;
|
*Sublime*) aur_install_and_launch "Sublime Text" "sublime-text-4" "sublime_text" ;;
|
||||||
@@ -286,8 +286,9 @@ show_install_ai_menu() {
|
|||||||
echo ollama
|
echo ollama
|
||||||
)
|
)
|
||||||
|
|
||||||
case $(menu "Install" " Claude Code\n Gemini [AUR]\n OpenAI Codex [AUR]\n LM Studio\n Ollama\n Crush\n opencode") in
|
case $(menu "Install" " Claude Code\n Cursor CLI [AUR]\n Gemini [AUR]\n OpenAI Codex [AUR]\n LM Studio\n Ollama\n Crush\n opencode") in
|
||||||
*Claude*) install "Claude Code" "claude-code" ;;
|
*Claude*) install "Claude Code" "claude-code" ;;
|
||||||
|
*Cursor*) aur_install "Cursor CLI" "cursor-cli" ;;
|
||||||
*OpenAI*) aur_install "OpenAI Codex" "openai-codex-bin" ;;
|
*OpenAI*) aur_install "OpenAI Codex" "openai-codex-bin" ;;
|
||||||
*Gemini*) aur_install "Gemini" "gemini-cli" ;;
|
*Gemini*) aur_install "Gemini" "gemini-cli" ;;
|
||||||
*Studio*) install "LM Studio" "lmstudio" ;;
|
*Studio*) install "LM Studio" "lmstudio" ;;
|
||||||
@@ -451,7 +452,7 @@ show_system_menu() {
|
|||||||
*Lock*) omarchy-lock-screen ;;
|
*Lock*) omarchy-lock-screen ;;
|
||||||
*Screensaver*) omarchy-launch-screensaver force ;;
|
*Screensaver*) omarchy-launch-screensaver force ;;
|
||||||
*Suspend*) systemctl suspend ;;
|
*Suspend*) systemctl suspend ;;
|
||||||
*Relaunch*) omarchy-state clear relaunch-required && uwsm stop ;;
|
*Relaunch*) omarchy-state clear relaunch-required && sudo systemctl restart sddm ;;
|
||||||
*Restart*) omarchy-state clear re*-required && systemctl reboot ;;
|
*Restart*) omarchy-state clear re*-required && systemctl reboot ;;
|
||||||
*Shutdown*) omarchy-state clear re*-required && systemctl poweroff ;;
|
*Shutdown*) omarchy-state clear re*-required && systemctl poweroff ;;
|
||||||
*) back_to show_main_menu ;;
|
*) back_to show_main_menu ;;
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ dynamic_bindings() {
|
|||||||
-e 's/null//' \
|
-e 's/null//' \
|
||||||
-e 's,~/.local/share/omarchy/bin/,,' \
|
-e 's,~/.local/share/omarchy/bin/,,' \
|
||||||
-e 's,uwsm app -- ,,' \
|
-e 's,uwsm app -- ,,' \
|
||||||
|
-e 's,uwsm-app -- ,,' \
|
||||||
-e 's/@0//' \
|
-e 's/@0//' \
|
||||||
-e 's/,@/,code:/' \
|
-e 's/,@/,code:/' \
|
||||||
-e 's/^0,/,/' \
|
-e 's/^0,/,/' \
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo pacman -S --noconfirm --needed "$@" || exit 1
|
||||||
|
|
||||||
for pkg in "$@"; do
|
for pkg in "$@"; do
|
||||||
|
# Secondary check to handle states where pacman doesn't actually register an error
|
||||||
if ! pacman -Q "$pkg" &>/dev/null; then
|
if ! pacman -Q "$pkg" &>/dev/null; then
|
||||||
sudo pacman -S --noconfirm "$pkg" || exit 1
|
echo -e "\033[31mError: Package '$pkg' did not install\033[0m" >&2
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pkill -x $1
|
pkill -x $1
|
||||||
setsid uwsm app -- $1 >/dev/null 2>&1 &
|
setsid uwsm-app -- $1 >/dev/null 2>&1 &
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
pkill walker
|
pkill walker
|
||||||
# FIXME: Just deal with the memory leak for now.
|
# FIXME: Just deal with the memory leak for now.
|
||||||
# See https://github.com/basecamp/omarchy/issues/698
|
# See https://github.com/basecamp/omarchy/issues/698
|
||||||
setsid uwsm app -- walker --gapplication-service &
|
setsid uwsm-app -- walker --gapplication-service &
|
||||||
echo # Always end in success so we don't terminate further running
|
echo # Always end in success so we don't terminate further running
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ TOTAL=${#BACKGROUNDS[@]}
|
|||||||
if [[ $TOTAL -eq 0 ]]; then
|
if [[ $TOTAL -eq 0 ]]; then
|
||||||
notify-send "No background was found for theme" -t 2000
|
notify-send "No background was found for theme" -t 2000
|
||||||
pkill -x swaybg
|
pkill -x swaybg
|
||||||
setsid uwsm app -- swaybg --color '#000000' >/dev/null 2>&1 &
|
setsid uwsm-app -- swaybg --color '#000000' >/dev/null 2>&1 &
|
||||||
else
|
else
|
||||||
# Get current background from symlink
|
# Get current background from symlink
|
||||||
if [[ -L "$CURRENT_BACKGROUND_LINK" ]]; then
|
if [[ -L "$CURRENT_BACKGROUND_LINK" ]]; then
|
||||||
@@ -44,5 +44,5 @@ else
|
|||||||
|
|
||||||
# Relaunch swaybg
|
# Relaunch swaybg
|
||||||
pkill -x swaybg
|
pkill -x swaybg
|
||||||
setsid uwsm app -- swaybg -i "$CURRENT_BACKGROUND_LINK" -m fill >/dev/null 2>&1 &
|
setsid uwsm-app -- swaybg -i "$CURRENT_BACKGROUND_LINK" -m fill >/dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -30,9 +30,10 @@ hyprctl reload
|
|||||||
pkill -SIGUSR2 btop
|
pkill -SIGUSR2 btop
|
||||||
makoctl reload
|
makoctl reload
|
||||||
|
|
||||||
# Change gnome, browser, vscode themes
|
# Change gnome, browser, vscode, cursor themes
|
||||||
omarchy-theme-set-terminal
|
omarchy-theme-set-terminal
|
||||||
omarchy-theme-set-gnome
|
omarchy-theme-set-gnome
|
||||||
omarchy-theme-set-eza
|
omarchy-theme-set-eza
|
||||||
omarchy-theme-set-browser
|
omarchy-theme-set-browser
|
||||||
omarchy-theme-set-vscode
|
omarchy-theme-set-vscode
|
||||||
|
omarchy-theme-set-cursor
|
||||||
|
|||||||
4
bin/omarchy-theme-set-cursor
Executable file
4
bin/omarchy-theme-set-cursor
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Call the VSCode theme setter with Cursor-specific parameters
|
||||||
|
omarchy-theme-set-vscode cursor "$HOME/.config/Cursor/User/settings.json" "$HOME/.local/state/omarchy/toggles/skip-cursor-theme-changes" Cursor
|
||||||
@@ -3,43 +3,47 @@
|
|||||||
# Note: We cannot use `jq` to update settings.json because it’s JSONC (allows comments),
|
# Note: We cannot use `jq` to update settings.json because it’s JSONC (allows comments),
|
||||||
# which jq doesn’t support.
|
# which jq doesn’t support.
|
||||||
|
|
||||||
VS_CODE_THEME="$HOME/.config/omarchy/current/theme/vscode.json"
|
# Parameters: EDITOR_CMD SETTINGS_PATH SKIP_FLAG EDITOR_NAME
|
||||||
VS_CODE_SETTINGS="$HOME/.config/Code/User/settings.json"
|
EDITOR_CMD="${1:-code}"
|
||||||
VS_CODE_SKIP_FLAG="$HOME/.local/state/omarchy/toggles/skip-vscode-theme-changes"
|
SETTINGS_PATH="${2:-$HOME/.config/Code/User/settings.json}"
|
||||||
|
SKIP_FLAG="${3:-$HOME/.local/state/omarchy/toggles/skip-vscode-theme-changes}"
|
||||||
|
EDITOR_NAME="${4:-VS Code}"
|
||||||
|
|
||||||
if omarchy-cmd-present code && [[ ! -f "$VS_CODE_SKIP_FLAG" ]]; then
|
VS_CODE_THEME="$HOME/.config/omarchy/current/theme/vscode.json"
|
||||||
|
|
||||||
|
if omarchy-cmd-present "$EDITOR_CMD" && [[ ! -f "$SKIP_FLAG" ]]; then
|
||||||
if [[ -f "$VS_CODE_THEME" ]]; then
|
if [[ -f "$VS_CODE_THEME" ]]; then
|
||||||
theme_name=$(jq -r '.name' "$VS_CODE_THEME")
|
theme_name=$(jq -r '.name' "$VS_CODE_THEME")
|
||||||
extension=$(jq -r '.extension' "$VS_CODE_THEME")
|
extension=$(jq -r '.extension' "$VS_CODE_THEME")
|
||||||
|
|
||||||
# Install VS Code theme extension
|
# Install $EDITOR_NAME theme extension
|
||||||
if [[ -n "$extension" ]] && ! code --list-extensions | grep -Fxq "$extension"; then
|
if [[ -n "$extension" ]] && ! "$EDITOR_CMD" --list-extensions | grep -Fxq "$extension"; then
|
||||||
notify-send " Installing VS Code theme for $theme_name"
|
notify-send " Installing $EDITOR_NAME theme for $theme_name"
|
||||||
code --install-extension "$extension" >/dev/null
|
"$EDITOR_CMD" --install-extension "$extension" >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create config file if there isn't already one
|
# Create config file if there isn't already one
|
||||||
mkdir -p "$(dirname "$VS_CODE_SETTINGS")"
|
mkdir -p "$(dirname "$SETTINGS_PATH")"
|
||||||
if [[ ! -f "$VS_CODE_SETTINGS" ]]; then
|
if [[ ! -f "$SETTINGS_PATH" ]]; then
|
||||||
printf '{\n}\n' > "$VS_CODE_SETTINGS"
|
printf '{\n}\n' > "$SETTINGS_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a `workbench.colorTheme` entry in settings.
|
# Create a `workbench.colorTheme` entry in settings.
|
||||||
if ! grep -q '"workbench.colorTheme"' "$VS_CODE_SETTINGS"; then
|
if ! grep -q '"workbench.colorTheme"' "$SETTINGS_PATH"; then
|
||||||
# Insert `"workbench.colorTheme": "",` immediately after the first `{`
|
# Insert `"workbench.colorTheme": "",` immediately after the first `{`
|
||||||
# Use sed's first-match range (0,/{/) to only replace the first `{`
|
# Use sed's first-match range (0,/{/) to only replace the first `{`
|
||||||
sed -i --follow-symlinks -E '0,/\{/{s/\{/{\
|
sed -i --follow-symlinks -E '0,/\{/{s/\{/{\
|
||||||
"workbench.colorTheme": "",/}' "$VS_CODE_SETTINGS"
|
"workbench.colorTheme": "",/}' "$SETTINGS_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update theme
|
# Update theme
|
||||||
sed -i --follow-symlinks -E \
|
sed -i --follow-symlinks -E \
|
||||||
"s/(\"workbench.colorTheme\"[[:space:]]*:[[:space:]]*\")[^\"]*(\")/\1$theme_name\2/" \
|
"s/(\"workbench.colorTheme\"[[:space:]]*:[[:space:]]*\")[^\"]*(\")/\1$theme_name\2/" \
|
||||||
"$VS_CODE_SETTINGS"
|
"$SETTINGS_PATH"
|
||||||
else
|
else
|
||||||
# Remove theme from settings.json when the theme doesn't have vscode support
|
# Remove theme from settings.json when the theme doesn't have $EDITOR_NAME support
|
||||||
if [[ -f "$VS_CODE_SETTINGS" ]]; then
|
if [[ -f "$SETTINGS_PATH" ]]; then
|
||||||
sed -i --follow-symlinks -E '/"workbench\.colorTheme"[[:space:]]*:[^,}]*,?/d' "$VS_CODE_SETTINGS"
|
sed -i --follow-symlinks -E '/"workbench\.colorTheme"[[:space:]]*:[^,}]*,?/d' "$SETTINGS_PATH"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ if pgrep -x hypridle >/dev/null; then
|
|||||||
pkill -x hypridle
|
pkill -x hypridle
|
||||||
notify-send "Stop locking computer when idle"
|
notify-send "Stop locking computer when idle"
|
||||||
else
|
else
|
||||||
uwsm app -- hypridle >/dev/null 2>&1 &
|
uwsm-app -- hypridle >/dev/null 2>&1 &
|
||||||
notify-send "Now locking computer when idle"
|
notify-send "Now locking computer when idle"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ OFF_TEMP=6000
|
|||||||
|
|
||||||
# Ensure hyprsunset is running
|
# Ensure hyprsunset is running
|
||||||
if ! pgrep -x hyprsunset; then
|
if ! pgrep -x hyprsunset; then
|
||||||
setsid uwsm app -- hyprsunset &
|
setsid uwsm-app -- hyprsunset &
|
||||||
sleep 1 # Give it time to register
|
sleep 1 # Give it time to register
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
if pgrep -x waybar >/dev/null; then
|
if pgrep -x waybar >/dev/null; then
|
||||||
pkill -x waybar
|
pkill -x waybar
|
||||||
else
|
else
|
||||||
uwsm app -- waybar >/dev/null 2>&1 &
|
uwsm-app -- waybar >/dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -16,5 +16,6 @@ decorations = "None"
|
|||||||
|
|
||||||
[keyboard]
|
[keyboard]
|
||||||
bindings = [
|
bindings = [
|
||||||
{ key = "F11", action = "ToggleFullscreen" }
|
{ key = "F11", action = "ToggleFullscreen" },
|
||||||
|
{ key = "Insert", mods = "Shift", action = "Paste" }
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ font-style = Regular
|
|||||||
font-size = 9
|
font-size = 9
|
||||||
|
|
||||||
# Window
|
# Window
|
||||||
|
window-theme = ghostty
|
||||||
window-padding-x = 14
|
window-padding-x = 14
|
||||||
window-padding-y = 14
|
window-padding-y = 14
|
||||||
confirm-close-surface=false
|
confirm-close-surface=false
|
||||||
resize-overlay = never
|
resize-overlay = never
|
||||||
|
gtk-toolbar-style = flat
|
||||||
|
|
||||||
# Cursor styling
|
# Cursor styling
|
||||||
cursor-style = "block"
|
cursor-style = "block"
|
||||||
@@ -19,3 +21,7 @@ shell-integration-features = no-cursor
|
|||||||
|
|
||||||
# Keyboard bindings
|
# Keyboard bindings
|
||||||
keybind = f11=toggle_fullscreen
|
keybind = f11=toggle_fullscreen
|
||||||
|
keybind = shift+insert=paste_from_clipboard
|
||||||
|
|
||||||
|
# SSH session terminfo
|
||||||
|
shell-integration-features = ssh-env
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
# Extra autostart processes
|
# Extra autostart processes
|
||||||
# exec-once = uwsm app -- my-service
|
# exec-once = uwsm-app -- my-service
|
||||||
|
|||||||
@@ -1,23 +1,23 @@
|
|||||||
# Application bindings
|
# Application bindings
|
||||||
$terminal = uwsm app -- $TERMINAL
|
$terminal = uwsm-app -- $TERMINAL
|
||||||
$browser = omarchy-launch-browser
|
$browser = omarchy-launch-browser
|
||||||
|
|
||||||
bindd = SUPER, RETURN, Terminal, exec, $terminal --working-directory="$(omarchy-cmd-terminal-cwd)"
|
bindd = SUPER, RETURN, Terminal, exec, $terminal --working-directory="$(omarchy-cmd-terminal-cwd)"
|
||||||
bindd = SUPER, F, File manager, exec, uwsm app -- nautilus --new-window
|
bindd = SUPER, F, File manager, exec, uwsm-app -- nautilus --new-window
|
||||||
bindd = SUPER, B, Browser, exec, $browser
|
bindd = SUPER, B, Browser, exec, $browser
|
||||||
bindd = SUPER SHIFT, B, Browser (private), exec, $browser --private
|
bindd = SUPER SHIFT, B, Browser (private), exec, $browser --private
|
||||||
bindd = SUPER, M, Music, exec, omarchy-launch-or-focus spotify
|
bindd = SUPER, M, Music, exec, omarchy-launch-or-focus spotify
|
||||||
bindd = SUPER, N, Editor, exec, omarchy-launch-editor
|
bindd = SUPER, N, Editor, exec, omarchy-launch-editor
|
||||||
bindd = SUPER, T, Activity, exec, $terminal -e btop
|
bindd = SUPER, T, Activity, exec, $terminal -e btop
|
||||||
bindd = SUPER, D, Docker, exec, $terminal -e lazydocker
|
bindd = SUPER, D, Docker, exec, $terminal -e lazydocker
|
||||||
bindd = SUPER, G, Signal, exec, omarchy-launch-or-focus signal "uwsm app -- signal-desktop"
|
bindd = SUPER, G, Signal, exec, omarchy-launch-or-focus signal "uwsm-app -- signal-desktop"
|
||||||
bindd = SUPER, O, Obsidian, exec, omarchy-launch-or-focus obsidian "uwsm app -- obsidian -disable-gpu --enable-wayland-ime"
|
bindd = SUPER, O, Obsidian, exec, omarchy-launch-or-focus "^obsidian$" "uwsm-app -- obsidian -disable-gpu --enable-wayland-ime"
|
||||||
bindd = SUPER, SLASH, Passwords, exec, uwsm app -- 1password
|
bindd = SUPER, SLASH, Passwords, exec, uwsm-app -- 1password
|
||||||
|
|
||||||
# If your web app url contains #, type it as ## to prevent hyperland treat it as comments
|
# If your web app url contains #, type it as ## to prevent hyprland from treating it as a comment
|
||||||
bindd = SUPER, A, ChatGPT, exec, omarchy-launch-webapp "https://chatgpt.com"
|
bindd = SUPER, A, ChatGPT, exec, omarchy-launch-webapp "https://chatgpt.com"
|
||||||
bindd = SUPER SHIFT, A, Grok, exec, omarchy-launch-webapp "https://grok.com"
|
bindd = SUPER SHIFT, A, Grok, exec, omarchy-launch-webapp "https://grok.com"
|
||||||
bindd = SUPER, C, Calendar, exec, omarchy-launch-webapp "https://app.hey.com/calendar/weeks/"
|
bindd = SUPER SHIFT, C, Calendar, exec, omarchy-launch-webapp "https://app.hey.com/calendar/weeks/"
|
||||||
bindd = SUPER, E, Email, exec, omarchy-launch-webapp "https://app.hey.com"
|
bindd = SUPER, E, Email, exec, omarchy-launch-webapp "https://app.hey.com"
|
||||||
bindd = SUPER, Y, YouTube, exec, omarchy-launch-or-focus-webapp YouTube "https://youtube.com/"
|
bindd = SUPER, Y, YouTube, exec, omarchy-launch-or-focus-webapp YouTube "https://youtube.com/"
|
||||||
bindd = SUPER SHIFT, G, WhatsApp, exec, omarchy-launch-or-focus-webapp WhatsApp "https://web.whatsapp.com/"
|
bindd = SUPER SHIFT, G, WhatsApp, exec, omarchy-launch-or-focus-webapp WhatsApp "https://web.whatsapp.com/"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ path = "~/.config/hypr/hyprland.conf"
|
|||||||
hidden = true
|
hidden = true
|
||||||
|
|
||||||
[builtins.applications]
|
[builtins.applications]
|
||||||
launch_prefix = "uwsm app -- "
|
launch_prefix = "uwsm-app -- "
|
||||||
placeholder = " Search..."
|
placeholder = " Search..."
|
||||||
prioritize_new = false
|
prioritize_new = false
|
||||||
context_aware = false
|
context_aware = false
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ windowrule = size 800 600, tag:floating-window
|
|||||||
|
|
||||||
windowrule = tag +floating-window, class:(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|com.gabm.satty|Omarchy|About|TUI.float)
|
windowrule = tag +floating-window, class:(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|com.gabm.satty|Omarchy|About|TUI.float)
|
||||||
windowrule = tag +floating-window, class:(xdg-desktop-portal-gtk|sublime_text|DesktopEditors|org.gnome.Nautilus), title:^(Open.*Files?|Open [F|f]older.*|Save.*Files?|Save.*As|Save|All Files)
|
windowrule = tag +floating-window, class:(xdg-desktop-portal-gtk|sublime_text|DesktopEditors|org.gnome.Nautilus), title:^(Open.*Files?|Open [F|f]older.*|Save.*Files?|Save.*As|Save|All Files)
|
||||||
|
windowrule = float, class:org.gnome.Calculator
|
||||||
|
|
||||||
# Fullscreen screensaver
|
# Fullscreen screensaver
|
||||||
windowrule = fullscreen, class:Screensaver
|
windowrule = fullscreen, class:Screensaver
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ bindd = CTRL ALT, DELETE, Close all Windows, exec, omarchy-cmd-close-all-windows
|
|||||||
# Control tiling
|
# Control tiling
|
||||||
bindd = SUPER, J, Toggle split, togglesplit, # dwindle
|
bindd = SUPER, J, Toggle split, togglesplit, # dwindle
|
||||||
bindd = SUPER, P, Pseudo window, pseudo, # dwindle
|
bindd = SUPER, P, Pseudo window, pseudo, # dwindle
|
||||||
bindd = SUPER, V, Toggle floating, togglefloating,
|
bindd = SUPER SHIFT, V, Toggle floating, togglefloating,
|
||||||
bindd = SHIFT, F11, Force full screen, fullscreen, 0
|
bindd = SHIFT, F11, Force full screen, fullscreen, 0
|
||||||
bindd = ALT, F11, Full width, fullscreen, 1
|
bindd = ALT, F11, Full width, fullscreen, 1
|
||||||
|
|
||||||
@@ -69,3 +69,24 @@ bindd = SUPER, MOUSE_UP, Scroll active workspace backward, workspace, e-1
|
|||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
bindmd = SUPER, mouse:272, Move window, movewindow
|
bindmd = SUPER, mouse:272, Move window, movewindow
|
||||||
bindmd = SUPER, mouse:273, Resize window, resizewindow
|
bindmd = SUPER, mouse:273, Resize window, resizewindow
|
||||||
|
|
||||||
|
# Toggle groups
|
||||||
|
bindd = SUPER ALT, RETURN, Toggle window grouping, togglegroup
|
||||||
|
bindd = SUPER ALT, BACKSPACE, Move active window out of group, moveoutofgroup
|
||||||
|
|
||||||
|
# Join groups
|
||||||
|
bindd = SUPER ALT, LEFT, Move window to group on left, moveintogroup, l
|
||||||
|
bindd = SUPER ALT, RIGHT, Move window to group on right, moveintogroup, r
|
||||||
|
bindd = SUPER ALT, UP, Move window to group on top, moveintogroup, u
|
||||||
|
bindd = SUPER ALT, DOWN, Move window to group on bottom, moveintogroup, d
|
||||||
|
|
||||||
|
# Navigate a single set of grouped windows
|
||||||
|
bindd = SUPER ALT, TAB, Next window in group, changegroupactive, f
|
||||||
|
bindd = SUPER ALT SHIFT, TAB, Previous window in group, changegroupactive, b
|
||||||
|
|
||||||
|
# Activate window in a group by number
|
||||||
|
bindd = SUPER ALT, 1, Switch to group window 1, changegroupactive, 1
|
||||||
|
bindd = SUPER ALT, 2, Switch to group window 2, changegroupactive, 2
|
||||||
|
bindd = SUPER ALT, 3, Switch to group window 3, changegroupactive, 3
|
||||||
|
bindd = SUPER ALT, 4, Switch to group window 4, changegroupactive, 4
|
||||||
|
bindd = SUPER ALT, 5, Switch to group window 5, changegroupactive, 5
|
||||||
|
|||||||
@@ -45,3 +45,7 @@ bindd = SUPER, PRINT, Color picker, exec, pkill hyprpicker || hyprpicker -a
|
|||||||
|
|
||||||
# File sharing
|
# File sharing
|
||||||
bindd = CTRL SUPER, S, Share, exec, omarchy-menu share
|
bindd = CTRL SUPER, S, Share, exec, omarchy-menu share
|
||||||
|
|
||||||
|
# Copy / Paste
|
||||||
|
bind = SUPER, C, sendshortcut, CTRL, Insert,
|
||||||
|
bind = SUPER, V, sendshortcut, SHIFT, Insert,
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# Refer to https://wiki.hyprland.org/Configuring/Variables/
|
# Refer to https://wiki.hyprland.org/Configuring/Variables/
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
$activeBorderColor = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
|
$inactiveBorderColor = rgba(595959aa)
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
# https://wiki.hyprland.org/Configuring/Variables/#general
|
||||||
general {
|
general {
|
||||||
gaps_in = 5
|
gaps_in = 5
|
||||||
@@ -8,8 +12,8 @@ general {
|
|||||||
border_size = 2
|
border_size = 2
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
col.active_border = $activeBorderColor
|
||||||
col.inactive_border = rgba(595959aa)
|
col.inactive_border = $inactiveBorderColor
|
||||||
|
|
||||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||||
resize_on_border = false
|
resize_on_border = false
|
||||||
@@ -41,6 +45,38 @@ decoration {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#group
|
||||||
|
group {
|
||||||
|
col.border_active = $activeBorderColor
|
||||||
|
col.border_inactive = $inactiveBorderColor
|
||||||
|
col.border_locked_active = -1
|
||||||
|
col.border_locked_inactive = -1
|
||||||
|
|
||||||
|
groupbar {
|
||||||
|
font_size = 12
|
||||||
|
font_family = monospace
|
||||||
|
font_weight_active = ultraheavy
|
||||||
|
font_weight_inactive = normal
|
||||||
|
|
||||||
|
indicator_height = 0
|
||||||
|
indicator_gap = 5
|
||||||
|
height = 22
|
||||||
|
gaps_in = 5
|
||||||
|
gaps_out = 0
|
||||||
|
|
||||||
|
text_color = rgb(ffffff)
|
||||||
|
text_color_inactive = rgba(ffffff90)
|
||||||
|
col.active = rgba(00000040)
|
||||||
|
col.inactive = rgba(00000020)
|
||||||
|
|
||||||
|
gradients = true
|
||||||
|
gradient_rounding = 0
|
||||||
|
gradient_round_only_edges = false
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
||||||
animations {
|
animations {
|
||||||
enabled = yes, please :)
|
enabled = yes, please :)
|
||||||
|
|||||||
@@ -2,6 +2,12 @@ anchor=top-right
|
|||||||
default-timeout=5000
|
default-timeout=5000
|
||||||
width=420
|
width=420
|
||||||
height=110
|
height=110
|
||||||
|
outer-margin=20
|
||||||
|
padding=10,15
|
||||||
|
border-size=2
|
||||||
|
max-icon-size=32
|
||||||
|
font=sans-serif 14px
|
||||||
|
format=<span line_height="1.2"><b>%s</b>\n%b</span>
|
||||||
|
|
||||||
[app-name=Spotify]
|
[app-name=Spotify]
|
||||||
invisible=1
|
invisible=1
|
||||||
|
|||||||
4
install/first-run/dns-resolver.sh
Normal file
4
install/first-run/dns-resolver.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# https://wiki.archlinux.org/title/Systemd-resolved
|
||||||
|
echo "Symlink resolved stub-resolv to /etc/resolv.conf"
|
||||||
|
|
||||||
|
sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
if ! ping -c3 -W1 1.1.1.1 >/dev/null 2>&1; then
|
if ! ping -c3 -W1 1.1.1.1 >/dev/null 2>&1; then
|
||||||
notify-send " Click to Setup Wi-Fi" "Tab between sections, space selects, ? for help." -u critical -t 30000
|
notify-send " Click to Setup Wi-Fi" "Tab to navigate, Space to select, ? for help." -u critical -t 30000
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
run_logged $OMARCHY_INSTALL/login/plymouth.sh
|
run_logged $OMARCHY_INSTALL/login/plymouth.sh
|
||||||
|
run_logged $OMARCHY_INSTALL/login/default-keyring.sh
|
||||||
|
run_logged $OMARCHY_INSTALL/login/sddm.sh
|
||||||
run_logged $OMARCHY_INSTALL/login/limine-snapper.sh
|
run_logged $OMARCHY_INSTALL/login/limine-snapper.sh
|
||||||
run_logged $OMARCHY_INSTALL/login/enable-mkinitcpio.sh
|
|
||||||
run_logged $OMARCHY_INSTALL/login/alt-bootloaders.sh
|
|
||||||
|
|||||||
@@ -1,115 +0,0 @@
|
|||||||
if ! command -v limine &>/dev/null; then
|
|
||||||
# Add kernel hooks
|
|
||||||
if ! grep -Eq '^HOOKS=.*plymouth' /etc/mkinitcpio.conf; then
|
|
||||||
# Backup original mkinitcpio.conf just in case
|
|
||||||
backup_timestamp=$(date +"%Y%m%d%H%M%S")
|
|
||||||
sudo cp /etc/mkinitcpio.conf "/etc/mkinitcpio.conf.bak.${backup_timestamp}"
|
|
||||||
|
|
||||||
# Add plymouth to HOOKS array after 'base udev' or 'base systemd'
|
|
||||||
if grep "^HOOKS=" /etc/mkinitcpio.conf | grep -q "base systemd"; then
|
|
||||||
sudo sed -i '/^HOOKS=/s/base systemd/base systemd plymouth/' /etc/mkinitcpio.conf
|
|
||||||
elif grep "^HOOKS=" /etc/mkinitcpio.conf | grep -q "base udev"; then
|
|
||||||
sudo sed -i '/^HOOKS=/s/base udev/base udev plymouth/' /etc/mkinitcpio.conf
|
|
||||||
else
|
|
||||||
echo "Couldn't add the Plymouth hook"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Regenerate initramfs
|
|
||||||
sudo mkinitcpio -P
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Add kernel parameters for Plymouth
|
|
||||||
if [ -d "/boot/loader/entries" ]; then # systemd-boot
|
|
||||||
echo "Detected systemd-boot"
|
|
||||||
|
|
||||||
for entry in /boot/loader/entries/*.conf; do
|
|
||||||
if [ -f "$entry" ]; then
|
|
||||||
# Skip fallback entries
|
|
||||||
if [[ "$(basename "$entry")" == *"fallback"* ]]; then
|
|
||||||
echo "Skipped: $(basename "$entry") (fallback entry)"
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Skip if splash it already present for some reason
|
|
||||||
if ! grep -q "splash" "$entry"; then
|
|
||||||
sudo sed -i '/^options/ s/$/ splash quiet/' "$entry"
|
|
||||||
else
|
|
||||||
echo "Skipped: $(basename "$entry") (splash already present)"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
elif [ -f "/etc/default/grub" ]; then # Grub
|
|
||||||
echo "Detected grub"
|
|
||||||
|
|
||||||
# Backup GRUB config before modifying
|
|
||||||
backup_timestamp=$(date +"%Y%m%d%H%M%S")
|
|
||||||
sudo cp /etc/default/grub "/etc/default/grub.bak.${backup_timestamp}"
|
|
||||||
|
|
||||||
# Check if splash is already in GRUB_CMDLINE_LINUX_DEFAULT
|
|
||||||
if ! grep -q "GRUB_CMDLINE_LINUX_DEFAULT.*splash" /etc/default/grub; then
|
|
||||||
# Get current GRUB_CMDLINE_LINUX_DEFAULT value
|
|
||||||
current_cmdline=$(grep "^GRUB_CMDLINE_LINUX_DEFAULT=" /etc/default/grub | cut -d'"' -f2)
|
|
||||||
|
|
||||||
# Add splash and quiet if not present
|
|
||||||
new_cmdline="$current_cmdline"
|
|
||||||
if [[ ! "$current_cmdline" =~ splash ]]; then
|
|
||||||
new_cmdline="$new_cmdline splash"
|
|
||||||
fi
|
|
||||||
if [[ ! "$current_cmdline" =~ quiet ]]; then
|
|
||||||
new_cmdline="$new_cmdline quiet"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Trim any leading/trailing spaces
|
|
||||||
new_cmdline=$(echo "$new_cmdline" | xargs)
|
|
||||||
|
|
||||||
sudo sed -i "s/^GRUB_CMDLINE_LINUX_DEFAULT=\".*\"/GRUB_CMDLINE_LINUX_DEFAULT=\"$new_cmdline\"/" /etc/default/grub
|
|
||||||
|
|
||||||
# Regenerate grub config
|
|
||||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
|
||||||
else
|
|
||||||
echo "GRUB already configured with splash kernel parameters"
|
|
||||||
fi
|
|
||||||
elif [ -d "/etc/cmdline.d" ]; then # UKI
|
|
||||||
echo "Detected a UKI setup"
|
|
||||||
# Relying on mkinitcpio to assemble a UKI
|
|
||||||
# https://wiki.archlinux.org/title/Unified_kernel_image
|
|
||||||
if ! grep -q splash /etc/cmdline.d/*.conf; then
|
|
||||||
# Need splash, create the omarchy file
|
|
||||||
echo "splash" | sudo tee -a /etc/cmdline.d/omarchy.conf
|
|
||||||
fi
|
|
||||||
if ! grep -q quiet /etc/cmdline.d/*.conf; then
|
|
||||||
# Need quiet, create or append the omarchy file
|
|
||||||
echo "quiet" | sudo tee -a /etc/cmdline.d/omarchy.conf
|
|
||||||
fi
|
|
||||||
elif [ -f "/etc/kernel/cmdline" ]; then # UKI Alternate
|
|
||||||
# Alternate UKI kernel cmdline location
|
|
||||||
echo "Detected a UKI setup"
|
|
||||||
|
|
||||||
# Backup kernel cmdline config before modifying
|
|
||||||
backup_timestamp=$(date +"%Y%m%d%H%M%S")
|
|
||||||
sudo cp /etc/kernel/cmdline "/etc/kernel/cmdline.bak.${backup_timestamp}"
|
|
||||||
|
|
||||||
current_cmdline=$(cat /etc/kernel/cmdline)
|
|
||||||
|
|
||||||
# Add splash and quiet if not present
|
|
||||||
new_cmdline="$current_cmdline"
|
|
||||||
if [[ ! "$current_cmdline" =~ splash ]]; then
|
|
||||||
new_cmdline="$new_cmdline splash"
|
|
||||||
fi
|
|
||||||
if [[ ! "$current_cmdline" =~ quiet ]]; then
|
|
||||||
new_cmdline="$new_cmdline quiet"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Trim any leading/trailing spaces
|
|
||||||
new_cmdline=$(echo "$new_cmdline" | xargs)
|
|
||||||
|
|
||||||
# Write new file
|
|
||||||
echo $new_cmdline | sudo tee /etc/kernel/cmdline
|
|
||||||
else
|
|
||||||
echo ""
|
|
||||||
echo " None of systemd-boot, GRUB, or UKI detected. Please manually add these kernel parameters:"
|
|
||||||
echo " - splash (to see the graphical splash screen)"
|
|
||||||
echo " - quiet (for silent boot)"
|
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
20
install/login/default-keyring.sh
Normal file
20
install/login/default-keyring.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
KEYRING_DIR="$HOME/.local/share/keyrings"
|
||||||
|
KEYRING_FILE="$KEYRING_DIR/Default_keyring.keyring"
|
||||||
|
DEFAULT_FILE="$KEYRING_DIR/default"
|
||||||
|
|
||||||
|
cat << EOF | tee "$KEYRING_FILE"
|
||||||
|
[keyring]
|
||||||
|
display-name=Default keyring
|
||||||
|
ctime=$(date +%s)
|
||||||
|
mtime=0
|
||||||
|
lock-on-idle=false
|
||||||
|
lock-after=false
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat << EOF | tee "$DEFAULT_FILE"
|
||||||
|
Default_keyring
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod 700 "$KEYRING_DIR"
|
||||||
|
chmod 600 "$KEYRING_FILE"
|
||||||
|
chmod 644 "$DEFAULT_FILE"
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
echo "Re-enabling mkinitcpio hooks..."
|
|
||||||
|
|
||||||
# Restore the specific mkinitcpio pacman hooks
|
|
||||||
if [ -f /usr/share/libalpm/hooks/90-mkinitcpio-install.hook.disabled ]; then
|
|
||||||
sudo mv /usr/share/libalpm/hooks/90-mkinitcpio-install.hook.disabled /usr/share/libalpm/hooks/90-mkinitcpio-install.hook
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook.disabled ]; then
|
|
||||||
sudo mv /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook.disabled /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "mkinitcpio hooks re-enabled"
|
|
||||||
|
|
||||||
if command -v limine &>/dev/null; then
|
|
||||||
sudo limine-update
|
|
||||||
else
|
|
||||||
sudo mkinitcpio -P
|
|
||||||
fi
|
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
if command -v limine &>/dev/null; then
|
if command -v limine &>/dev/null; then
|
||||||
|
sudo pacman -S --noconfirm --needed limine-snapper-sync limine-mkinitcpio-hook
|
||||||
|
|
||||||
sudo tee /etc/mkinitcpio.conf.d/omarchy_hooks.conf <<EOF >/dev/null
|
sudo tee /etc/mkinitcpio.conf.d/omarchy_hooks.conf <<EOF >/dev/null
|
||||||
HOOKS=(base udev plymouth keyboard autodetect microcode modconf kms keymap consolefont block encrypt filesystems fsck btrfs-overlayfs)
|
HOOKS=(base udev plymouth keyboard autodetect microcode modconf kms keymap consolefont block encrypt filesystems fsck btrfs-overlayfs)
|
||||||
EOF
|
EOF
|
||||||
@@ -34,6 +36,7 @@ KERNEL_CMDLINE[default]="$CMDLINE"
|
|||||||
KERNEL_CMDLINE[default]+="quiet splash"
|
KERNEL_CMDLINE[default]+="quiet splash"
|
||||||
|
|
||||||
ENABLE_UKI=yes
|
ENABLE_UKI=yes
|
||||||
|
CUSTOM_UKI_NAME="omarchy"
|
||||||
|
|
||||||
ENABLE_LIMINE_FALLBACK=yes
|
ENABLE_LIMINE_FALLBACK=yes
|
||||||
|
|
||||||
@@ -75,7 +78,6 @@ term_background_bright: 24283b
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sudo pacman -S --noconfirm --needed limine-snapper-sync limine-mkinitcpio-hook
|
|
||||||
|
|
||||||
# Match Snapper configs if not installing from the ISO
|
# Match Snapper configs if not installing from the ISO
|
||||||
if [[ -z ${OMARCHY_CHROOT_INSTALL:-} ]]; then
|
if [[ -z ${OMARCHY_CHROOT_INSTALL:-} ]]; then
|
||||||
@@ -96,13 +98,39 @@ EOF
|
|||||||
chrootable_systemctl_enable limine-snapper-sync.service
|
chrootable_systemctl_enable limine-snapper-sync.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add UKI entry to UEFI machines to skip bootloader showing on normal boot
|
echo "Re-enabling mkinitcpio hooks..."
|
||||||
if [[ -n $EFI ]] && efibootmgr &>/dev/null && ! efibootmgr | grep -q Omarchy &&
|
|
||||||
|
# Restore the specific mkinitcpio pacman hooks
|
||||||
|
if [ -f /usr/share/libalpm/hooks/90-mkinitcpio-install.hook.disabled ]; then
|
||||||
|
sudo mv /usr/share/libalpm/hooks/90-mkinitcpio-install.hook.disabled /usr/share/libalpm/hooks/90-mkinitcpio-install.hook
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook.disabled ]; then
|
||||||
|
sudo mv /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook.disabled /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "mkinitcpio hooks re-enabled"
|
||||||
|
|
||||||
|
sudo limine-update
|
||||||
|
|
||||||
|
if [[ -n $EFI ]] && efibootmgr &>/dev/null; then
|
||||||
|
# Remove the archinstall-created Limine entry
|
||||||
|
while IFS= read -r bootnum; do
|
||||||
|
sudo efibootmgr -b "$bootnum" -B >/dev/null 2>&1
|
||||||
|
done < <(efibootmgr | grep -E "^Boot[0-9]{4}\*? Arch Linux Limine" | sed 's/^Boot\([0-9]\{4\}\).*/\1/')
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n $EFI ]] && efibootmgr &>/dev/null &&
|
||||||
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "American Megatrends" &&
|
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "American Megatrends" &&
|
||||||
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "Apple"; then
|
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "Apple"; then
|
||||||
|
|
||||||
|
uki_file=$(find /boot/EFI/Linux/ -name "omarchy*.efi" -printf "%f\n" 2>/dev/null | head -1)
|
||||||
|
|
||||||
|
if [[ -n "$uki_file" ]]; then
|
||||||
sudo efibootmgr --create \
|
sudo efibootmgr --create \
|
||||||
--disk "$(findmnt -n -o SOURCE /boot | sed 's/p\?[0-9]*$//')" \
|
--disk "$(findmnt -n -o SOURCE /boot | sed 's/p\?[0-9]*$//')" \
|
||||||
--part "$(findmnt -n -o SOURCE /boot | grep -o 'p\?[0-9]*$' | sed 's/^p//')" \
|
--part "$(findmnt -n -o SOURCE /boot | grep -o 'p\?[0-9]*$' | sed 's/^p//')" \
|
||||||
--label "Omarchy" \
|
--label "Omarchy" \
|
||||||
--loader "\\EFI\\Linux\\$(cat /etc/machine-id)_linux.efi"
|
--loader "\\EFI\\Linux\\$uki_file"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,151 +1,4 @@
|
|||||||
# Hyprland launched via UWSM and login directly as user, rely on disk encryption + hyprlock for security
|
|
||||||
|
|
||||||
# ==============================================================================
|
|
||||||
# PLYMOUTH SETUP
|
|
||||||
# ==============================================================================
|
|
||||||
|
|
||||||
if [ "$(plymouth-set-default-theme)" != "omarchy" ]; then
|
if [ "$(plymouth-set-default-theme)" != "omarchy" ]; then
|
||||||
sudo cp -r "$HOME/.local/share/omarchy/default/plymouth" /usr/share/plymouth/themes/omarchy/
|
sudo cp -r "$HOME/.local/share/omarchy/default/plymouth" /usr/share/plymouth/themes/omarchy/
|
||||||
sudo plymouth-set-default-theme omarchy
|
sudo plymouth-set-default-theme omarchy
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ==============================================================================
|
|
||||||
# SEAMLESS LOGIN
|
|
||||||
# ==============================================================================
|
|
||||||
|
|
||||||
if [ ! -x /usr/local/bin/seamless-login ]; then
|
|
||||||
# Compile the seamless login helper -- needed to prevent seeing terminal between loader and desktop
|
|
||||||
cat <<'CCODE' >/tmp/seamless-login.c
|
|
||||||
/*
|
|
||||||
* Seamless Login - Minimal SDDM-style Plymouth transition
|
|
||||||
* Replicates SDDM's VT management for seamless auto-login
|
|
||||||
*/
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <linux/kd.h>
|
|
||||||
#include <linux/vt.h>
|
|
||||||
#include <sys/wait.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
|
||||||
int vt_fd;
|
|
||||||
int vt_num = 1; // TTY1
|
|
||||||
char vt_path[32];
|
|
||||||
|
|
||||||
if (argc < 2) {
|
|
||||||
fprintf(stderr, "Usage: %s <session_command>\n", argv[0]);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Open the VT (simple approach like SDDM)
|
|
||||||
snprintf(vt_path, sizeof(vt_path), "/dev/tty%d", vt_num);
|
|
||||||
vt_fd = open(vt_path, O_RDWR);
|
|
||||||
if (vt_fd < 0) {
|
|
||||||
perror("Failed to open VT");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Activate the VT
|
|
||||||
if (ioctl(vt_fd, VT_ACTIVATE, vt_num) < 0) {
|
|
||||||
perror("VT_ACTIVATE failed");
|
|
||||||
close(vt_fd);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Wait for VT to be active
|
|
||||||
if (ioctl(vt_fd, VT_WAITACTIVE, vt_num) < 0) {
|
|
||||||
perror("VT_WAITACTIVE failed");
|
|
||||||
close(vt_fd);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Critical: Set graphics mode to prevent console text
|
|
||||||
if (ioctl(vt_fd, KDSETMODE, KD_GRAPHICS) < 0) {
|
|
||||||
perror("KDSETMODE KD_GRAPHICS failed");
|
|
||||||
close(vt_fd);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Clear VT and close (like SDDM does)
|
|
||||||
const char *clear_seq = "\33[H\33[2J";
|
|
||||||
if (write(vt_fd, clear_seq, strlen(clear_seq)) < 0) {
|
|
||||||
perror("Failed to clear VT");
|
|
||||||
}
|
|
||||||
|
|
||||||
close(vt_fd);
|
|
||||||
|
|
||||||
// Set working directory to user's home
|
|
||||||
const char *home = getenv("HOME");
|
|
||||||
if (home) chdir(home);
|
|
||||||
|
|
||||||
// Now execute the session command
|
|
||||||
execvp(argv[1], &argv[1]);
|
|
||||||
perror("Failed to exec session");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
CCODE
|
|
||||||
|
|
||||||
gcc -o /tmp/seamless-login /tmp/seamless-login.c
|
|
||||||
sudo mv /tmp/seamless-login /usr/local/bin/seamless-login
|
|
||||||
sudo chmod +x /usr/local/bin/seamless-login
|
|
||||||
rm /tmp/seamless-login.c
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f /etc/systemd/system/omarchy-seamless-login.service ]; then
|
|
||||||
cat <<EOF | sudo tee /etc/systemd/system/omarchy-seamless-login.service
|
|
||||||
[Unit]
|
|
||||||
Description=Omarchy Seamless Auto-Login
|
|
||||||
Documentation=https://github.com/basecamp/omarchy
|
|
||||||
Conflicts=getty@tty1.service
|
|
||||||
After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service systemd-logind.service
|
|
||||||
PartOf=graphical.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/local/bin/seamless-login uwsm start -- hyprland.desktop
|
|
||||||
Restart=always
|
|
||||||
RestartSec=2
|
|
||||||
StartLimitIntervalSec=30
|
|
||||||
StartLimitBurst=2
|
|
||||||
User=$USER
|
|
||||||
TTYPath=/dev/tty1
|
|
||||||
TTYReset=yes
|
|
||||||
TTYVHangup=yes
|
|
||||||
TTYVTDisallocate=yes
|
|
||||||
StandardInput=tty
|
|
||||||
StandardOutput=journal
|
|
||||||
StandardError=journal+console
|
|
||||||
PAMName=login
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=graphical.target
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f /etc/systemd/system/plymouth-quit.service.d/wait-for-graphical.conf ]; then
|
|
||||||
# Make plymouth remain until graphical.target
|
|
||||||
sudo mkdir -p /etc/systemd/system/plymouth-quit.service.d
|
|
||||||
sudo tee /etc/systemd/system/plymouth-quit.service.d/wait-for-graphical.conf <<'EOF'
|
|
||||||
[Unit]
|
|
||||||
After=multi-user.target
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Mask plymouth-quit-wait.service only if not already masked
|
|
||||||
if ! systemctl is-enabled plymouth-quit-wait.service | grep -q masked; then
|
|
||||||
sudo systemctl mask plymouth-quit-wait.service
|
|
||||||
sudo systemctl daemon-reload
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Enable omarchy-seamless-login.service only if not already enabled
|
|
||||||
if ! systemctl is-enabled omarchy-seamless-login.service | grep -q enabled; then
|
|
||||||
sudo systemctl enable omarchy-seamless-login.service
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Disable getty@tty1.service only if not already disabled
|
|
||||||
if ! systemctl is-enabled getty@tty1.service | grep -q disabled; then
|
|
||||||
sudo systemctl disable getty@tty1.service
|
|
||||||
fi
|
|
||||||
|
|||||||
16
install/login/sddm.sh
Normal file
16
install/login/sddm.sh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
sudo mkdir -p /etc/sddm.conf.d
|
||||||
|
|
||||||
|
if [ ! -f /etc/sddm.conf.d/autologin.conf ]; then
|
||||||
|
cat <<EOF | sudo tee /etc/sddm.conf.d/autologin.conf
|
||||||
|
[Autologin]
|
||||||
|
User=$USER
|
||||||
|
Session=hyprland-uwsm
|
||||||
|
|
||||||
|
[Theme]
|
||||||
|
Current=breeze
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$USER ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart sddm" | sudo tee /etc/sudoers.d/allow-passwordless-restart-sddm
|
||||||
|
|
||||||
|
chrootable_systemctl_enable sddm.service
|
||||||
@@ -56,6 +56,7 @@ kvantum-qt5
|
|||||||
lazydocker
|
lazydocker
|
||||||
lazygit
|
lazygit
|
||||||
less
|
less
|
||||||
|
libsecret
|
||||||
libyaml
|
libyaml
|
||||||
libqalculate
|
libqalculate
|
||||||
libreoffice
|
libreoffice
|
||||||
@@ -93,6 +94,7 @@ python-terminaltexteffects
|
|||||||
qt5-wayland
|
qt5-wayland
|
||||||
ripgrep
|
ripgrep
|
||||||
satty
|
satty
|
||||||
|
sddm
|
||||||
signal-desktop
|
signal-desktop
|
||||||
slurp
|
slurp
|
||||||
spotify
|
spotify
|
||||||
|
|||||||
@@ -5,9 +5,11 @@ touch ~/.local/state/omarchy/first-run.mode
|
|||||||
# Setup sudo-less access for first-run
|
# Setup sudo-less access for first-run
|
||||||
sudo tee /etc/sudoers.d/first-run >/dev/null <<EOF
|
sudo tee /etc/sudoers.d/first-run >/dev/null <<EOF
|
||||||
Cmnd_Alias FIRST_RUN_CLEANUP = /bin/rm -f /etc/sudoers.d/first-run
|
Cmnd_Alias FIRST_RUN_CLEANUP = /bin/rm -f /etc/sudoers.d/first-run
|
||||||
|
Cmnd_Alias SYMLINK_RESOLVED = /usr/bin/ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw-docker
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw-docker
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/gtk-update-icon-cache
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/gtk-update-icon-cache
|
||||||
|
$USER ALL=(ALL) NOPASSWD: SYMLINK_RESOLVED
|
||||||
$USER ALL=(ALL) NOPASSWD: FIRST_RUN_CLEANUP
|
$USER ALL=(ALL) NOPASSWD: FIRST_RUN_CLEANUP
|
||||||
EOF
|
EOF
|
||||||
sudo chmod 440 /etc/sudoers.d/first-run
|
sudo chmod 440 /etc/sudoers.d/first-run
|
||||||
|
|||||||
@@ -5,25 +5,42 @@ abort() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Must be an Arch distro
|
# Must be an Arch distro
|
||||||
[[ -f /etc/arch-release ]] || abort "Vanilla Arch"
|
if [[ ! -f /etc/arch-release ]]; then
|
||||||
|
abort "Vanilla Arch"
|
||||||
|
fi
|
||||||
|
|
||||||
# Must not be an Arch derivative distro
|
# Must not be an Arch derivative distro
|
||||||
for marker in /etc/cachyos-release /etc/eos-release /etc/garuda-release /etc/manjaro-release; do
|
for marker in /etc/cachyos-release /etc/eos-release /etc/garuda-release /etc/manjaro-release; do
|
||||||
[[ -f "$marker" ]] && abort "Vanilla Arch"
|
if [[ -f "$marker" ]]; then
|
||||||
|
abort "Vanilla Arch"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Must not be running as root
|
# Must not be running as root
|
||||||
[ "$EUID" -eq 0 ] && abort "Running as root (not user)"
|
if [ "$EUID" -eq 0 ]; then
|
||||||
|
abort "Running as root (not user)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Must be x86 only to fully work
|
# Must be x86 only to fully work
|
||||||
[ "$(uname -m)" != "x86_64" ] && abort "x86_64 CPU"
|
if [ "$(uname -m)" != "x86_64" ]; then
|
||||||
|
abort "x86_64 CPU"
|
||||||
|
fi
|
||||||
|
|
||||||
# Must have secure boot disabled
|
# Must have secure boot disabled
|
||||||
bootctl status 2>/dev/null | grep -q 'Secure Boot: disabled' || abort "Secure Boot disabled"
|
if bootctl status 2>/dev/null | grep -q 'Secure Boot: enabled'; then
|
||||||
|
abort "Secure Boot disabled"
|
||||||
|
fi
|
||||||
|
|
||||||
# Must not have Gnome or KDE already install
|
# Must not have Gnome or KDE already install
|
||||||
pacman -Qe gnome-shell &>/dev/null && abort "Fresh + Vanilla Arch"
|
if pacman -Qe gnome-shell &>/dev/null || pacman -Qe plasma-desktop &>/dev/null; then
|
||||||
pacman -Qe plasma-desktop &>/dev/null && abort "Fresh + Vanilla Arch"
|
abort "Fresh + Vanilla Arch"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Must have limine installed
|
||||||
|
command -v limine &>/dev/null || abort "Limine bootloader"
|
||||||
|
|
||||||
|
# Must have btrfs root filesystem
|
||||||
|
[ "$(findmnt -n -o FSTYPE /)" = "btrfs" ] || abort "Btrfs root filesystem"
|
||||||
|
|
||||||
# Cleared all guards
|
# Cleared all guards
|
||||||
echo "Guards: OK"
|
echo "Guards: OK"
|
||||||
|
|||||||
57
migrations/1758487660_change_dm_to_sddm.sh
Executable file
57
migrations/1758487660_change_dm_to_sddm.sh
Executable file
@@ -0,0 +1,57 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
error_exit() {
|
||||||
|
echo -e "\033[31mERROR: Migration failed! Manual intervention required.\033[0m" >&2
|
||||||
|
echo -e "\033[31mDO NOT REBOOT - System may be in inconsistent state until the error is fixed.\033[0m" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
trap error_exit ERR
|
||||||
|
|
||||||
|
echo "Change display manager to SDDM"
|
||||||
|
|
||||||
|
omarchy-pkg-add sddm libsecret gnome-keyring || error_exit
|
||||||
|
|
||||||
|
sudo mkdir -p /etc/sddm.conf.d
|
||||||
|
|
||||||
|
cat <<EOF | sudo tee /etc/sddm.conf.d/autologin.conf
|
||||||
|
[Autologin]
|
||||||
|
User=$USER
|
||||||
|
Session=hyprland-uwsm
|
||||||
|
|
||||||
|
[Theme]
|
||||||
|
Current=breeze
|
||||||
|
EOF
|
||||||
|
|
||||||
|
sudo systemctl disable omarchy-seamless-login.service
|
||||||
|
sudo systemctl unmask plymouth-quit-wait.service
|
||||||
|
sudo systemctl enable getty@tty1.service
|
||||||
|
sudo systemctl enable sddm.service
|
||||||
|
sudo systemctl daemon-reload
|
||||||
|
|
||||||
|
if systemctl is-enabled omarchy-seamless-login.service >/dev/null 2>&1; then
|
||||||
|
echo -e "\033[31mError: omarchy-seamless-login.service is still enabled\033[0m" >&2
|
||||||
|
error_exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if systemctl is-masked plymouth-quit-wait.service >/dev/null 2>&1; then
|
||||||
|
echo -e "\033[31mError: plymouth-quit-wait.service is still masked\033[0m" >&2
|
||||||
|
error_exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! systemctl is-enabled getty@tty1.service >/dev/null 2>&1; then
|
||||||
|
echo -e "\033[31mError: getty@tty1.service is not enabled\033[0m" >&2
|
||||||
|
error_exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! systemctl is-enabled sddm.service >/dev/null 2>&1; then
|
||||||
|
echo -e "\033[31mError: sddm.service is not enabled\033[0m" >&2
|
||||||
|
error_exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo rm -f /usr/local/bin/seamless-login
|
||||||
|
sudo rm -f /etc/systemd/system/plymouth-quit.service.d/wait-for-graphical.conf
|
||||||
|
sudo rm -f /etc/systemd/system/omarchy-seamless-login.service
|
||||||
|
|
||||||
|
echo "Migration completed successfully"
|
||||||
38
migrations/1758487662_move_to_custom_uki.sh
Normal file
38
migrations/1758487662_move_to_custom_uki.sh
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
echo "Update UKI to custom named entry"
|
||||||
|
|
||||||
|
if command -v limine &>/dev/null && [[ -f /etc/default/limine ]]; then
|
||||||
|
if grep -q "^ENABLE_UKI=yes" /etc/default/limine; then
|
||||||
|
if ! grep -q "^CUSTOM_UKI_NAME=" /etc/default/limine; then
|
||||||
|
sudo sed -i '/^ENABLE_UKI=yes/a CUSTOM_UKI_NAME="omarchy"' /etc/default/limine
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove the archinstall-created Limine entry
|
||||||
|
while IFS= read -r bootnum; do
|
||||||
|
sudo efibootmgr -b "$bootnum" -B >/dev/null 2>&1
|
||||||
|
done < <(efibootmgr | grep -E "^Boot[0-9]{4}\*? Arch Linux Limine" | sed 's/^Boot\([0-9]\{4\}\).*/\1/')
|
||||||
|
|
||||||
|
sudo limine-update
|
||||||
|
|
||||||
|
uki_file=$(find /boot/EFI/Linux/ -name "omarchy*.efi" -printf "%f\n" 2>/dev/null | head -1)
|
||||||
|
|
||||||
|
if [[ -n "$uki_file" ]]; then
|
||||||
|
while IFS= read -r bootnum; do
|
||||||
|
sudo efibootmgr -b "$bootnum" -B >/dev/null 2>&1
|
||||||
|
done < <(efibootmgr | grep -E "^Boot[0-9]{4}\*? Omarchy" | sed 's/^Boot\([0-9]\{4\}\).*/\1/')
|
||||||
|
|
||||||
|
# Skip EFI entry creation on Apple hardware
|
||||||
|
if ! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "Apple"; then
|
||||||
|
sudo efibootmgr --create \
|
||||||
|
--disk "$(findmnt -n -o SOURCE /boot | sed 's/p\?[0-9]*$//')" \
|
||||||
|
--part "$(findmnt -n -o SOURCE /boot | grep -o 'p\?[0-9]*$' | sed 's/^p//')" \
|
||||||
|
--label "Omarchy" \
|
||||||
|
--loader "\\EFI\\Linux\\$uki_file"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Not using UKI. Not making any changes."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Boot config is non-standard. Not making any changes."
|
||||||
|
fi
|
||||||
|
|
||||||
3
migrations/1759895423.sh
Normal file
3
migrations/1759895423.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
echo "Make shift+insert paste from clipboard"
|
||||||
|
sed -i '/keybind = f11=toggle_fullscreen/a keybind = shift+insert=paste_from_clipboard' ~/.config/ghostty/config
|
||||||
|
sed -i 's/{ key = "F11", action = "ToggleFullscreen" }/{ key = "F11", action = "ToggleFullscreen" },\n{ key = "Insert", mods = "Shift", action = "Paste" }/' ~/.config/alacritty/alacritty.toml
|
||||||
2
migrations/1759946485.sh
Normal file
2
migrations/1759946485.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
echo "Move calendar to SUPER + SHIFT + C"
|
||||||
|
sed -i 's/bindd = SUPER, C, Calendar, exec, omarchy-launch-webapp "https:\/\/app\.hey\.com\/calendar\/weeks\/"/bindd = SUPER SHIFT, C, Calendar, exec, omarchy-launch-webapp "https:\/\/app.hey.com\/calendar\/weeks\/"/' ~/.config/hypr/*.conf
|
||||||
@@ -3,8 +3,3 @@ include=~/.local/share/omarchy/default/mako/core.ini
|
|||||||
text-color=#4c4f69
|
text-color=#4c4f69
|
||||||
border-color=#1e66f5
|
border-color=#1e66f5
|
||||||
background-color=#eff1f5
|
background-color=#eff1f5
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 11
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=20
|
|
||||||
@@ -3,8 +3,3 @@ include=~/.local/share/omarchy/default/mako/core.ini
|
|||||||
text-color=#cad3f5
|
text-color=#cad3f5
|
||||||
border-color=#c6d0f5
|
border-color=#c6d0f5
|
||||||
background-color=#24273a
|
background-color=#24273a
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 11
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=20
|
|
||||||
@@ -3,8 +3,3 @@ include=~/.local/share/omarchy/default/mako/core.ini
|
|||||||
text-color=#d3c6aa
|
text-color=#d3c6aa
|
||||||
border-color=#d3c6aa
|
border-color=#d3c6aa
|
||||||
background-color=#2d353b
|
background-color=#2d353b
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 11
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=20
|
|
||||||
@@ -3,8 +3,3 @@ include=~/.local/share/omarchy/default/mako/core.ini
|
|||||||
text-color=#d4be98
|
text-color=#d4be98
|
||||||
border-color=#a89984
|
border-color=#a89984
|
||||||
background-color=#282828
|
background-color=#282828
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 11
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=20
|
|
||||||
@@ -3,8 +3,3 @@ include=~/.local/share/omarchy/default/mako/core.ini
|
|||||||
text-color=#dcd7ba
|
text-color=#dcd7ba
|
||||||
border-color=#dcd7ba
|
border-color=#dcd7ba
|
||||||
background-color=#1f1f28
|
background-color=#1f1f28
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 11
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=20
|
|
||||||
@@ -3,8 +3,3 @@ include=~/.local/share/omarchy/default/mako/core.ini
|
|||||||
text-color=#8a8a8d
|
text-color=#8a8a8d
|
||||||
border-color=#8A8A8D
|
border-color=#8A8A8D
|
||||||
background-color=#1e1e1e
|
background-color=#1e1e1e
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 11
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=20
|
|
||||||
|
|||||||
@@ -3,8 +3,3 @@ include=~/.local/share/omarchy/default/mako/core.ini
|
|||||||
text-color=#d8dee9
|
text-color=#d8dee9
|
||||||
border-color=#D8DEE9
|
border-color=#D8DEE9
|
||||||
background-color=#2e3440
|
background-color=#2e3440
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 11
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=20
|
|
||||||
@@ -16,7 +16,7 @@ white = "#F6F5DD"
|
|||||||
[colors.bright]
|
[colors.bright]
|
||||||
black = "#53685B"
|
black = "#53685B"
|
||||||
red = "#db9f9c"
|
red = "#db9f9c"
|
||||||
green = "#143614"
|
green = "#63b07a"
|
||||||
yellow = "#E5C736"
|
yellow = "#E5C736"
|
||||||
blue = "#ACD4CF"
|
blue = "#ACD4CF"
|
||||||
magenta = "#75bbb3"
|
magenta = "#75bbb3"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ palette = 7=#F6F5DD
|
|||||||
# bright colors
|
# bright colors
|
||||||
palette = 8=#53685B
|
palette = 8=#53685B
|
||||||
palette = 9=#db9f9c
|
palette = 9=#db9f9c
|
||||||
palette = 10=#143614
|
palette = 10=#63b07a
|
||||||
palette = 11=#E5C736
|
palette = 11=#E5C736
|
||||||
palette = 12=#ACD4CF
|
palette = 12=#ACD4CF
|
||||||
palette = 13=#75bbb3
|
palette = 13=#75bbb3
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ color9 #DB9F9C
|
|||||||
|
|
||||||
# green
|
# green
|
||||||
color2 #549E6A
|
color2 #549E6A
|
||||||
color10 #143614
|
color10 #63b07a
|
||||||
|
|
||||||
# yellow
|
# yellow
|
||||||
color3 #459451
|
color3 #459451
|
||||||
|
|||||||
@@ -3,8 +3,3 @@ include=~/.local/share/omarchy/default/mako/core.ini
|
|||||||
text-color=#C1C497
|
text-color=#C1C497
|
||||||
border-color=#214237
|
border-color=#214237
|
||||||
background-color=#11221C
|
background-color=#11221C
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 12
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=5
|
|
||||||
@@ -3,8 +3,3 @@ include=~/.local/share/omarchy/default/mako/core.ini
|
|||||||
text-color=#e6d9db
|
text-color=#e6d9db
|
||||||
border-color=#e6d9db
|
border-color=#e6d9db
|
||||||
background-color=#2c2525
|
background-color=#2c2525
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 11
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=20
|
|
||||||
@@ -3,8 +3,3 @@ include=~/.local/share/omarchy/default/mako/core.ini
|
|||||||
text-color=#575279
|
text-color=#575279
|
||||||
border-color=#575279
|
border-color=#575279
|
||||||
background-color=#faf4ed
|
background-color=#faf4ed
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 11
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=20
|
|
||||||
@@ -1,10 +1,5 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
include=~/.local/share/omarchy/default/mako/core.ini
|
||||||
|
|
||||||
text-color=#a9b1d6
|
text-color=#c0caf5
|
||||||
border-color=#33ccff
|
border-color=#33ccff
|
||||||
background-color=#1a1b26
|
background-color=#1a1b26
|
||||||
padding=10
|
|
||||||
border-size=2
|
|
||||||
font=Liberation Sans 11
|
|
||||||
max-icon-size=32
|
|
||||||
outer-margin=20
|
|
||||||
Reference in New Issue
Block a user