mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
2 Commits
34b22a23f6
...
e487dace43
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e487dace43 | ||
|
|
ba14cd36dd |
6
bin/omarchy-hw-asus-rog
Executable file
6
bin/omarchy-hw-asus-rog
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Detect whether the computer is an Asus ROG machine.
|
||||||
|
|
||||||
|
[[ "$(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
|
||||||
@@ -57,6 +57,7 @@ omarchy-theme-set-gnome
|
|||||||
omarchy-theme-set-browser
|
omarchy-theme-set-browser
|
||||||
omarchy-theme-set-vscode
|
omarchy-theme-set-vscode
|
||||||
omarchy-theme-set-obsidian
|
omarchy-theme-set-obsidian
|
||||||
|
omarchy-theme-set-asusctl
|
||||||
|
|
||||||
# Call hook on theme set
|
# Call hook on theme set
|
||||||
omarchy-hook theme-set "$THEME_NAME"
|
omarchy-hook theme-set "$THEME_NAME"
|
||||||
|
|||||||
7
bin/omarchy-theme-set-asusctl
Executable file
7
bin/omarchy-theme-set-asusctl
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ASUSCTL_THEME=~/.config/omarchy/current/theme/asusctl.rgb
|
||||||
|
|
||||||
|
if omarchy-cmd-present asusctl; then
|
||||||
|
asusctl aura effect static -c $(sed 's/^#//' $ASUSCTL_THEME)
|
||||||
|
fi
|
||||||
1
default/themed/asusctl.rgb.tpl
Normal file
1
default/themed/asusctl.rgb.tpl
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ accent }}
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
# Fix audio volume on Asus ROG laptops by using a soft mixer.
|
# 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." ]] &&
|
if omarchy-hw-asus-rog; then
|
||||||
grep -q "ROG" /sys/class/dmi/id/product_family 2>/dev/null; then
|
|
||||||
|
|
||||||
mkdir -p ~/.config/wireplumber/wireplumber.conf.d/
|
mkdir -p ~/.config/wireplumber/wireplumber.conf.d/
|
||||||
cp $OMARCHY_PATH/default/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf ~/.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
|
rm -rf ~/.local/state/wireplumber/default-routes
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
# The mic boost is way too high by default, causing clipping.
|
# The mic boost is way too high by default, causing clipping.
|
||||||
# Sets levels and stores ALSA state so it persists across reboots.
|
# 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." ]] &&
|
if omarchy-hw-asus-rog; then
|
||||||
grep -q "ROG" /sys/class/dmi/id/product_family 2>/dev/null; then
|
|
||||||
|
|
||||||
for card in /proc/asound/card*/codec*; do
|
for card in /proc/asound/card*/codec*; do
|
||||||
if grep -q "ALC285" "$card" 2>/dev/null; then
|
if grep -q "ALC285" "$card" 2>/dev/null; then
|
||||||
cardnum=$(echo "$card" | grep -oP 'card\K\d+')
|
cardnum=$(echo "$card" | grep -oP 'card\K\d+')
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
# Utilized by ISO builder to ensure package availability in the ISO
|
# Utilized by ISO builder to ensure package availability in the ISO
|
||||||
|
|
||||||
autoconf-archive
|
autoconf-archive
|
||||||
|
asusctl
|
||||||
base
|
base
|
||||||
base-devel
|
base-devel
|
||||||
broadcom-wl
|
broadcom-wl
|
||||||
|
|||||||
@@ -4,3 +4,4 @@ run_logged $OMARCHY_INSTALL/packaging/nvim.sh
|
|||||||
run_logged $OMARCHY_INSTALL/packaging/icons.sh
|
run_logged $OMARCHY_INSTALL/packaging/icons.sh
|
||||||
run_logged $OMARCHY_INSTALL/packaging/webapps.sh
|
run_logged $OMARCHY_INSTALL/packaging/webapps.sh
|
||||||
run_logged $OMARCHY_INSTALL/packaging/tuis.sh
|
run_logged $OMARCHY_INSTALL/packaging/tuis.sh
|
||||||
|
run_logged $OMARCHY_INSTALL/packaging/asus-rog.sh
|
||||||
|
|||||||
3
install/packaging/asus-rog.sh
Normal file
3
install/packaging/asus-rog.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
if omarchy-hw-asus-rog; then
|
||||||
|
omarchy-pkg-add asusctl
|
||||||
|
fi
|
||||||
@@ -3,7 +3,6 @@ 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-mic.sh"
|
||||||
source "$OMARCHY_PATH/install/config/hardware/fix-asus-rog-audio-mixer.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." ]] &&
|
if omarchy-hw-asus-rog; then
|
||||||
grep -q "ROG" /sys/class/dmi/id/product_family 2>/dev/null; then
|
|
||||||
omarchy-restart-pipewire
|
omarchy-restart-pipewire
|
||||||
fi
|
fi
|
||||||
|
|||||||
1
themes/tokyo-night/asusctl.rgb
Normal file
1
themes/tokyo-night/asusctl.rgb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ff00ff
|
||||||
Reference in New Issue
Block a user