mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
14 Commits
5b534de6a0
...
toggle-hyb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79dc4c4b52 | ||
|
|
3678b27170 | ||
|
|
08fead671e | ||
|
|
df65a4aaef | ||
|
|
b218655301 | ||
|
|
5fac51272c | ||
|
|
4921d68ee1 | ||
|
|
7e18659cd6 | ||
|
|
989229d515 | ||
|
|
64f7880b08 | ||
|
|
8e21a5341f | ||
|
|
e73f56b1b1 | ||
|
|
16edd8982b | ||
|
|
06d06c0c3d |
@@ -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"
|
|
||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
@@ -445,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" ;;
|
||||||
@@ -463,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" ;;
|
||||||
@@ -472,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" ;;
|
||||||
@@ -481,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 ;;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
command = 'wl-copy && hyprctl dispatch sendshortcut "SHIFT, Insert,"'
|
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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 ..'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -34,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,9 +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
|
|
||||||
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
|
|
||||||
@@ -13,7 +13,6 @@ bluetui
|
|||||||
bolt
|
bolt
|
||||||
brightnessctl
|
brightnessctl
|
||||||
btop
|
btop
|
||||||
chromium
|
|
||||||
clang
|
clang
|
||||||
cups
|
cups
|
||||||
cups-browsed
|
cups-browsed
|
||||||
@@ -88,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,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,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
|
|
||||||
Reference in New Issue
Block a user