mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
14 Commits
69dbee75cd
...
toggle-hyb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79dc4c4b52 | ||
|
|
3678b27170 | ||
|
|
08fead671e | ||
|
|
df65a4aaef | ||
|
|
b218655301 | ||
|
|
5fac51272c | ||
|
|
4921d68ee1 | ||
|
|
7e18659cd6 | ||
|
|
989229d515 | ||
|
|
64f7880b08 | ||
|
|
8e21a5341f | ||
|
|
e73f56b1b1 | ||
|
|
16edd8982b | ||
|
|
06d06c0c3d |
@@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
for bat in /sys/class/power_supply/BAT*; do
|
|
||||||
[[ -r "$bat/present" ]] &&
|
|
||||||
[[ "$(cat "$bat/present")" == "1" ]] &&
|
|
||||||
[[ "$(cat "$bat/type")" == "Battery" ]] &&
|
|
||||||
exit 0
|
|
||||||
done
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
@@ -3,15 +3,14 @@
|
|||||||
# Set the branch for Omarchy's git repository.
|
# Set the branch for Omarchy's git repository.
|
||||||
|
|
||||||
if (($# == 0)); then
|
if (($# == 0)); then
|
||||||
echo "Usage: omarchy-branch-set [master|rc|dev]"
|
echo "Usage: omarchy-branch-set [master|dev]"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
branch="$1"
|
branch="$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$branch" != "master" && "$branch" != "rc" && "$branch" != "edge" ]]; then
|
case "$branch" in
|
||||||
echo "Error: Invalid branch '$branch'. Must be one of: master, rc, edge"
|
"master") git -C $OMARCHY_PATH switch master ;;
|
||||||
exit 1
|
"dev") git -C $OMARCHY_PATH switch dev ;;
|
||||||
fi
|
*) echo "Unknown branch: $branch"; exit 1; ;;
|
||||||
|
esac
|
||||||
git -C $OMARCHY_PATH switch $branch
|
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Adjust keyboard backlight brightness using available steps.
|
|
||||||
# Usage: omarchy-brightness-keyboard <up|down>
|
|
||||||
|
|
||||||
direction="${1:-up}"
|
|
||||||
|
|
||||||
# Find keyboard backlight device (look for *kbd_backlight* pattern in leds class).
|
|
||||||
device=""
|
|
||||||
for candidate in /sys/class/leds/*kbd_backlight*; do
|
|
||||||
if [[ -e "$candidate" ]]; then
|
|
||||||
device="$(basename "$candidate")"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ -z "$device" ]]; then
|
|
||||||
echo "No keyboard backlight device found" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get current and max brightness to determine step size.
|
|
||||||
max_brightness="$(brightnessctl -d "$device" max)"
|
|
||||||
current_brightness="$(brightnessctl -d "$device" get)"
|
|
||||||
|
|
||||||
# Calculate step as one unit (keyboards typically have discrete levels like 0-3).
|
|
||||||
if [[ "$direction" == "up" ]]; then
|
|
||||||
new_brightness=$((current_brightness + 1))
|
|
||||||
[[ $new_brightness -gt $max_brightness ]] && new_brightness=$max_brightness
|
|
||||||
else
|
|
||||||
new_brightness=$((current_brightness - 1))
|
|
||||||
[[ $new_brightness -lt 0 ]] && new_brightness=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set the new brightness.
|
|
||||||
brightnessctl -d "$device" set "$new_brightness" >/dev/null
|
|
||||||
|
|
||||||
# Use SwayOSD to display the new brightness setting.
|
|
||||||
percent=$((new_brightness * 100 / max_brightness))
|
|
||||||
omarchy-swayosd-brightness "$percent"
|
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
# and people with a lot of experience managing Linux systems.
|
# and people with a lot of experience managing Linux systems.
|
||||||
|
|
||||||
if (($# == 0)); then
|
if (($# == 0)); then
|
||||||
echo "Usage: omarchy-channel-set [stable|rc|edge|dev]"
|
echo "Usage: omarchy-channel-set [stable|edge|dev]"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
channel="$1"
|
channel="$1"
|
||||||
@@ -22,7 +22,6 @@ fi
|
|||||||
|
|
||||||
case "$channel" in
|
case "$channel" in
|
||||||
"stable") omarchy-branch-set "master" && omarchy-refresh-pacman "stable" && sudo pacman -Suu --noconfirm ;;
|
"stable") omarchy-branch-set "master" && omarchy-refresh-pacman "stable" && sudo pacman -Suu --noconfirm ;;
|
||||||
"rc") omarchy-branch-set "rc" && omarchy-refresh-pacman "rc" && sudo pacman -Suu --noconfirm ;;
|
|
||||||
"edge") omarchy-branch-set "master" && omarchy-refresh-pacman "edge" ;;
|
"edge") omarchy-branch-set "master" && omarchy-refresh-pacman "edge" ;;
|
||||||
"dev") omarchy-branch-set "dev" && omarchy-refresh-pacman "edge" ;;
|
"dev") omarchy-branch-set "dev" && omarchy-refresh-pacman "edge" ;;
|
||||||
*) echo "Unknown channel: $channel"; exit 1; ;;
|
*) echo "Unknown channel: $channel"; exit 1; ;;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Adjust brightness on the most likely display device.
|
# Adjust brightness on the most likely display device.
|
||||||
# Usage: omarchy-brightness-display <step>
|
# Usage: omarchy-cmd-brightness <step>
|
||||||
|
|
||||||
step="${1:-+5%}"
|
step="${1:-+5%}"
|
||||||
|
|
||||||
@@ -14,7 +14,6 @@ fi
|
|||||||
DESKTOP_AUDIO="false"
|
DESKTOP_AUDIO="false"
|
||||||
MICROPHONE_AUDIO="false"
|
MICROPHONE_AUDIO="false"
|
||||||
WEBCAM="false"
|
WEBCAM="false"
|
||||||
WEBCAM_DEVICE=""
|
|
||||||
STOP_RECORDING="false"
|
STOP_RECORDING="false"
|
||||||
|
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
@@ -22,7 +21,6 @@ for arg in "$@"; do
|
|||||||
--with-desktop-audio) DESKTOP_AUDIO="true" ;;
|
--with-desktop-audio) DESKTOP_AUDIO="true" ;;
|
||||||
--with-microphone-audio) MICROPHONE_AUDIO="true" ;;
|
--with-microphone-audio) MICROPHONE_AUDIO="true" ;;
|
||||||
--with-webcam) WEBCAM="true" ;;
|
--with-webcam) WEBCAM="true" ;;
|
||||||
--webcam-device=*) WEBCAM_DEVICE="${arg#*=}" ;;
|
|
||||||
--stop-recording) STOP_RECORDING="true"
|
--stop-recording) STOP_RECORDING="true"
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@@ -34,15 +32,6 @@ cleanup_webcam() {
|
|||||||
start_webcam_overlay() {
|
start_webcam_overlay() {
|
||||||
cleanup_webcam
|
cleanup_webcam
|
||||||
|
|
||||||
# Auto-detect first available webcam if none specified
|
|
||||||
if [[ -z "$WEBCAM_DEVICE" ]]; then
|
|
||||||
WEBCAM_DEVICE=$(v4l2-ctl --list-devices 2>/dev/null | grep -m1 "^\s*/dev/video" | tr -d '\t')
|
|
||||||
if [[ -z "$WEBCAM_DEVICE" ]]; then
|
|
||||||
notify-send "No webcam devices found" -u critical -t 3000
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get monitor scale
|
# Get monitor scale
|
||||||
local scale=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .scale')
|
local scale=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .scale')
|
||||||
|
|
||||||
@@ -52,7 +41,7 @@ start_webcam_overlay() {
|
|||||||
# Try preferred 16:9 resolutions in order, use first available
|
# Try preferred 16:9 resolutions in order, use first available
|
||||||
local preferred_resolutions=("640x360" "1280x720" "1920x1080")
|
local preferred_resolutions=("640x360" "1280x720" "1920x1080")
|
||||||
local video_size_arg=""
|
local video_size_arg=""
|
||||||
local available_formats=$(v4l2-ctl --list-formats-ext -d "$WEBCAM_DEVICE" 2>/dev/null)
|
local available_formats=$(v4l2-ctl --list-formats-ext -d /dev/video0 2>/dev/null)
|
||||||
|
|
||||||
for resolution in "${preferred_resolutions[@]}"; do
|
for resolution in "${preferred_resolutions[@]}"; do
|
||||||
if echo "$available_formats" | grep -q "$resolution"; then
|
if echo "$available_formats" | grep -q "$resolution"; then
|
||||||
@@ -61,7 +50,7 @@ start_webcam_overlay() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
ffplay -f v4l2 $video_size_arg -framerate 30 "$WEBCAM_DEVICE" \
|
ffplay -f v4l2 $video_size_arg -framerate 30 /dev/video0 \
|
||||||
-vf "scale=${target_width}:-1" \
|
-vf "scale=${target_width}:-1" \
|
||||||
-window_title "WebcamOverlay" \
|
-window_title "WebcamOverlay" \
|
||||||
-noborder \
|
-noborder \
|
||||||
|
|||||||
@@ -67,8 +67,4 @@ sudo cp "$OMARCHY_PATH/default/systemd/hibernate.conf" /etc/systemd/sleep.conf.d
|
|||||||
echo "Regenerating initramfs..."
|
echo "Regenerating initramfs..."
|
||||||
sudo limine-mkinitcpio
|
sudo limine-mkinitcpio
|
||||||
|
|
||||||
echo
|
echo "Hibernation enabled"
|
||||||
|
|
||||||
if gum confirm "Reboot to enable hiberation?"; then
|
|
||||||
omarchy-cmd-reboot
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Install and launch Geforce Now.
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
omarchy-pkg-add flatpak
|
|
||||||
cd /tmp
|
|
||||||
|
|
||||||
# Download and run GeForce NOW
|
|
||||||
curl -LO https://international.download.nvidia.com/GFNLinux/GeForceNOWSetup.bin
|
|
||||||
chmod +x GeForceNOWSetup.bin
|
|
||||||
./GeForceNOWSetup.bin
|
|
||||||
|
|
||||||
# Ensure a separate browser process not started by GFN is available.
|
|
||||||
# If not, it seems like GFN has a tendency to hang on login.
|
|
||||||
setsid omarchy-launch-browser
|
|
||||||
@@ -88,11 +88,11 @@ show_learn_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_trigger_menu() {
|
show_trigger_menu() {
|
||||||
case $(menu "Trigger" " Capture\n Share\n Toggle\n Hardware") in
|
case $(menu "Trigger" " Capture\n Share\n Toggle\n Tweaks") in
|
||||||
*Capture*) show_capture_menu ;;
|
*Capture*) show_capture_menu ;;
|
||||||
*Share*) show_share_menu ;;
|
*Share*) show_share_menu ;;
|
||||||
*Toggle*) show_toggle_menu ;;
|
*Toggle*) show_toggle_menu ;;
|
||||||
*Hardware*) show_hardware_menu ;;
|
*Tweaks*) show_tweaks_menu ;;
|
||||||
*) show_main_menu ;;
|
*) show_main_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -114,43 +114,13 @@ show_screenshot_menu() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
get_webcam_list() {
|
|
||||||
v4l2-ctl --list-devices 2>/dev/null | while IFS= read -r line; do
|
|
||||||
if [[ "$line" != $'\t'* && -n "$line" ]]; then
|
|
||||||
local name="$line"
|
|
||||||
IFS= read -r device || break
|
|
||||||
device=$(echo "$device" | tr -d '\t' | head -1)
|
|
||||||
[[ -n "$device" ]] && echo "$device $name"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
show_webcam_select_menu() {
|
|
||||||
local devices=$(get_webcam_list)
|
|
||||||
local count=$(echo "$devices" | grep -c . 2>/dev/null || echo 0)
|
|
||||||
|
|
||||||
if [[ -z "$devices" || "$count" -eq 0 ]]; then
|
|
||||||
notify-send "No webcam devices found" -u critical -t 3000
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$count" -eq 1 ]]; then
|
|
||||||
echo "$devices" | awk '{print $1}'
|
|
||||||
else
|
|
||||||
menu "Select Webcam" "$devices" | awk '{print $1}'
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
show_screenrecord_menu() {
|
show_screenrecord_menu() {
|
||||||
omarchy-cmd-screenrecord --stop-recording && exit 0
|
omarchy-cmd-screenrecord --stop-recording && exit 0
|
||||||
|
|
||||||
case $(menu "Screenrecord" " With desktop audio\n With desktop + microphone audio\n With desktop + microphone audio + webcam") in
|
case $(menu "Screenrecord" " With desktop audio\n With desktop + microphone audio\n With desktop + microphone audio + webcam") in
|
||||||
*"With desktop audio") omarchy-cmd-screenrecord --with-desktop-audio ;;
|
*"With desktop audio") omarchy-cmd-screenrecord --with-desktop-audio ;;
|
||||||
*"With desktop + microphone audio") omarchy-cmd-screenrecord --with-desktop-audio --with-microphone-audio ;;
|
*"With desktop + microphone audio") omarchy-cmd-screenrecord --with-desktop-audio --with-microphone-audio ;;
|
||||||
*"With desktop + microphone audio + webcam")
|
*"With desktop + microphone audio + webcam") omarchy-cmd-screenrecord --with-desktop-audio --with-microphone-audio --with-webcam ;;
|
||||||
local device=$(show_webcam_select_menu) || { back_to show_capture_menu; return; }
|
|
||||||
omarchy-cmd-screenrecord --with-desktop-audio --with-microphone-audio --with-webcam --webcam-device="$device"
|
|
||||||
;;
|
|
||||||
*) back_to show_capture_menu ;;
|
*) back_to show_capture_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -174,9 +144,9 @@ show_toggle_menu() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
show_hardware_menu() {
|
show_tweaks_menu() {
|
||||||
case $(menu "Toggle" " Hybrid GPU") in
|
case $(menu "Tweaks" " Toggle Hybrid GPU") in
|
||||||
*"Hybrid GPU"*) present_terminal omarchy-toggle-hybrid-gpu ;;
|
*"Toggle Hybrid GPU"*) present_terminal omarchy-toggle-hybrid-gpu ;;
|
||||||
*) show_trigger_menu ;;
|
*) show_trigger_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -355,9 +325,8 @@ show_install_ai_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_install_gaming_menu() {
|
show_install_gaming_menu() {
|
||||||
case $(menu "Install" " Steam\n NVIDIA GeForce NOW\n RetroArch [AUR]\n Minecraft\n Xbox Controller [AUR]") in
|
case $(menu "Install" " Steam\n RetroArch [AUR]\n Minecraft\n Xbox Controller [AUR]") in
|
||||||
*Steam*) present_terminal omarchy-install-steam ;;
|
*Steam*) present_terminal omarchy-install-steam ;;
|
||||||
*GeForce*) present_terminal omarchy-install-geforce-now ;;
|
|
||||||
*RetroArch*) aur_install_and_launch "RetroArch" "retroarch retroarch-assets libretro libretro-fbneo" "com.libretro.RetroArch.desktop" ;;
|
*RetroArch*) aur_install_and_launch "RetroArch" "retroarch retroarch-assets libretro libretro-fbneo" "com.libretro.RetroArch.desktop" ;;
|
||||||
*Minecraft*) install_and_launch "Minecraft" "minecraft-launcher" "minecraft-launcher" ;;
|
*Minecraft*) install_and_launch "Minecraft" "minecraft-launcher" "minecraft-launcher" ;;
|
||||||
*Xbox*) present_terminal omarchy-install-xbox-controllers ;;
|
*Xbox*) present_terminal omarchy-install-xbox-controllers ;;
|
||||||
@@ -446,7 +415,7 @@ show_remove_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_remove_development_menu() {
|
show_remove_development_menu() {
|
||||||
case $(menu "Remove" " Ruby on Rails\n JavaScript\n Go\n PHP\n Python\n Elixir\n Zig\n Rust\n Java\n .NET\n OCaml\n Clojure") in
|
case $(menu "Remove" " Ruby on Rails\n JavaScript\n Go\n PHP\n Python\n Elixir\n Zig\n Rust\n Java\n .NET\n OCaml\n Clojure") in
|
||||||
*Rails*) present_terminal "omarchy-remove-dev-env ruby" ;;
|
*Rails*) present_terminal "omarchy-remove-dev-env ruby" ;;
|
||||||
*JavaScript*) show_remove_javascript_menu ;;
|
*JavaScript*) show_remove_javascript_menu ;;
|
||||||
*Go*) present_terminal "omarchy-remove-dev-env go" ;;
|
*Go*) present_terminal "omarchy-remove-dev-env go" ;;
|
||||||
@@ -464,7 +433,7 @@ show_remove_development_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_remove_javascript_menu() {
|
show_remove_javascript_menu() {
|
||||||
case $(menu "Remove" " Node.js\n Bun\n Deno") in
|
case $(menu "Remove" " Node.js\n Bun\n Deno") in
|
||||||
*Node*) present_terminal "omarchy-remove-dev-env node" ;;
|
*Node*) present_terminal "omarchy-remove-dev-env node" ;;
|
||||||
*Bun*) present_terminal "omarchy-remove-dev-env bun" ;;
|
*Bun*) present_terminal "omarchy-remove-dev-env bun" ;;
|
||||||
*Deno*) present_terminal "omarchy-remove-dev-env deno" ;;
|
*Deno*) present_terminal "omarchy-remove-dev-env deno" ;;
|
||||||
@@ -473,7 +442,7 @@ show_remove_javascript_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_remove_php_menu() {
|
show_remove_php_menu() {
|
||||||
case $(menu "Remove" " PHP\n Laravel\n Symfony") in
|
case $(menu "Remove" " PHP\n Laravel\n Symfony") in
|
||||||
*PHP*) present_terminal "omarchy-remove-dev-env php" ;;
|
*PHP*) present_terminal "omarchy-remove-dev-env php" ;;
|
||||||
*Laravel*) present_terminal "omarchy-remove-dev-env laravel" ;;
|
*Laravel*) present_terminal "omarchy-remove-dev-env laravel" ;;
|
||||||
*Symfony*) present_terminal "omarchy-remove-dev-env symfony" ;;
|
*Symfony*) present_terminal "omarchy-remove-dev-env symfony" ;;
|
||||||
@@ -482,7 +451,7 @@ show_remove_php_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_remove_elixir_menu() {
|
show_remove_elixir_menu() {
|
||||||
case $(menu "Remove" " Elixir\n Phoenix") in
|
case $(menu "Remove" " Elixir\n Phoenix") in
|
||||||
*Elixir*) present_terminal "omarchy-remove-dev-env elixir" ;;
|
*Elixir*) present_terminal "omarchy-remove-dev-env elixir" ;;
|
||||||
*Phoenix*) present_terminal "omarchy-remove-dev-env phoenix" ;;
|
*Phoenix*) present_terminal "omarchy-remove-dev-env phoenix" ;;
|
||||||
*) show_remove_development_menu ;;
|
*) show_remove_development_menu ;;
|
||||||
@@ -506,9 +475,8 @@ show_update_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_update_channel_menu() {
|
show_update_channel_menu() {
|
||||||
case $(menu "Update channel" "🟢 Stable\n🟡 RC\n🟠 Edge\n🔴 Dev") in
|
case $(menu "Update channel" "🟢 Stable\n🟡 Edge\n🔴 Dev") in
|
||||||
*Stable*) present_terminal "omarchy-channel-set stable" ;;
|
*Stable*) present_terminal "omarchy-channel-set stable" ;;
|
||||||
*RC*) present_terminal "omarchy-channel-set rc" ;;
|
|
||||||
*Edge*) present_terminal "omarchy-channel-set edge" ;;
|
*Edge*) present_terminal "omarchy-channel-set edge" ;;
|
||||||
*Dev*) present_terminal "omarchy-channel-set dev" ;;
|
*Dev*) present_terminal "omarchy-channel-set dev" ;;
|
||||||
*) show_update_menu ;;
|
*) show_update_menu ;;
|
||||||
@@ -556,10 +524,6 @@ show_update_password_menu() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
show_about() {
|
|
||||||
omarchy-launch-about
|
|
||||||
}
|
|
||||||
|
|
||||||
show_system_menu() {
|
show_system_menu() {
|
||||||
local options=" Lock\n Screensaver"
|
local options=" Lock\n Screensaver"
|
||||||
[ -f ~/.local/state/omarchy/toggles/suspend-on ] && options="$options\n Suspend"
|
[ -f ~/.local/state/omarchy/toggles/suspend-on ] && options="$options\n Suspend"
|
||||||
@@ -597,7 +561,7 @@ go_to_menu() {
|
|||||||
*install*) show_install_menu ;;
|
*install*) show_install_menu ;;
|
||||||
*remove*) show_remove_menu ;;
|
*remove*) show_remove_menu ;;
|
||||||
*update*) show_update_menu ;;
|
*update*) show_update_menu ;;
|
||||||
*about*) show_about ;;
|
*about*) omarchy-launch-about ;;
|
||||||
*system*) show_system_menu ;;
|
*system*) show_system_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,18 +7,17 @@
|
|||||||
sudo cp -f /etc/pacman.conf /etc/pacman.conf.bak
|
sudo cp -f /etc/pacman.conf /etc/pacman.conf.bak
|
||||||
sudo cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
sudo cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||||
|
|
||||||
channel="${1:-stable}"
|
if [[ $1 == "edge" ]]; then
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman-edge.conf /etc/pacman.conf
|
||||||
if [[ "$channel" != "stable" && "$channel" != "rc" && "$channel" != "edge" ]]; then
|
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-edge /etc/pacman.d/mirrorlist
|
||||||
echo "Error: Invalid channel '$channel'. Must be one of: stable, rc, edge"
|
echo "Setting channel to edge"
|
||||||
exit 1
|
else
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman-stable.conf /etc/pacman.conf
|
||||||
|
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-stable /etc/pacman.d/mirrorlist
|
||||||
|
echo "Setting channel to stable"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting channel to $channel"
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
sudo cp -f "$OMARCHY_PATH/default/pacman/pacman-$channel.conf" /etc/pacman.conf
|
|
||||||
sudo cp -f "$OMARCHY_PATH/default/pacman/mirrorlist-$channel" /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
# Reset all package DBs and then update
|
# Reset all package DBs and then update
|
||||||
sudo pacman -Syyu --noconfirm
|
sudo pacman -Syyu --noconfirm
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo
|
echo
|
||||||
gum spin --spinner "globe" --title "Done! Press any key to close..." -- bash -c 'read -t 7 -n 1 -s'
|
gum spin --spinner "globe" --title "Done! Press any key to close..." -- bash -c 'read -n 1 -s'
|
||||||
|
|||||||
@@ -5,11 +5,8 @@
|
|||||||
|
|
||||||
percent="$1"
|
percent="$1"
|
||||||
|
|
||||||
progress="$(awk -v p="$percent" 'BEGIN{printf "%.2f", p/100}')"
|
|
||||||
[[ "$progress" == "0.00" ]] && progress="0.01"
|
|
||||||
|
|
||||||
swayosd-client \
|
swayosd-client \
|
||||||
--monitor "$(hyprctl monitors -j | jq -r '.[]|select(.focused==true).name')" \
|
--monitor "$(hyprctl monitors -j | jq -r '.[]|select(.focused==true).name')" \
|
||||||
--custom-icon display-brightness \
|
--custom-icon display-brightness \
|
||||||
--custom-progress "$progress" \
|
--custom-progress "$(awk -v p="$percent" 'BEGIN{printf "%.2f", p/100}')" \
|
||||||
--custom-progress-text "${percent}%"
|
--custom-progress-text "${percent}%"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
CHROMIUM_THEME=~/.config/omarchy/current/theme/chromium.theme
|
CHROMIUM_THEME=~/.config/omarchy/current/theme/chromium.theme
|
||||||
|
|
||||||
if omarchy-cmd-present chromium || omarchy-cmd-present brave; then
|
if omarchy-cmd-present chromium || omarchy-cmd-present helium-browser || omarchy-cmd-present brave; then
|
||||||
if [[ -f $CHROMIUM_THEME ]]; then
|
if [[ -f $CHROMIUM_THEME ]]; then
|
||||||
THEME_RGB_COLOR=$(<$CHROMIUM_THEME)
|
THEME_RGB_COLOR=$(<$CHROMIUM_THEME)
|
||||||
THEME_HEX_COLOR=$(printf '#%02x%02x%02x' ${THEME_RGB_COLOR//,/ })
|
THEME_HEX_COLOR=$(printf '#%02x%02x%02x' ${THEME_RGB_COLOR//,/ })
|
||||||
@@ -13,8 +13,14 @@ if omarchy-cmd-present chromium || omarchy-cmd-present brave; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if omarchy-cmd-present chromium; then
|
if omarchy-cmd-present chromium; then
|
||||||
echo "{\"BrowserThemeColor\": \"$THEME_HEX_COLOR\"}" | tee "/etc/chromium/policies/managed/color.json" >/dev/null
|
rm -f /etc/chromium/policies/managed/color.json
|
||||||
chromium --refresh-platform-policy --no-startup-window >/dev/null
|
chromium --no-startup-window --set-theme-color="$THEME_RGB_COLOR" >/dev/null
|
||||||
|
|
||||||
|
if [[ -f ~/.config/omarchy/current/theme/light.mode ]]; then
|
||||||
|
chromium --no-startup-window --set-color-scheme="light" >/dev/null
|
||||||
|
else
|
||||||
|
chromium --no-startup-window --set-color-scheme="dark" >/dev/null
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if omarchy-cmd-present brave; then
|
if omarchy-cmd-present brave; then
|
||||||
|
|||||||
18
bin/omarchy-toggle-audio-soft-mixer
Executable file
18
bin/omarchy-toggle-audio-soft-mixer
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Fix volume controls for laptops with problematic Realtek codecs (like Asus G14)
|
||||||
|
|
||||||
|
if [[ ! -f ~/.config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf ]]; then
|
||||||
|
mkdir -p ~/.config/wireplumber/wireplumber.conf.d/
|
||||||
|
cp $OMARCHY_PATH/default/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf ~/.config/wireplumber/wireplumber.conf.d/
|
||||||
|
rm -rf ~/.local/state/wireplumber/default-routes
|
||||||
|
|
||||||
|
notify-send "Enabled audio soft mixing"
|
||||||
|
else
|
||||||
|
rm -rf ~/.config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf
|
||||||
|
rm -rf ~/.local/state/wireplumber/default-routes
|
||||||
|
|
||||||
|
notify-send "Disabled audio soft mixing"
|
||||||
|
fi
|
||||||
|
|
||||||
|
systemctl --user restart wireplumber
|
||||||
@@ -5,8 +5,10 @@
|
|||||||
|
|
||||||
# Ensure supergfxctl has been installed
|
# Ensure supergfxctl has been installed
|
||||||
if omarchy-cmd-missing supergfxctl; then
|
if omarchy-cmd-missing supergfxctl; then
|
||||||
omarchy-pkg-add supergfxctl
|
# FIXME: Convert this to OPR instead of AUR
|
||||||
|
omarchy-pkg-aur-add supergfxctl
|
||||||
sudo systemctl enable supergfxd
|
sudo systemctl enable supergfxd
|
||||||
|
sudo systemctl start supergfxd
|
||||||
|
|
||||||
# Needed to deal with restoring to sleep where going through VFIO first means we don't need to reboot.
|
# Needed to deal with restoring to sleep where going through VFIO first means we don't need to reboot.
|
||||||
sudo sed -i "s/\"vfio_enable\": \".*\"/\"vfio_enable\": true/" /etc/supergfxd.conf
|
sudo sed -i "s/\"vfio_enable\": \".*\"/\"vfio_enable\": true/" /etc/supergfxd.conf
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
if grep -q "https://stable-mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
if grep -q "https://stable-mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
||||||
mirror="stable"
|
mirror="stable"
|
||||||
elif grep -q "https://rc-mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
|
||||||
mirror="rc"
|
|
||||||
elif grep -q "https://mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
elif grep -q "https://mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
||||||
mirror="edge"
|
mirror="edge"
|
||||||
else
|
else
|
||||||
@@ -14,8 +12,6 @@ if grep -q "https://pkgs.omarchy.org/stable/" /etc/pacman.conf; then
|
|||||||
pkgs="stable"
|
pkgs="stable"
|
||||||
elif grep -q "https://pkgs.omarchy.org/edge/" /etc/pacman.conf; then
|
elif grep -q "https://pkgs.omarchy.org/edge/" /etc/pacman.conf; then
|
||||||
pkgs="edge"
|
pkgs="edge"
|
||||||
elif grep -q "https://pkgs.omarchy.org/rc/" /etc/pacman.conf; then
|
|
||||||
pkgs="rc"
|
|
||||||
else
|
else
|
||||||
pkgs="unknown"
|
pkgs="unknown"
|
||||||
fi
|
fi
|
||||||
|
|||||||
2
boot.sh
2
boot.sh
@@ -28,10 +28,12 @@ git clone "https://github.com/${OMARCHY_REPO}.git" ~/.local/share/omarchy >/dev/
|
|||||||
|
|
||||||
# Use custom branch if instructed, otherwise default to master
|
# Use custom branch if instructed, otherwise default to master
|
||||||
OMARCHY_REF="${OMARCHY_REF:-master}"
|
OMARCHY_REF="${OMARCHY_REF:-master}"
|
||||||
|
if [[ $OMARCHY_REF != "master" ]]; then
|
||||||
echo -e "\e[32mUsing branch: $OMARCHY_REF\e[0m"
|
echo -e "\e[32mUsing branch: $OMARCHY_REF\e[0m"
|
||||||
cd ~/.local/share/omarchy
|
cd ~/.local/share/omarchy
|
||||||
git fetch origin "${OMARCHY_REF}" && git checkout "${OMARCHY_REF}"
|
git fetch origin "${OMARCHY_REF}" && git checkout "${OMARCHY_REF}"
|
||||||
cd -
|
cd -
|
||||||
|
fi
|
||||||
|
|
||||||
# Set edge mirror for dev installs
|
# Set edge mirror for dev installs
|
||||||
if [[ $OMARCHY_REF == "dev" ]]; then
|
if [[ $OMARCHY_REF == "dev" ]]; then
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
command = 'wl-copy && hyprctl dispatch sendshortcut "SHIFT, Insert,"'
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
# Application bindings
|
# Application bindings
|
||||||
bindd = SUPER, RETURN, Terminal, exec, uwsm-app -- xdg-terminal-exec --dir="$(omarchy-cmd-terminal-cwd)"
|
bindd = SUPER, RETURN, Terminal, exec, uwsm-app -- xdg-terminal-exec --dir="$(omarchy-cmd-terminal-cwd)"
|
||||||
bindd = SUPER SHIFT, F, File manager, exec, uwsm-app -- nautilus --new-window
|
bindd = SUPER SHIFT, F, File manager, exec, uwsm-app -- nautilus --new-window
|
||||||
bindd = SUPER ALT SHIFT, F, File manager (cwd), exec, uwsm-app -- nautilus --new-window "$(omarchy-cmd-terminal-cwd)"
|
|
||||||
bindd = SUPER SHIFT, B, Browser, exec, omarchy-launch-browser
|
bindd = SUPER SHIFT, B, Browser, exec, omarchy-launch-browser
|
||||||
bindd = SUPER SHIFT ALT, B, Browser (private), exec, omarchy-launch-browser --private
|
bindd = SUPER SHIFT ALT, B, Browser (private), exec, omarchy-launch-browser --private
|
||||||
bindd = SUPER SHIFT, M, Music, exec, omarchy-launch-or-focus spotify
|
bindd = SUPER SHIFT, M, Music, exec, omarchy-launch-or-focus spotify
|
||||||
|
|||||||
@@ -3,10 +3,6 @@
|
|||||||
input {
|
input {
|
||||||
# Use multiple keyboard layouts and switch between them with Left Alt + Right Alt
|
# Use multiple keyboard layouts and switch between them with Left Alt + Right Alt
|
||||||
# kb_layout = us,dk,eu
|
# kb_layout = us,dk,eu
|
||||||
|
|
||||||
# Use a specific keyboard variant if needed (e.g. intl for international keyboards)
|
|
||||||
# kb_variant = intl
|
|
||||||
|
|
||||||
kb_options = compose:caps # ,grp:alts_toggle
|
kb_options = compose:caps # ,grp:alts_toggle
|
||||||
|
|
||||||
# Change speed of keyboard repeat
|
# Change speed of keyboard repeat
|
||||||
|
|||||||
@@ -12,9 +12,3 @@
|
|||||||
# *) back_to show_main_menu ;;
|
# *) back_to show_main_menu ;;
|
||||||
# esac
|
# esac
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
# Example of overriding just the about menu action: (Using zsh instead of bash (default))
|
|
||||||
#
|
|
||||||
# show_about() {
|
|
||||||
# exec omarchy-launch-or-focus-tui "zsh -c 'fastfetch; read -k 1'"
|
|
||||||
# }
|
|
||||||
|
|||||||
@@ -21,9 +21,9 @@ if command -v zoxide &> /dev/null; then
|
|||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
open() (
|
open() {
|
||||||
xdg-open "$@" >/dev/null 2>&1 &
|
xdg-open "$@" >/dev/null 2>&1 &
|
||||||
)
|
}
|
||||||
|
|
||||||
# Directories
|
# Directories
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
|
|||||||
@@ -9,9 +9,7 @@ source = ~/.local/share/omarchy/default/hypr/apps/pip.conf
|
|||||||
source = ~/.local/share/omarchy/default/hypr/apps/qemu.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/qemu.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/retroarch.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/retroarch.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/steam.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/steam.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/geforce.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/system.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/system.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/telegram.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/terminals.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/terminals.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/walker.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/walker.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/webcam-overlay.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/webcam-overlay.conf
|
||||||
|
|||||||
@@ -1,6 +1,2 @@
|
|||||||
windowrule = no_screen_share on, match:class ^(Bitwarden)$
|
windowrule = no_screen_share on, match:class ^(Bitwarden)$
|
||||||
windowrule = tag +floating-window, match:class ^(Bitwarden)$
|
windowrule = tag +floating-window, match:class ^(Bitwarden)$
|
||||||
|
|
||||||
# Bitwarden Chrome Extension
|
|
||||||
windowrule = no_screen_share on, match:class chrome-nngceckbapebfimnlniiiahkandclblb-Default
|
|
||||||
windowrule = tag +floating-window, match:class chrome-nngceckbapebfimnlniiiahkandclblb-Default
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
windowrule {
|
|
||||||
name = geforce
|
|
||||||
match:class = GeForceNOW
|
|
||||||
idle_inhibit = fullscreen
|
|
||||||
}
|
|
||||||
@@ -1,41 +1,22 @@
|
|||||||
# Fix splash screen showing in weird places and prevent annoying focus takeovers
|
# Fix splash screen showing in weird places and prevent annoying focus takeovers
|
||||||
windowrule {
|
windowrule = tag +jetbrains-splash, match:class ^(jetbrains-.*)$, match:title ^(splash)$, match:float 1
|
||||||
name = jetbrains-splash
|
windowrule = center on, match:tag jetbrains-splash
|
||||||
match:class = ^(jetbrains-.*)$
|
windowrule = no_focus on, match:tag jetbrains-splash
|
||||||
match:title = ^(splash)$
|
windowrule = border_size 0, match:tag jetbrains-splash
|
||||||
match:float = 1
|
|
||||||
tag = +jetbrains-splash
|
|
||||||
center = on
|
|
||||||
no_focus = on
|
|
||||||
border_size = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
# Center popups/find windows
|
# Center popups/find windows
|
||||||
windowrule {
|
windowrule = tag +jetbrains, match:class ^(jetbrains-.*), match:title ^()$, match:float 1
|
||||||
name = jetbrains-popup
|
windowrule = center on, match:tag jetbrains
|
||||||
match:class = ^(jetbrains-.*)
|
|
||||||
match:title = ^()$
|
|
||||||
match:float = 1
|
|
||||||
tag = +jetbrains
|
|
||||||
center = on
|
|
||||||
# Enabling this makes it possible to provide input in popup dialogs (search window, new file, etc.)
|
# Enabling this makes it possible to provide input in popup dialogs (search window, new file, etc.)
|
||||||
stay_focused = on
|
windowrule = stay_focused on, match:tag jetbrains
|
||||||
border_size = 0
|
windowrule = border_size 0, match:tag jetbrains
|
||||||
min_size = (monitor_w*0.5) (monitor_h*0.5)
|
|
||||||
}
|
# For some reason tag:jetbrains does not work for size rule
|
||||||
|
windowrule = min_size (monitor_w*0.5) (monitor_h*0.5), match:class ^(jetbrains-.*), match:title ^()$, match:float 1
|
||||||
|
|
||||||
# Disable window flicker when autocomplete or tooltips appear
|
# Disable window flicker when autocomplete or tooltips appear
|
||||||
windowrule {
|
windowrule = no_initial_focus on, match:class ^(jetbrains-.*)$, match:title ^(win.*)$, match:float 1
|
||||||
name = jetbrains-tooltip
|
|
||||||
match:class = ^(jetbrains-.*)$
|
|
||||||
match:title = ^(win.*)$
|
|
||||||
match:float = 1
|
|
||||||
no_initial_focus = on
|
|
||||||
}
|
|
||||||
|
|
||||||
# Disable mouse focus
|
# Disable mouse focus
|
||||||
windowrule {
|
windowrule = no_follow_mouse on, match:class ^(jetbrains-.*)$
|
||||||
name = jetbrains-focus
|
|
||||||
no_follow_mouse = on
|
|
||||||
match:class = ^(jetbrains-.*)$
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Float Steam
|
# Float Steam
|
||||||
windowrule = float on, match:class steam
|
windowrule = float on, match:class steam
|
||||||
windowrule = center on, match:class steam, match:title Steam
|
windowrule = center on, match:class steam, match:title Steam
|
||||||
windowrule = opacity 1 1, match:class steam.*
|
windowrule = opacity 1 1, match:class steam
|
||||||
windowrule = size 1100 700, match:class steam, match:title Steam
|
windowrule = size 1100 700, match:class steam, match:title Steam
|
||||||
windowrule = size 460 800, match:class steam, match:title Friends List
|
windowrule = size 460 800, match:class steam, match:title Friends List
|
||||||
windowrule = idle_inhibit fullscreen, match:class steam
|
windowrule = idle_inhibit fullscreen, match:class steam
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
# Prevent Telegram from stealing focus on new messages
|
|
||||||
windowrule = focus_on_activate off, match:class org.telegram.desktop
|
|
||||||
@@ -6,16 +6,14 @@ bindeld = ,XF86AudioRaiseVolume, Volume up, exec, $osdclient --output-volume rai
|
|||||||
bindeld = ,XF86AudioLowerVolume, Volume down, exec, $osdclient --output-volume lower
|
bindeld = ,XF86AudioLowerVolume, Volume down, exec, $osdclient --output-volume lower
|
||||||
bindeld = ,XF86AudioMute, Mute, exec, $osdclient --output-volume mute-toggle
|
bindeld = ,XF86AudioMute, Mute, exec, $osdclient --output-volume mute-toggle
|
||||||
bindeld = ,XF86AudioMicMute, Mute microphone, exec, $osdclient --input-volume mute-toggle
|
bindeld = ,XF86AudioMicMute, Mute microphone, exec, $osdclient --input-volume mute-toggle
|
||||||
bindeld = ,XF86MonBrightnessUp, Brightness up, exec, omarchy-brightness-display +5%
|
bindeld = ,XF86MonBrightnessUp, Brightness up, exec, omarchy-cmd-brightness +5%
|
||||||
bindeld = ,XF86MonBrightnessDown, Brightness down, exec, omarchy-brightness-display 5%-
|
bindeld = ,XF86MonBrightnessDown, Brightness down, exec, omarchy-cmd-brightness 5%-
|
||||||
bindeld = ,XF86KbdBrightnessUp, Keyboard brightness up, exec, omarchy-brightness-keyboard up
|
|
||||||
bindeld = ,XF86KbdBrightnessDown, Keyboard brightness down, exec, omarchy-brightness-keyboard down
|
|
||||||
|
|
||||||
# Precise 1% multimedia adjustments with Alt modifier
|
# Precise 1% multimedia adjustments with Alt modifier
|
||||||
bindeld = ALT, XF86AudioRaiseVolume, Volume up precise, exec, $osdclient --output-volume +1
|
bindeld = ALT, XF86AudioRaiseVolume, Volume up precise, exec, $osdclient --output-volume +1
|
||||||
bindeld = ALT, XF86AudioLowerVolume, Volume down precise, exec, $osdclient --output-volume -1
|
bindeld = ALT, XF86AudioLowerVolume, Volume down precise, exec, $osdclient --output-volume -1
|
||||||
bindeld = ALT, XF86MonBrightnessUp, Brightness up precise, exec, omarchy-brightness-display +1%
|
bindeld = ALT, XF86MonBrightnessUp, Brightness up precise, exec, omarchy-cmd-brightness +1%
|
||||||
bindeld = ALT, XF86MonBrightnessDown, Brightness down precise, exec, omarchy-brightness-display 1%-
|
bindeld = ALT, XF86MonBrightnessDown, Brightness down precise, exec, omarchy-cmd-brightness 1%-
|
||||||
|
|
||||||
# Requires playerctl
|
# Requires playerctl
|
||||||
bindld = , XF86AudioNext, Next track, exec, $osdclient --playerctl next
|
bindld = , XF86AudioNext, Next track, exec, $osdclient --playerctl next
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ bindd = SUPER CTRL, I, Toggle locking on idle, exec, omarchy-toggle-idle
|
|||||||
bindd = SUPER CTRL, N, Toggle nightlight, exec, omarchy-toggle-nightlight
|
bindd = SUPER CTRL, N, Toggle nightlight, exec, omarchy-toggle-nightlight
|
||||||
|
|
||||||
# Control Apple Display brightness
|
# Control Apple Display brightness
|
||||||
bindd = CTRL, F1, Apple Display brightness down, exec, omarchy-brightness-display-apple -5000
|
bindd = CTRL, F1, Apple Display brightness down, exec, omarchy-cmd-apple-display-brightness -5000
|
||||||
bindd = CTRL, F2, Apple Display brightness up, exec, omarchy-brightness-display-apple +5000
|
bindd = CTRL, F2, Apple Display brightness up, exec, omarchy-cmd-apple-display-brightness +5000
|
||||||
bindd = SHIFT CTRL, F2, Apple Display full brightness, exec, omarchy-brightness-display-apple +60000
|
bindd = SHIFT CTRL, F2, Apple Display full brightness, exec, omarchy-cmd-apple-display-brightness +60000
|
||||||
|
|
||||||
# Captures
|
# Captures
|
||||||
bindd = , PRINT, Screenshot with editing, exec, omarchy-cmd-screenshot
|
bindd = , PRINT, Screenshot with editing, exec, omarchy-cmd-screenshot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ env = HYPRCURSOR_SIZE,24
|
|||||||
env = GDK_BACKEND,wayland,x11,*
|
env = GDK_BACKEND,wayland,x11,*
|
||||||
env = QT_QPA_PLATFORM,wayland;xcb
|
env = QT_QPA_PLATFORM,wayland;xcb
|
||||||
env = QT_STYLE_OVERRIDE,kvantum
|
env = QT_STYLE_OVERRIDE,kvantum
|
||||||
env = SDL_VIDEODRIVER,wayland,x11
|
env = SDL_VIDEODRIVER,wayland
|
||||||
env = MOZ_ENABLE_WAYLAND,1
|
env = MOZ_ENABLE_WAYLAND,1
|
||||||
env = ELECTRON_OZONE_PLATFORM_HINT,wayland
|
env = ELECTRON_OZONE_PLATFORM_HINT,wayland
|
||||||
env = OZONE_PLATFORM,wayland
|
env = OZONE_PLATFORM,wayland
|
||||||
|
|||||||
@@ -131,11 +131,6 @@ cursor {
|
|||||||
hide_on_key_press = true
|
hide_on_key_press = true
|
||||||
}
|
}
|
||||||
|
|
||||||
# Auto toggle scratchpad on switching workspace from scratchpad
|
|
||||||
binds {
|
|
||||||
hide_special_on_workspace_change = true
|
|
||||||
}
|
|
||||||
|
|
||||||
# Style Gum confirm to match terminal theme
|
# Style Gum confirm to match terminal theme
|
||||||
env = GUM_CONFIRM_PROMPT_FOREGROUND,6 # Cyan
|
env = GUM_CONFIRM_PROMPT_FOREGROUND,6 # Cyan
|
||||||
env = GUM_CONFIRM_SELECTED_FOREGROUND,0 # Black
|
env = GUM_CONFIRM_SELECTED_FOREGROUND,0 # Black
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
Server = https://rc-mirror.omarchy.org/$repo/os/$arch
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# See the pacman.conf(5) manpage for option and repository directives
|
|
||||||
|
|
||||||
[options]
|
|
||||||
Color
|
|
||||||
ILoveCandy
|
|
||||||
VerbosePkgLists
|
|
||||||
HoldPkg = pacman glibc
|
|
||||||
Architecture = auto
|
|
||||||
CheckSpace
|
|
||||||
ParallelDownloads = 5
|
|
||||||
DownloadUser = alpm
|
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
|
||||||
SigLevel = Required DatabaseOptional
|
|
||||||
LocalFileSigLevel = Optional
|
|
||||||
|
|
||||||
# pacman searches repositories in the order defined here
|
|
||||||
[core]
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
[extra]
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
[multilib]
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
[omarchy]
|
|
||||||
SigLevel = Optional TrustAll
|
|
||||||
Server = https://pkgs.omarchy.org/edge/$arch
|
|
||||||
@@ -19,7 +19,6 @@ 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/input-group.sh
|
run_logged $OMARCHY_INSTALL/config/input-group.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/omarchy-ai-skill.sh
|
run_logged $OMARCHY_INSTALL/config/omarchy-ai-skill.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/powerprofilesctl-rules.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
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-fkeys.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-fkeys.sh
|
||||||
@@ -35,5 +34,3 @@ run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-spi-keyboard.sh
|
|||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-suspend-nvme.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-suspend-nvme.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-t2.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-t2.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-surface-keyboard.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-surface-keyboard.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-asus-rog-audio-mixer.sh
|
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-asus-rog-mic.sh
|
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
# Fix audio volume on Asus ROG laptops by using a soft mixer.
|
|
||||||
|
|
||||||
if [[ "$(cat /sys/class/dmi/id/sys_vendor 2>/dev/null)" == "ASUSTeK COMPUTER INC." ]] &&
|
|
||||||
grep -q "ROG" /sys/class/dmi/id/product_family 2>/dev/null; then
|
|
||||||
|
|
||||||
mkdir -p ~/.config/wireplumber/wireplumber.conf.d/
|
|
||||||
cp $OMARCHY_PATH/default/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf ~/.config/wireplumber/wireplumber.conf.d/
|
|
||||||
rm -rf ~/.local/state/wireplumber/default-routes
|
|
||||||
|
|
||||||
# Unmute the Master control on the ALC285 card (often muted by default)
|
|
||||||
card=$(aplay -l 2>/dev/null | grep -i "ALC285" | head -1 | sed 's/card \([0-9]*\).*/\1/')
|
|
||||||
if [[ -n "$card" ]]; then
|
|
||||||
amixer -c "$card" set Master 80% unmute 2>/dev/null
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
# Fix internal mic gain on ASUS ROG laptops with Realtek ALC285.
|
|
||||||
# The mic boost is way too high by default, causing clipping.
|
|
||||||
# Sets levels and stores ALSA state so it persists across reboots.
|
|
||||||
|
|
||||||
if [[ "$(cat /sys/class/dmi/id/sys_vendor 2>/dev/null)" == "ASUSTeK COMPUTER INC." ]] &&
|
|
||||||
grep -q "ROG" /sys/class/dmi/id/product_family 2>/dev/null; then
|
|
||||||
|
|
||||||
for card in /proc/asound/card*/codec*; do
|
|
||||||
if grep -q "ALC285" "$card" 2>/dev/null; then
|
|
||||||
cardnum=$(echo "$card" | grep -oP 'card\K\d+')
|
|
||||||
amixer -c "$cardnum" set 'Internal Mic Boost' 0 >/dev/null 2>&1 || true
|
|
||||||
amixer -c "$cardnum" set 'Capture' 70% >/dev/null 2>&1 || true
|
|
||||||
sudo alsactl store "$cardnum" 2>/dev/null || true
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
@@ -7,8 +7,8 @@ if [ -n "$NVIDIA" ]; then
|
|||||||
if echo "$NVIDIA" | grep -qE "RTX [2-9][0-9]|GTX 16"; then
|
if echo "$NVIDIA" | grep -qE "RTX [2-9][0-9]|GTX 16"; then
|
||||||
# Turing (16xx, 20xx), Ampere (30xx), Ada (40xx), and newer recommend the open-source kernel modules
|
# Turing (16xx, 20xx), Ampere (30xx), Ada (40xx), and newer recommend the open-source kernel modules
|
||||||
PACKAGES=(nvidia-open-dkms nvidia-utils lib32-nvidia-utils libva-nvidia-driver)
|
PACKAGES=(nvidia-open-dkms nvidia-utils lib32-nvidia-utils libva-nvidia-driver)
|
||||||
elif echo "$NVIDIA" | grep -qE "GTX 9|GTX 10|Quadro P|MX1|MX2|MX3"; then
|
elif echo "$NVIDIA" | grep -qE "GTX 9|GTX 10|Quadro P"; then
|
||||||
# Pascal (10xx, Quadro Pxxx, MX150, MX2xx, and MX3xx) and Maxwell (9xx, MX110, and MX130) use legacy branch that can only be installed from AUR
|
# Pascal (10xx or Quadro Pxxx) and Maxwell (9xx) use legacy branch that can only be installed from AUR
|
||||||
PACKAGES=(nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils)
|
PACKAGES=(nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils)
|
||||||
fi
|
fi
|
||||||
# Bail if no supported GPU
|
# Bail if no supported GPU
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
omarchy-refresh-applications
|
omarchy-refresh-applications
|
||||||
update-desktop-database ~/.local/share/applications
|
update-desktop-database ~/.local/share/applications
|
||||||
|
|
||||||
# Open directories in file manager
|
|
||||||
xdg-mime default org.gnome.Nautilus.desktop inode/directory
|
|
||||||
|
|
||||||
# Open all images with imv
|
# Open all images with imv
|
||||||
xdg-mime default imv.desktop image/png
|
xdg-mime default imv.desktop image/png
|
||||||
xdg-mime default imv.desktop image/jpeg
|
xdg-mime default imv.desktop image/jpeg
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
if omarchy-battery-present; then
|
|
||||||
mapfile -t profiles < <(omarchy-powerprofiles-list)
|
|
||||||
|
|
||||||
if [[ ${#profiles[@]} -gt 0 ]]; then
|
|
||||||
|
|
||||||
# Default AC profile:
|
|
||||||
# 3 profiles → performance
|
|
||||||
# 2 profiles → balanced
|
|
||||||
# 1 profile → profiles[0]
|
|
||||||
ac_profile="${profiles[2]:-${profiles[1]:-${profiles[0]}}}"
|
|
||||||
|
|
||||||
# Default Battery profile:
|
|
||||||
# 3 profiles → balanced
|
|
||||||
# 2 profiles → balanced
|
|
||||||
# 1 profile → profiles[0]
|
|
||||||
battery_profile="${profiles[1]:-${profiles[0]}}"
|
|
||||||
|
|
||||||
cat <<EOF | sudo tee "/etc/udev/rules.d/99-power-profile.rules"
|
|
||||||
SUBSYSTEM=="power_supply", ATTR{type}=="Mains", ATTR{online}=="0", RUN+="/usr/bin/powerprofilesctl set $battery_profile"
|
|
||||||
SUBSYSTEM=="power_supply", ATTR{type}=="Mains", ATTR{online}=="1", RUN+="/usr/bin/powerprofilesctl set $ac_profile"
|
|
||||||
EOF
|
|
||||||
|
|
||||||
sudo udevadm control --reload
|
|
||||||
sudo udevadm trigger --subsystem-match=power_supply
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
if omarchy-battery-present; then
|
if ls /sys/class/power_supply/BAT* &>/dev/null; then
|
||||||
|
# This computer runs on a battery
|
||||||
powerprofilesctl set balanced || true
|
powerprofilesctl set balanced || true
|
||||||
|
|
||||||
# Enable battery monitoring timer for low battery notifications
|
# Enable battery monitoring timer for low battery notifications
|
||||||
systemctl --user enable --now omarchy-battery-monitor.timer
|
systemctl --user enable --now omarchy-battery-monitor.timer
|
||||||
else
|
else
|
||||||
|
# This computer runs on power outlet
|
||||||
powerprofilesctl set performance || true
|
powerprofilesctl set performance || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
1password-cli
|
1password-cli
|
||||||
aether
|
aether
|
||||||
alacritty
|
alacritty
|
||||||
alsa-utils
|
|
||||||
asdcontrol
|
asdcontrol
|
||||||
avahi
|
avahi
|
||||||
bash-completion
|
bash-completion
|
||||||
@@ -14,7 +13,6 @@ bluetui
|
|||||||
bolt
|
bolt
|
||||||
brightnessctl
|
brightnessctl
|
||||||
btop
|
btop
|
||||||
chromium
|
|
||||||
clang
|
clang
|
||||||
cups
|
cups
|
||||||
cups-browsed
|
cups-browsed
|
||||||
@@ -80,7 +78,6 @@ mariadb-libs
|
|||||||
mise
|
mise
|
||||||
mpv
|
mpv
|
||||||
nautilus
|
nautilus
|
||||||
nautilus-python
|
|
||||||
gnome-disk-utility
|
gnome-disk-utility
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
@@ -90,6 +87,7 @@ nss-mdns
|
|||||||
nvim
|
nvim
|
||||||
obs-studio
|
obs-studio
|
||||||
obsidian
|
obsidian
|
||||||
|
omarchy-chromium
|
||||||
omarchy-nvim
|
omarchy-nvim
|
||||||
omarchy-walker
|
omarchy-walker
|
||||||
opencode
|
opencode
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
echo "Migrate legacy mobile NVIDIA GPUs to nvidia-580xx driver (if needed)"
|
|
||||||
|
|
||||||
# Only migrate MX1xx, 2xx or 3xx (Pascal/Maxwell)
|
|
||||||
NVIDIA="$(lspci | grep -i 'nvidia')"
|
|
||||||
if echo "$NVIDIA" | grep -qE "MX1|MX2|MX3"; then
|
|
||||||
if ! pacman -Qq | grep -qE '^linux(-[a-z0-9]+)?-headers$'; then
|
|
||||||
echo "Error: no linux headers package installed (required for DKMS drivers). Please install the appropriate headers and re-run this migration."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Piping yes to override existing packages
|
|
||||||
yes | sudo pacman -S nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils
|
|
||||||
|
|
||||||
# Verify packages were installed
|
|
||||||
if ! pacman -Qq nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils &>/dev/null; then
|
|
||||||
echo "Error: NVIDIA 580xx driver packages failed to install"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
echo "Fix microphone gain and audio mixing on Asus ROG laptops"
|
|
||||||
|
|
||||||
source "$OMARCHY_PATH/install/config/hardware/fix-asus-rog-mic.sh"
|
|
||||||
source "$OMARCHY_PATH/install/config/hardware/fix-asus-rog-audio-mixer.sh"
|
|
||||||
|
|
||||||
if [[ "$(cat /sys/class/dmi/id/sys_vendor 2>/dev/null)" == "ASUSTeK COMPUTER INC." ]] &&
|
|
||||||
grep -q "ROG" /sys/class/dmi/id/product_family 2>/dev/null; then
|
|
||||||
omarchy-restart-pipewire
|
|
||||||
fi
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
echo "Enable auto-pasting for the emoji picker"
|
|
||||||
|
|
||||||
omarchy-refresh-config elephant/symbols.toml
|
|
||||||
omarchy-restart-walker
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
echo "Add nautilus-python package for 'Open in Ghostty' shortcut in Nautilus"
|
|
||||||
|
|
||||||
omarchy-pkg-add nautilus-python
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
echo "Switch back to mainline chromium now that it supports full live themeing"
|
|
||||||
|
|
||||||
omarchy-pkg-drop omarchy-chromium
|
|
||||||
omarchy-pkg-add chromium
|
|
||||||
omarchy-theme-set-browser
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
echo "Add SUPER+ALT+SHIFT+F shortcut to open nautilus in cwd"
|
|
||||||
|
|
||||||
# Add the new CWD binding if it doesn't exist
|
|
||||||
if ! grep -q "SUPER ALT SHIFT, F" ~/.config/hypr/bindings.conf; then
|
|
||||||
sed -i '/bindd = SUPER SHIFT, F, File manager, exec, uwsm-app -- nautilus --new-window/a bindd = SUPER ALT SHIFT, F, File manager (cwd), exec, uwsm-app -- nautilus --new-window "$(omarchy-cmd-terminal-cwd)"' ~/.config/hypr/bindings.conf
|
|
||||||
fi
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
echo "Set power profile based on source switching (AC or Battery)"
|
|
||||||
|
|
||||||
source $OMARCHY_PATH/install/config/powerprofilesctl-rules.sh
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
echo "Open directories in file manager using the shell open command"
|
|
||||||
|
|
||||||
xdg-mime default org.gnome.Nautilus.desktop inode/directory
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 653 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 983 KiB |
@@ -1,70 +0,0 @@
|
|||||||
# Main background, empty for terminal default, need to be empty if you want transparent background
|
|
||||||
theme[main_bg]="#222222"
|
|
||||||
|
|
||||||
# Main text color
|
|
||||||
theme[main_fg]="#c2c2b0"
|
|
||||||
|
|
||||||
# Title color for boxes
|
|
||||||
theme[title]="#bb7744"
|
|
||||||
|
|
||||||
# Highlight color for keyboard shortcuts
|
|
||||||
theme[hi_fg]="#c9a554"
|
|
||||||
|
|
||||||
# Background color of selected item in processes box
|
|
||||||
theme[selected_bg]="#e4c47a"
|
|
||||||
|
|
||||||
# Foreground color of selected item in processes box
|
|
||||||
theme[selected_fg]="#000000"
|
|
||||||
|
|
||||||
# Color of inactive/disabled text
|
|
||||||
theme[inactive_fg]="#666666"
|
|
||||||
|
|
||||||
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
|
||||||
theme[proc_misc]="#bb7744"
|
|
||||||
|
|
||||||
# Box outline and divider line color
|
|
||||||
theme[cpu_box]="#5f875f"
|
|
||||||
theme[mem_box]="#5f875f"
|
|
||||||
theme[net_box]="#5f875f"
|
|
||||||
theme[proc_box]="#5f875f"
|
|
||||||
theme[div_line]="#666666"
|
|
||||||
|
|
||||||
# Gradient for all meters and graphs
|
|
||||||
theme[temp_start]="#c9a554"
|
|
||||||
theme[temp_mid]="#78824b"
|
|
||||||
theme[temp_end]="#5f875f"
|
|
||||||
|
|
||||||
|
|
||||||
theme[cpu_start]="#c9a554"
|
|
||||||
theme[cpu_mid]="#78824b"
|
|
||||||
theme[cpu_end]="#5f875f"
|
|
||||||
|
|
||||||
|
|
||||||
theme[free_start]="#78824b"
|
|
||||||
theme[free_mid]="#b36d43"
|
|
||||||
theme[free_end]="#b36d43"
|
|
||||||
|
|
||||||
|
|
||||||
theme[cached_start]="#b36d43"
|
|
||||||
theme[cached_mid]="#b36d43"
|
|
||||||
theme[cached_end]="#b36d43"
|
|
||||||
|
|
||||||
|
|
||||||
theme[available_start]="#c9a554"
|
|
||||||
theme[available_mid]="#c9a554"
|
|
||||||
theme[available_end]="#c9a554"
|
|
||||||
|
|
||||||
|
|
||||||
theme[used_start]="#5f875f"
|
|
||||||
theme[used_mid]="#5f875f"
|
|
||||||
theme[used_end]="#5f875f"
|
|
||||||
|
|
||||||
|
|
||||||
theme[download_start]="#b36d43"
|
|
||||||
theme[download_mid]="#c9a554"
|
|
||||||
theme[download_end]="#78824b"
|
|
||||||
|
|
||||||
|
|
||||||
theme[upload_start]="#b36d43"
|
|
||||||
theme[upload_mid]="#c9a554"
|
|
||||||
theme[upload_end]="#78824b"
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
accent = "#78824b"
|
|
||||||
cursor = "#c7c7c7"
|
|
||||||
foreground = "#c2c2b0"
|
|
||||||
background = "#222222"
|
|
||||||
selection_foreground = "#c2c2b0"
|
|
||||||
selection_background = "#78824b"
|
|
||||||
|
|
||||||
color0 = "#000000"
|
|
||||||
color1 = "#685742"
|
|
||||||
color2 = "#5f875f"
|
|
||||||
color3 = "#b36d43"
|
|
||||||
color4 = "#78824b"
|
|
||||||
color5 = "#bb7744"
|
|
||||||
color6 = "#c9a554"
|
|
||||||
color7 = "#d7c483"
|
|
||||||
color8 = "#666666"
|
|
||||||
color9 = "#685742"
|
|
||||||
color10 = "#5f875f"
|
|
||||||
color11 = "#b36d43"
|
|
||||||
color12 = "#78824b"
|
|
||||||
color13 = "#bb7744"
|
|
||||||
color14 = "#c9a554"
|
|
||||||
color15 = "#d7c483"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
Yaru-wartybrown
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
return {
|
|
||||||
{
|
|
||||||
"xero/miasma.nvim",
|
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"LazyVim/LazyVim",
|
|
||||||
opts = {
|
|
||||||
colorscheme = "miasma",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
-- local function has_miasma_in_user_plugins()
|
|
||||||
-- local plugins_dir = vim.fn.expand("~/.config/nvim/lua/plugins")
|
|
||||||
-- if vim.fn.isdirectory(plugins_dir) ~= 1 then
|
|
||||||
-- return false
|
|
||||||
-- end
|
|
||||||
-- local plugin_files = vim.fn.glob(plugins_dir .. "/**/*.lua", true, true)
|
|
||||||
-- for _, file in ipairs(plugin_files) do
|
|
||||||
-- local ok, lines = pcall(vim.fn.readfile, file)
|
|
||||||
-- if ok then
|
|
||||||
-- for _, line in ipairs(lines) do
|
|
||||||
-- if line:find("xero/miasma.nvim", 1, true) then
|
|
||||||
-- return true
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
-- return false
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- if has_miasma_in_user_plugins() then
|
|
||||||
-- return {
|
|
||||||
-- {
|
|
||||||
-- "xero/miasma.nvim",
|
|
||||||
-- lazy = false,
|
|
||||||
-- priority = 1000,
|
|
||||||
-- config = function()
|
|
||||||
-- vim.cmd("colorscheme miasma")
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
-- }
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- return {
|
|
||||||
-- {
|
|
||||||
-- "bjarneo/aether.nvim",
|
|
||||||
-- name = "aether",
|
|
||||||
-- priority = 1000,
|
|
||||||
-- opts = {
|
|
||||||
-- disable_italics = false,
|
|
||||||
-- colors = {
|
|
||||||
-- -- Monotone shades (base00-base07)
|
|
||||||
-- base00 = "#222222", -- Default background
|
|
||||||
-- base01 = "#666666", -- Lighter background (status bars)
|
|
||||||
-- base02 = "#e4c47a", -- Selection background
|
|
||||||
-- base03 = "#666666", -- Comments, invisibles
|
|
||||||
-- base04 = "#c2c2b0", -- Dark foreground
|
|
||||||
-- base05 = "#c2c2b0", -- Default foreground
|
|
||||||
-- base06 = "#d7c483", -- Light foreground
|
|
||||||
-- base07 = "#d7c483", -- Light background
|
|
||||||
--
|
|
||||||
-- -- Accent colors (base08-base0F)
|
|
||||||
-- base08 = "#685742", -- Variables, errors, red
|
|
||||||
-- base09 = "#685742", -- Integers, constants, orange
|
|
||||||
-- base0A = "#b36d43", -- Classes, types, yellow
|
|
||||||
-- base0B = "#5f875f", -- Strings, green
|
|
||||||
-- base0C = "#c9a554", -- Support, regex, cyan
|
|
||||||
-- base0D = "#78824b", -- Functions, keywords, blue
|
|
||||||
-- base0E = "#bb7744", -- Keywords, storage, magenta
|
|
||||||
-- base0F = "#b36d43", -- Deprecated, brown/yellow
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- config = function(_, opts)
|
|
||||||
-- require("aether").setup(opts)
|
|
||||||
-- vim.cmd.colorscheme("aether")
|
|
||||||
--
|
|
||||||
-- -- Enable hot reload
|
|
||||||
-- require("aether.hotreload").setup()
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
-- {
|
|
||||||
-- "LazyVim/LazyVim",
|
|
||||||
-- opts = {
|
|
||||||
-- colorscheme = "aether",
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- }
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 506 KiB |
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "In The Fog Dark",
|
|
||||||
"extension": "ganevru.in-the-fog-theme"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user