mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
24 Commits
create-ver
...
add-fast-s
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d6477f212 | ||
|
|
0a28bd1e67 | ||
|
|
9dc8a1717c | ||
|
|
c4d8ef6a15 | ||
|
|
2df8c5f7e0 | ||
|
|
a820b72da9 | ||
|
|
39c27939f3 | ||
|
|
0123cf7917 | ||
|
|
a746812504 | ||
|
|
ad01082a86 | ||
|
|
ba743c623d | ||
|
|
779c1b9ecc | ||
|
|
e4ab5bee14 | ||
|
|
f60b9d1cb4 | ||
|
|
70661d5d5b | ||
|
|
ad155b2545 | ||
|
|
206930def8 | ||
|
|
a965a333ea | ||
|
|
ed3b723c7f | ||
|
|
83ab85799b | ||
|
|
ffe7cd5099 | ||
|
|
28c4814f5a | ||
|
|
cf41ecaaa5 | ||
|
|
9aef0ffab6 |
@@ -47,6 +47,7 @@ install_node() {
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
ruby)
|
ruby)
|
||||||
echo -e "Installing Ruby on Rails...\n"
|
echo -e "Installing Ruby on Rails...\n"
|
||||||
|
omarchy-pkg-add libyaml
|
||||||
mise use --global ruby@latest
|
mise use --global ruby@latest
|
||||||
mise settings add idiomatic_version_file_enable_tools ruby
|
mise settings add idiomatic_version_file_enable_tools ruby
|
||||||
mise x ruby -- gem install rails --no-document
|
mise x ruby -- gem install rails --no-document
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ 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+" "+.title)|test($p;"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
|
||||||
hyprctl dispatch focuswindow "address:$WINDOW_ADDRESS"
|
hyprctl dispatch focuswindow "address:$WINDOW_ADDRESS"
|
||||||
|
|||||||
@@ -430,7 +430,8 @@ show_update_config_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_update_hardware_menu() {
|
show_update_hardware_menu() {
|
||||||
case $(menu "Restart" " Wi-Fi\n Bluetooth") in
|
case $(menu "Restart" " Audio\n Wi-Fi\n Bluetooth") in
|
||||||
|
*Audio*) present_terminal omarchy-restart-pipewire ;;
|
||||||
*Wi-Fi*) present_terminal omarchy-restart-wifi ;;
|
*Wi-Fi*) present_terminal omarchy-restart-wifi ;;
|
||||||
*Bluetooth*) present_terminal omarchy-restart-bluetooth ;;
|
*Bluetooth*) present_terminal omarchy-restart-bluetooth ;;
|
||||||
*) show_update_menu ;;
|
*) show_update_menu ;;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo -e "Unblocking bluetooth...\n"
|
||||||
rfkill unblock bluetooth
|
rfkill unblock bluetooth
|
||||||
rfkill list bluetooth
|
rfkill list bluetooth
|
||||||
|
|||||||
4
bin/omarchy-restart-pipewire
Executable file
4
bin/omarchy-restart-pipewire
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo -e "Restarting pirewire audio service...\n"
|
||||||
|
systemctl --user restart pipewire.service
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo -e "Unblocking wifi...\n"
|
||||||
rfkill unblock wifi
|
rfkill unblock wifi
|
||||||
rfkill list wifi
|
rfkill list wifi
|
||||||
|
|||||||
@@ -3,12 +3,5 @@
|
|||||||
case "$TERMINAL" in
|
case "$TERMINAL" in
|
||||||
"alacritty") touch ~/.config/alacritty/alacritty.toml ;;
|
"alacritty") touch ~/.config/alacritty/alacritty.toml ;;
|
||||||
"kitty") killall -SIGUSR1 kitty ;;
|
"kitty") killall -SIGUSR1 kitty ;;
|
||||||
"ghostty")
|
"ghostty") killall -SIGUSR2 ghostty ;;
|
||||||
# Use a default theme if none exists
|
|
||||||
if [[ ! -f ~/.config/omarchy/current/theme/ghostty.conf ]]; then
|
|
||||||
echo "theme = Spacegray" >~/.config/omarchy/current/theme/ghostty.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
killall -USRSIG2 ghostty
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Note: We cannot use `jq` to update settings.json because it’s JSONC (allows comments),
|
||||||
|
# which jq doesn’t support.
|
||||||
|
|
||||||
VS_CODE_THEME="$HOME/.config/omarchy/current/theme/vscode.json"
|
VS_CODE_THEME="$HOME/.config/omarchy/current/theme/vscode.json"
|
||||||
VS_CODE_SETTINGS="$HOME/.config/Code/User/settings.json"
|
VS_CODE_SETTINGS="$HOME/.config/Code/User/settings.json"
|
||||||
VS_CODE_SKIP_FLAG="$HOME/.local/state/omarchy/toggles/skip-vscode-theme-changes"
|
VS_CODE_SKIP_FLAG="$HOME/.local/state/omarchy/toggles/skip-vscode-theme-changes"
|
||||||
@@ -15,12 +18,29 @@ if omarchy-cmd-present code && [[ ! -f "$VS_CODE_SKIP_FLAG" ]]; then
|
|||||||
code --install-extension "$extension" >/dev/null
|
code --install-extension "$extension" >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update theme in settings.json
|
# Create config file if there isn't already one
|
||||||
jq -n --arg t "$theme_name" '(input? // {}) | .["workbench.colorTheme"] = $t' "$VS_CODE_SETTINGS" >"${VS_CODE_SETTINGS}.new"
|
mkdir -p "$(dirname "$VS_CODE_SETTINGS")"
|
||||||
|
if [[ ! -f "$VS_CODE_SETTINGS" ]]; then
|
||||||
|
printf '{\n}\n' > "$VS_CODE_SETTINGS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create a `workbench.colorTheme` entry in settings.
|
||||||
|
if ! grep -q '"workbench.colorTheme"' "$VS_CODE_SETTINGS"; then
|
||||||
|
# Insert `"workbench.colorTheme": "",` immediately after the first `{`
|
||||||
|
# Use sed's first-match range (0,/{/) to only replace the first `{`
|
||||||
|
sed -i --follow-symlinks -E '0,/\{/{s/\{/{\
|
||||||
|
"workbench.colorTheme": "",/}' "$VS_CODE_SETTINGS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Update theme
|
||||||
|
sed -i --follow-symlinks -E \
|
||||||
|
"s/(\"workbench.colorTheme\"[[:space:]]*:[[:space:]]*\")[^\"]*(\")/\1$theme_name\2/" \
|
||||||
|
"$VS_CODE_SETTINGS"
|
||||||
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 vscode support
|
||||||
jq 'del(.["workbench.colorTheme"])' "$VS_CODE_SETTINGS" >"${VS_CODE_SETTINGS}.new"
|
if [[ -f "$VS_CODE_SETTINGS" ]]; then
|
||||||
fi
|
sed -i --follow-symlinks -E '/"workbench\.colorTheme"[[:space:]]*:[^,}]*,?/d' "$VS_CODE_SETTINGS"
|
||||||
|
|
||||||
mv "${VS_CODE_SETTINGS}.new" "$VS_CODE_SETTINGS"
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Dynamic theme colors
|
# Dynamic theme colors
|
||||||
config-file = "~/.config/omarchy/current/theme/ghostty.conf"
|
config-file = ?"~/.config/omarchy/current/theme/ghostty.conf"
|
||||||
|
|
||||||
# Font
|
# Font
|
||||||
font-family = "CaskaydiaMono Nerd Font"
|
font-family = "CaskaydiaMono Nerd Font"
|
||||||
@@ -12,7 +12,7 @@ window-padding-y = 14
|
|||||||
confirm-close-surface=false
|
confirm-close-surface=false
|
||||||
resize-overlay = never
|
resize-overlay = never
|
||||||
|
|
||||||
# Cursor stlying
|
# Cursor styling
|
||||||
cursor-style = "block"
|
cursor-style = "block"
|
||||||
cursor-style-blink = false
|
cursor-style-blink = false
|
||||||
shell-integration-features = no-cursor
|
shell-integration-features = no-cursor
|
||||||
|
|||||||
@@ -27,8 +27,9 @@ input {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Scroll faster in the terminal
|
# Scroll nicely in the terminal
|
||||||
windowrule = scrolltouchpad 1.5, tag:terminal
|
windowrule = scrolltouchpad 1.5, class:(Alacritty|kitty)
|
||||||
|
windowrule = scrolltouchpad 0.2, class:com.mitchellh.ghostty
|
||||||
|
|
||||||
# Enable touchpad gestures for changing workspaces
|
# Enable touchpad gestures for changing workspaces
|
||||||
# See https://wiki.hyprland.org/Configuring/Gestures/
|
# See https://wiki.hyprland.org/Configuring/Gestures/
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ windowrule = center, tag:floating-window
|
|||||||
windowrule = size 800 600, tag:floating-window
|
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 Folder|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)
|
||||||
|
|
||||||
# Fullscreen screensaver
|
# Fullscreen screensaver
|
||||||
windowrule = fullscreen, class:Screensaver
|
windowrule = fullscreen, class:Screensaver
|
||||||
|
|||||||
@@ -87,3 +87,8 @@ misc {
|
|||||||
disable_splash_rendering = true
|
disable_splash_rendering = true
|
||||||
focus_on_activate = true
|
focus_on_activate = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#cursor
|
||||||
|
cursor {
|
||||||
|
hide_on_key_press = true
|
||||||
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ run_logged $OMARCHY_INSTALL/config/fix-powerprofilesctl-shebang.sh
|
|||||||
run_logged $OMARCHY_INSTALL/config/docker.sh
|
run_logged $OMARCHY_INSTALL/config/docker.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/mimetypes.sh
|
run_logged $OMARCHY_INSTALL/config/mimetypes.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/localdb.sh
|
run_logged $OMARCHY_INSTALL/config/localdb.sh
|
||||||
|
run_logged $OMARCHY_INSTALL/config/fast-shutdown.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/sudoless-asdcontrol.sh
|
run_logged $OMARCHY_INSTALL/config/sudoless-asdcontrol.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/network.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/network.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/set-wireless-regdom.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/set-wireless-regdom.sh
|
||||||
|
|||||||
7
install/config/fast-shutdown.sh
Executable file
7
install/config/fast-shutdown.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
sudo mkdir -p /etc/systemd/system.conf.d
|
||||||
|
|
||||||
|
cat <<EOF | sudo tee /etc/systemd/system.conf.d/10-faster-shutdown.conf
|
||||||
|
[Manager]
|
||||||
|
DefaultTimeoutStopSec=5s
|
||||||
|
EOF
|
||||||
|
sudo systemctl daemon-reload
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# Called by Omarchy ISO setup before starting configurator and archinstall
|
|
||||||
|
|
||||||
source "$OMARCHY_INSTALL/preflight/set-size-vars.sh"
|
|
||||||
source "$OMARCHY_INSTALL/helpers/logo.sh"
|
|
||||||
source "$OMARCHY_INSTALL/preflight/gum.sh"
|
|
||||||
source "$OMARCHY_INSTALL/helpers/tail-log-output.sh"
|
|
||||||
source "$OMARCHY_INSTALL/helpers/trap-errors.sh"
|
|
||||||
|
|
||||||
source $OMARCHY_INSTALL/helpers/chroot.sh
|
|
||||||
source $OMARCHY_INSTALL/helpers/logo.sh
|
|
||||||
source $OMARCHY_INSTALL/helpers/gum.sh
|
|
||||||
source $OMARCHY_INSTALL/helpers/errors.sh
|
|
||||||
source $OMARCHY_INSTALL/helpers/logging.sh
|
|
||||||
source $OMARCHY_INSTALL/helpers/layout.sh
|
|
||||||
0
migrations/1757021485.sh
Executable file → Normal file
0
migrations/1757021485.sh
Executable file → Normal file
2
migrations/1758564460_enable_fast_shutdown.sh
Normal file
2
migrations/1758564460_enable_fast_shutdown.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
echo "Enable fast shutdown"
|
||||||
|
source $OMARCHY_PATH/install/config/fast-shutdown.sh
|
||||||
@@ -1,3 +1,12 @@
|
|||||||
|
background = #121212
|
||||||
|
foreground = #BEBEBE
|
||||||
|
|
||||||
|
cursor-color = #EAEAEA
|
||||||
|
cursor-text = #121212
|
||||||
|
|
||||||
|
selection-background = #333333
|
||||||
|
selection-foreground = #EAEAEA
|
||||||
|
|
||||||
# normal colors
|
# normal colors
|
||||||
palette = 0=#333333
|
palette = 0=#333333
|
||||||
palette = 1=#D35F5F
|
palette = 1=#D35F5F
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"name": "MatteBlack",
|
"name": "Matte Black",
|
||||||
"extension": "TahaYVR.matteblack"
|
"extension": "TahaYVR.matteblack"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,25 @@
|
|||||||
theme = TokyoNight
|
# primary
|
||||||
|
background = #111c18
|
||||||
|
foreground = #C1C497
|
||||||
|
cursor-color = #D7C995
|
||||||
|
cursor-text = #000000
|
||||||
|
|
||||||
|
# normal colors
|
||||||
|
palette = 0=#23372B
|
||||||
|
palette = 1=#FF5345
|
||||||
|
palette = 2=#549e6a
|
||||||
|
palette = 3=#459451
|
||||||
|
palette = 4=#509475
|
||||||
|
palette = 5=#D2689C
|
||||||
|
palette = 6=#2DD5B7
|
||||||
|
palette = 7=#F6F5DD
|
||||||
|
|
||||||
|
# bright colors
|
||||||
|
palette = 8=#53685B
|
||||||
|
palette = 9=#db9f9c
|
||||||
|
palette = 10=#143614
|
||||||
|
palette = 11=#E5C736
|
||||||
|
palette = 12=#ACD4CF
|
||||||
|
palette = 13=#75bbb3
|
||||||
|
palette = 14=#8CD3CB
|
||||||
|
palette = 15=#9eebb3
|
||||||
|
|||||||
Reference in New Issue
Block a user