mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
6 Commits
6ff13fc071
...
revert-458
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2453ca6ea4 | ||
|
|
b3dd14a038 | ||
|
|
7dc638358b | ||
|
|
3e07255fbc | ||
|
|
02fd1961b9 | ||
|
|
40bff09c84 |
@@ -2,5 +2,3 @@
|
|||||||
--ozone-platform-hint=wayland
|
--ozone-platform-hint=wayland
|
||||||
--enable-features=TouchpadOverscrollHistoryNavigation
|
--enable-features=TouchpadOverscrollHistoryNavigation
|
||||||
--load-extension=~/.local/share/omarchy/default/chromium/extensions/copy-url
|
--load-extension=~/.local/share/omarchy/default/chromium/extensions/copy-url
|
||||||
# Chromium crash workaround for Wayland color management on Hyprland - see https://github.com/hyprwm/Hyprland/issues/11957
|
|
||||||
--disable-features=WaylandWpColorManagerV1
|
|
||||||
|
|||||||
@@ -2,5 +2,3 @@
|
|||||||
--ozone-platform-hint=wayland
|
--ozone-platform-hint=wayland
|
||||||
--enable-features=TouchpadOverscrollHistoryNavigation
|
--enable-features=TouchpadOverscrollHistoryNavigation
|
||||||
--load-extension=~/.local/share/omarchy/default/chromium/extensions/copy-url
|
--load-extension=~/.local/share/omarchy/default/chromium/extensions/copy-url
|
||||||
# Chromium crash workaround for Wayland color management on Hyprland - see https://github.com/hyprwm/Hyprland/issues/11957
|
|
||||||
--disable-features=WaylandWpColorManagerV1
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://opencode.ai/config.json",
|
"$schema": "https://opencode.ai/config.json",
|
||||||
"theme": "system"
|
"theme": "system",
|
||||||
|
"autoupdate": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,15 +4,33 @@ alias decompress="tar -xzf"
|
|||||||
|
|
||||||
# Write iso file to sd card
|
# Write iso file to sd card
|
||||||
iso2sd() {
|
iso2sd() {
|
||||||
if [ $# -ne 2 ]; then
|
if [[ $# -lt 1 ]]; then
|
||||||
echo "Usage: iso2sd <input_file> <output_device>"
|
echo "Usage: iso2sd <input_file> [output_device]"
|
||||||
echo "Example: iso2sd ~/Downloads/ubuntu-25.04-desktop-amd64.iso /dev/sda"
|
echo "Example: iso2sd ~/Downloads/ubuntu-25.04-desktop-amd64.iso /dev/sda"
|
||||||
echo -e "\nAvailable SD cards:"
|
return 1
|
||||||
lsblk -d -o NAME | grep -E '^sd[a-z]' | awk '{print "/dev/"$1}'
|
|
||||||
else
|
|
||||||
sudo dd bs=4M status=progress oflag=sync if="$1" of="$2"
|
|
||||||
sudo eject $2
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local iso="$1"
|
||||||
|
local drive="$2"
|
||||||
|
|
||||||
|
if [[ -z $drive ]]; then
|
||||||
|
local available_sds=$(lsblk -dpno NAME | grep -E '/dev/sd')
|
||||||
|
|
||||||
|
if [[ -z $available_sds ]]; then
|
||||||
|
echo "No SD drives found and no drive specified"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
drive=$(omarchy-drive-select "$available_sds")
|
||||||
|
|
||||||
|
if [[ -z $drive ]]; then
|
||||||
|
echo "No drive selected"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo dd bs=4M status=progress oflag=sync if="$iso" of="$drive"
|
||||||
|
sudo eject "$drive"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Format an entire drive for a single partition using exFAT
|
# Format an entire drive for a single partition using exFAT
|
||||||
@@ -118,8 +136,8 @@ tml() {
|
|||||||
# Get current pane ID (will become editor pane after splits)
|
# Get current pane ID (will become editor pane after splits)
|
||||||
editor_pane=$(tmux display-message -p '#{pane_id}')
|
editor_pane=$(tmux display-message -p '#{pane_id}')
|
||||||
|
|
||||||
# Split window vertically - top 90%, bottom 10%
|
# Split window vertically - top 85%, bottom 15%
|
||||||
tmux split-window -v -p 10 -c "$current_dir"
|
tmux split-window -v -p 15 -c "$current_dir"
|
||||||
|
|
||||||
# Go back to top pane (editor_pane) and split it horizontally
|
# Go back to top pane (editor_pane) and split it horizontally
|
||||||
tmux select-pane -t "$editor_pane"
|
tmux select-pane -t "$editor_pane"
|
||||||
|
|||||||
3
migrations/1769616857.sh
Normal file
3
migrations/1769616857.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
echo "Turn off opencode's own auto-update feature (we rely on pacman)"
|
||||||
|
|
||||||
|
omarchy-refresh-config opencode/opencode.json
|
||||||
14
migrations/1771188969.sh
Normal file
14
migrations/1771188969.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
echo "Remove temporary Wayland color manager disabling flag from existing Chromium configs"
|
||||||
|
|
||||||
|
# This reverts the workaround originally added by migration 1760401344.sh
|
||||||
|
# Remove flag and comment from chromium-flags.conf only if found
|
||||||
|
if [[ -f ~/.config/chromium-flags.conf ]]; then
|
||||||
|
sed -i '/--disable-features=WaylandWpColorManagerV1/d' ~/.config/chromium-flags.conf
|
||||||
|
sed -i '/# Chromium crash workaround for Wayland color management on Hyprland/d' ~/.config/chromium-flags.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove flag and comment from brave-flags.conf only if found
|
||||||
|
if [[ -f ~/.config/brave-flags.conf ]]; then
|
||||||
|
sed -i '/--disable-features=WaylandWpColorManagerV1/d' ~/.config/brave-flags.conf
|
||||||
|
sed -i '/# Chromium crash workaround for Wayland color management on Hyprland/d' ~/.config/brave-flags.conf
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user