mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
1 Commits
v2.1.1
...
update-pas
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28634164ea |
@@ -1,50 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
focused_monitor="$(hyprctl monitors -j | jq -r '.[] | select(.focused == true).name')"
|
# Find all the audio sinks but exit if there are none
|
||||||
|
sinks=($(wpctl status | sed -n '/Sinks:/,/Sources:/p' | grep -E '^\s*│\s+\*?\s*[0-9]+\.' | sed -E 's/^[^0-9]*([0-9]+)\..*/\1/'))
|
||||||
|
[ ${#sinks[@]} -eq 0 ] && exit 1
|
||||||
|
|
||||||
sinks=$(pactl -f json list sinks)
|
# Find current audio sink
|
||||||
sinks_count=$(echo "$sinks" | jq '. | length')
|
current=$(wpctl status | sed -n '/Sinks:/,/Sources:/p' | grep '^\s*│\s*\*' | sed -E 's/^[^0-9]*([0-9]+)\..*/\1/')
|
||||||
|
|
||||||
if [ "$sinks_count" -eq 0 ]; then
|
# Find the next sink (looping around in the list)
|
||||||
swayosd-client \
|
for i in "${!sinks[@]}"; do
|
||||||
--monitor "$focused_monitor" \
|
[ "${sinks[$i]}" = "$current" ] && next=${sinks[$(((i + 1) % ${#sinks[@]}))]}
|
||||||
--custom-message "No audio devices found"
|
done
|
||||||
exit 1
|
next=${next:-${sinks[0]}}
|
||||||
fi
|
|
||||||
|
|
||||||
current_sink_name=$(pactl get-default-sink)
|
# Set the next sink and ensure it's not muted
|
||||||
current_sink_index=$(echo "$sinks" | jq -r --arg name "$current_sink_name" 'map(.name) | index($name)')
|
wpctl set-default "$next"
|
||||||
|
wpctl set-mute "$next" 0
|
||||||
|
|
||||||
if [ "$current_sink_index" != "null" ]; then
|
|
||||||
next_sink_index=$(((current_sink_index + 1) % sinks_count))
|
|
||||||
else
|
|
||||||
next_sink_index=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
next_sink=$(echo "$sinks" | jq -r ".[$next_sink_index]")
|
|
||||||
next_sink_name=$(echo "$next_sink" | jq -r '.name')
|
|
||||||
next_sink_description=$(echo "$next_sink" | jq -r '.description')
|
|
||||||
next_sink_volume=$(echo "$next_sink" | jq -r \
|
|
||||||
'.volume | to_entries[0].value.value_percent | sub("%"; "")')
|
|
||||||
next_sink_is_muted=$(echo "$next_sink" | jq -r '.mute')
|
|
||||||
|
|
||||||
if [ "$next_sink_is_muted" = "true" ] || [ "$next_sink_volume" -eq 0 ]; then
|
|
||||||
icon_state="muted"
|
|
||||||
elif [ "$next_sink_volume" -le 33 ]; then
|
|
||||||
icon_state="low"
|
|
||||||
elif [ "$next_sink_volume" -le 66 ]; then
|
|
||||||
icon_state="medium"
|
|
||||||
else
|
|
||||||
icon_state="high"
|
|
||||||
fi
|
|
||||||
|
|
||||||
next_sink_volume_icon="sink-volume-${icon_state}-symbolic"
|
|
||||||
|
|
||||||
if [ "$next_sink_name" != "$current_sink_name" ]; then
|
|
||||||
pactl set-default-sink "$next_sink_name"
|
|
||||||
fi
|
|
||||||
|
|
||||||
swayosd-client \
|
|
||||||
--monitor "$focused_monitor" \
|
|
||||||
--custom-message "$next_sink_description" \
|
|
||||||
--custom-icon "$next_sink_volume_icon"
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Usage: omarchy-install-dev-env <ruby|node|bun|go|laravel|symfony|php|python|elixir|phoenix|rust|java|ocaml|dotnet|clojure>" >&2
|
echo "Usage: omarchy-install-dev-env <ruby|node|bun|go|laravel|symfony|php|python|elixir|phoenix|rust|java|ocaml|dotnet>" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -131,9 +131,4 @@ dotnet)
|
|||||||
echo -e "Installing .NET...\n"
|
echo -e "Installing .NET...\n"
|
||||||
mise use --global dotnet@latest
|
mise use --global dotnet@latest
|
||||||
;;
|
;;
|
||||||
clojure)
|
|
||||||
echo -e "Installing Clojure...\n"
|
|
||||||
omarchy-pkg-add rlwrap
|
|
||||||
mise use --global clojure@latest
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ if [[ -n "$choices" ]]; then
|
|||||||
for db in $choices; do
|
for db in $choices; do
|
||||||
case $db in
|
case $db in
|
||||||
MySQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8.4 ;;
|
MySQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8.4 ;;
|
||||||
PostgreSQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:5432:5432" --name=postgres17 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:17 ;;
|
PostgreSQL) sudo docker run -d --restart unless-stopped -p "127.0.0.1:5432:5432" --name=postgres16 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:16 ;;
|
||||||
MariaDB) sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mariadb11 -e MARIADB_ROOT_PASSWORD= -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true mariadb:11.8 ;;
|
MariaDB) sudo docker run -d --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mariadb11 -e MARIADB_ROOT_PASSWORD= -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true mariadb:11.8 ;;
|
||||||
Redis) sudo docker run -d --restart unless-stopped -p "127.0.0.1:6379:6379" --name=redis redis:7 ;;
|
Redis) sudo docker run -d --restart unless-stopped -p "127.0.0.1:6379:6379" --name=redis redis:7 ;;
|
||||||
MongoDB) sudo docker run -d --restart unless-stopped -p "127.0.0.1:27017:27017" --name mongodb -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=admin123 mongo:noble ;;
|
MongoDB) sudo docker run -d --restart unless-stopped -p "127.0.0.1:27017:27017" --name mongodb -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=admin123 mongo:noble ;;
|
||||||
|
|||||||
@@ -2,21 +2,6 @@
|
|||||||
|
|
||||||
export PATH="$HOME/.local/share/omarchy/bin:$PATH"
|
export PATH="$HOME/.local/share/omarchy/bin:$PATH"
|
||||||
|
|
||||||
# Set to true when going directly to a submenu, so we can exit directly
|
|
||||||
BACK_TO_EXIT=false
|
|
||||||
|
|
||||||
back_to() {
|
|
||||||
local parent_menu="$1"
|
|
||||||
|
|
||||||
if [[ "$DIRECT_ACCESS" == "true" ]]; then
|
|
||||||
exit 0
|
|
||||||
elif [[ -n "$parent_menu" ]]; then
|
|
||||||
"$parent_menu"
|
|
||||||
else
|
|
||||||
show_main_menu
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
menu() {
|
menu() {
|
||||||
local prompt="$1"
|
local prompt="$1"
|
||||||
local options="$2"
|
local options="$2"
|
||||||
@@ -95,7 +80,7 @@ show_style_menu() {
|
|||||||
show_theme_menu() {
|
show_theme_menu() {
|
||||||
theme=$(menu "Theme" "$(omarchy-theme-list)" "" "$(omarchy-theme-current)")
|
theme=$(menu "Theme" "$(omarchy-theme-list)" "" "$(omarchy-theme-current)")
|
||||||
if [[ "$theme" == "CNCLD" || -z "$theme" ]]; then
|
if [[ "$theme" == "CNCLD" || -z "$theme" ]]; then
|
||||||
back_to show_style_menu
|
show_main_menu
|
||||||
else
|
else
|
||||||
omarchy-theme-set "$theme"
|
omarchy-theme-set "$theme"
|
||||||
fi
|
fi
|
||||||
@@ -104,7 +89,7 @@ show_theme_menu() {
|
|||||||
show_font_menu() {
|
show_font_menu() {
|
||||||
theme=$(menu "Font" "$(omarchy-font-list)" "-w 350" "$(omarchy-font-current)")
|
theme=$(menu "Font" "$(omarchy-font-list)" "-w 350" "$(omarchy-font-current)")
|
||||||
if [[ "$theme" == "CNCLD" || -z "$theme" ]]; then
|
if [[ "$theme" == "CNCLD" || -z "$theme" ]]; then
|
||||||
back_to show_style_menu
|
show_main_menu
|
||||||
else
|
else
|
||||||
omarchy-font-set "$theme"
|
omarchy-font-set "$theme"
|
||||||
fi
|
fi
|
||||||
@@ -129,10 +114,8 @@ show_screenshot_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_screenrecord_menu() {
|
show_screenrecord_menu() {
|
||||||
case $(menu "Screenrecord" " Region\n Region + Audio\n Display\n Display + Audio") in
|
case $(menu "Screenrecord" " Region\n Display") in
|
||||||
*"Region + Audio"*) omarchy-cmd-screenrecord region audio ;;
|
|
||||||
*Region*) omarchy-cmd-screenrecord ;;
|
*Region*) omarchy-cmd-screenrecord ;;
|
||||||
*"Display + Audio"*) omarchy-cmd-screenrecord output audio ;;
|
|
||||||
*Display*) omarchy-cmd-screenrecord output ;;
|
*Display*) omarchy-cmd-screenrecord output ;;
|
||||||
*) show_capture_menu ;;
|
*) show_capture_menu ;;
|
||||||
esac
|
esac
|
||||||
@@ -180,7 +163,7 @@ show_setup_power_menu() {
|
|||||||
profile=$(menu "Power Profile" "$(omarchy-powerprofiles-list)" "" "$(powerprofilesctl get)")
|
profile=$(menu "Power Profile" "$(omarchy-powerprofiles-list)" "" "$(powerprofilesctl get)")
|
||||||
|
|
||||||
if [[ "$profile" == "CNCLD" || -z "$profile" ]]; then
|
if [[ "$profile" == "CNCLD" || -z "$profile" ]]; then
|
||||||
back_to show_setup_menu
|
show_main_menu
|
||||||
else
|
else
|
||||||
powerprofilesctl set "$profile"
|
powerprofilesctl set "$profile"
|
||||||
fi
|
fi
|
||||||
@@ -244,10 +227,10 @@ show_install_ai_menu() {
|
|||||||
echo ollama
|
echo ollama
|
||||||
)
|
)
|
||||||
|
|
||||||
case $(menu "Install" " Claude Code\n Gemini [AUR]\n OpenAI Codex [AUR]\n LM Studio\n Ollama\n Crush\n opencode") in
|
case $(menu "Install" " Claude Code\n Gemini\n OpenAI Codex [AUR]\n LM Studio\n Ollama\n Crush\n opencode") in
|
||||||
*Claude*) install "Claude Code" "claude-code" ;;
|
*Claude*) install "Claude Code" "claude-code" ;;
|
||||||
*OpenAI*) aur_install "OpenAI Codex" "openai-codex-bin" ;;
|
*OpenAI*) aur_install "OpenAI Codex" "openai-codex-bin" ;;
|
||||||
*Gemini*) aur_install "Gemini" "gemini-cli" ;;
|
*Gemini*) install "Gemini" "gemini-cli" ;;
|
||||||
*Studio*) install "LM Studio" "lmstudio" ;;
|
*Studio*) install "LM Studio" "lmstudio" ;;
|
||||||
*Ollama*) install "Ollama" $ollama_pkg ;;
|
*Ollama*) install "Ollama" $ollama_pkg ;;
|
||||||
*Crush*) install "Crush" "crush-bin" ;;
|
*Crush*) install "Crush" "crush-bin" ;;
|
||||||
@@ -285,7 +268,7 @@ show_install_font_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_install_development_menu() {
|
show_install_development_menu() {
|
||||||
case $(menu "Install" " Ruby on Rails\n Docker DB\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 "Install" " Ruby on Rails\n Docker DB\n JavaScript\n Go\n PHP\n Python\n Elixir\n Zig\n Rust\n Java\n .NET\n OCaml") in
|
||||||
*Rails*) present_terminal "omarchy-install-dev-env ruby" ;;
|
*Rails*) present_terminal "omarchy-install-dev-env ruby" ;;
|
||||||
*Docker*) present_terminal omarchy-install-docker-dbs ;;
|
*Docker*) present_terminal omarchy-install-docker-dbs ;;
|
||||||
*JavaScript*) show_install_javascript_menu ;;
|
*JavaScript*) show_install_javascript_menu ;;
|
||||||
@@ -298,7 +281,6 @@ show_install_development_menu() {
|
|||||||
*Java*) present_terminal "omarchy-install-dev-env java" ;;
|
*Java*) present_terminal "omarchy-install-dev-env java" ;;
|
||||||
*NET*) present_terminal "omarchy-install-dev-env dotnet" ;;
|
*NET*) present_terminal "omarchy-install-dev-env dotnet" ;;
|
||||||
*OCaml*) present_terminal "omarchy-install-dev-env ocaml" ;;
|
*OCaml*) present_terminal "omarchy-install-dev-env ocaml" ;;
|
||||||
*Clojure*) present_terminal "omarchy-install-dev-env clojure" ;;
|
|
||||||
*) show_install_menu ;;
|
*) show_install_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -403,7 +385,7 @@ show_system_menu() {
|
|||||||
*Relaunch*) uwsm stop ;;
|
*Relaunch*) uwsm stop ;;
|
||||||
*Restart*) systemctl reboot ;;
|
*Restart*) systemctl reboot ;;
|
||||||
*Shutdown*) systemctl poweroff ;;
|
*Shutdown*) systemctl poweroff ;;
|
||||||
*) back_to show_main_menu ;;
|
*) show_main_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -432,7 +414,6 @@ go_to_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [[ -n "$1" ]]; then
|
if [[ -n "$1" ]]; then
|
||||||
BACK_TO_EXIT=true
|
|
||||||
go_to_menu "$1"
|
go_to_menu "$1"
|
||||||
else
|
else
|
||||||
show_main_menu
|
show_main_menu
|
||||||
|
|||||||
@@ -83,11 +83,7 @@ parse_bindings() {
|
|||||||
}'
|
}'
|
||||||
}
|
}
|
||||||
|
|
||||||
monitor_height=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .height')
|
|
||||||
menu_height=$((monitor_height * 40 / 100))
|
|
||||||
|
|
||||||
dynamic_bindings | \
|
dynamic_bindings | \
|
||||||
sort -u | \
|
sort -u | \
|
||||||
parse_bindings | \
|
parse_bindings | \
|
||||||
walker --dmenu --theme keybindings -p 'Keybindings' -w 800 -h "$menu_height"
|
walker --dmenu --theme keybindings -p 'Keybindings'
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
fzf_args=(
|
fzf_args=(
|
||||||
--multi
|
--multi
|
||||||
--preview 'yay -Sii {1}'
|
--preview 'yay -Sii {1}'
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
fzf_args=(
|
fzf_args=(
|
||||||
--multi
|
--multi
|
||||||
--preview 'pacman -Sii {1}'
|
--preview 'pacman -Sii {1}'
|
||||||
@@ -17,5 +19,6 @@ pkg_names=$(pacman -Slq | fzf "${fzf_args[@]}")
|
|||||||
if [[ -n "$pkg_names" ]]; then
|
if [[ -n "$pkg_names" ]]; then
|
||||||
# Convert newline-separated selections to space-separated for yay
|
# Convert newline-separated selections to space-separated for yay
|
||||||
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -S --noconfirm
|
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -S --noconfirm
|
||||||
|
sudo updatedb
|
||||||
omarchy-show-done
|
omarchy-show-done
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -17,5 +17,6 @@ pkg_names=$(yay -Qqe | fzf "${fzf_args[@]}")
|
|||||||
if [[ -n "$pkg_names" ]]; then
|
if [[ -n "$pkg_names" ]]; then
|
||||||
# Convert newline-separated selections to space-separated for yay
|
# Convert newline-separated selections to space-separated for yay
|
||||||
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -Rns --noconfirm
|
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -Rns --noconfirm
|
||||||
|
sudo updatedb
|
||||||
omarchy-show-done
|
omarchy-show-done
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ EOF
|
|||||||
DHCP)
|
DHCP)
|
||||||
sudo tee /etc/systemd/resolved.conf >/dev/null <<'EOF'
|
sudo tee /etc/systemd/resolved.conf >/dev/null <<'EOF'
|
||||||
[Resolve]
|
[Resolve]
|
||||||
|
DNS=
|
||||||
|
FallbackDNS=
|
||||||
DNSOverTLS=no
|
DNSOverTLS=no
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
anchor=top-right
|
|
||||||
default-timeout=5000
|
|
||||||
width=420
|
|
||||||
height=110
|
|
||||||
|
|
||||||
[app-name=Spotify]
|
|
||||||
invisible=1
|
|
||||||
|
|
||||||
[mode=do-not-disturb]
|
|
||||||
invisible=true
|
|
||||||
|
|
||||||
[mode=do-not-disturb app-name=notify-send]
|
|
||||||
invisible=false
|
|
||||||
|
|
||||||
[urgency=critical]
|
|
||||||
default-timeout=0
|
|
||||||
@@ -41,14 +41,12 @@ source $OMARCHY_INSTALL/config/mimetypes.sh
|
|||||||
source $OMARCHY_INSTALL/config/localdb.sh
|
source $OMARCHY_INSTALL/config/localdb.sh
|
||||||
source $OMARCHY_INSTALL/config/sudoless-asdcontrol.sh
|
source $OMARCHY_INSTALL/config/sudoless-asdcontrol.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/network.sh
|
source $OMARCHY_INSTALL/config/hardware/network.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/set-wireless-regdom.sh
|
|
||||||
source $OMARCHY_INSTALL/config/hardware/fix-fkeys.sh
|
source $OMARCHY_INSTALL/config/hardware/fix-fkeys.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/bluetooth.sh
|
source $OMARCHY_INSTALL/config/hardware/bluetooth.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/printer.sh
|
source $OMARCHY_INSTALL/config/hardware/printer.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/usb-autosuspend.sh
|
source $OMARCHY_INSTALL/config/hardware/usb-autosuspend.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/ignore-power-button.sh
|
source $OMARCHY_INSTALL/config/hardware/ignore-power-button.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/nvidia.sh
|
source $OMARCHY_INSTALL/config/hardware/nvidia.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/intel.sh
|
|
||||||
source $OMARCHY_INSTALL/config/hardware/fix-f13-amd-audio-input.sh
|
source $OMARCHY_INSTALL/config/hardware/fix-f13-amd-audio-input.sh
|
||||||
|
|
||||||
# Login
|
# Login
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This installs hardware video acceleration for Intel GPUs
|
|
||||||
# Check if we have an Intel GPU at all
|
|
||||||
if INTEL_GPU=$(lspci | grep -iE 'vga|3d|display' | grep -i 'intel'); then
|
|
||||||
# HD Graphics and newer uses intel-media-driver
|
|
||||||
if [[ "${INTEL_GPU,,}" =~ "hd graphics"|"xe"|"iris" ]]; then
|
|
||||||
sudo pacman -S --needed --noconfirm intel-media-driver
|
|
||||||
elif [[ "${INTEL_GPU,,}" =~ "gma" ]]; then
|
|
||||||
# Older generations from 2008 to ~2014-2017 use libva-intel-driver
|
|
||||||
sudo pacman -S --needed --noconfirm libva-intel-driver
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
@@ -7,9 +7,6 @@ sudo mkdir -p /etc/systemd/resolved.conf.d
|
|||||||
echo -e "[Resolve]\nMulticastDNS=no" | sudo tee /etc/systemd/resolved.conf.d/10-disable-multicast.conf
|
echo -e "[Resolve]\nMulticastDNS=no" | sudo tee /etc/systemd/resolved.conf.d/10-disable-multicast.conf
|
||||||
chrootable_systemctl_enable avahi-daemon.service
|
chrootable_systemctl_enable avahi-daemon.service
|
||||||
|
|
||||||
# Enable mDNS resolution for .local domains
|
|
||||||
sudo sed -i 's/^hosts:.*/hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns/' /etc/nsswitch.conf
|
|
||||||
|
|
||||||
# Enable automatically adding remote printers
|
# Enable automatically adding remote printers
|
||||||
if ! grep -q '^CreateRemotePrinters Yes' /etc/cups/cups-browsed.conf; then
|
if ! grep -q '^CreateRemotePrinters Yes' /etc/cups/cups-browsed.conf; then
|
||||||
echo 'CreateRemotePrinters Yes' | sudo tee -a /etc/cups/cups-browsed.conf
|
echo 'CreateRemotePrinters Yes' | sudo tee -a /etc/cups/cups-browsed.conf
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# First check that wireless-regdb is there
|
|
||||||
if [ -f "/etc/conf.d/wireless-regdom" ]; then
|
|
||||||
unset WIRELESS_REGDOM
|
|
||||||
. /etc/conf.d/wireless-regdom
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If the region is already set, we're done
|
|
||||||
if [ ! -n "${WIRELESS_REGDOM}" ]; then
|
|
||||||
# Get the current timezone
|
|
||||||
if [ -e "/etc/localtime" ]; then
|
|
||||||
TIMEZONE=$(readlink -f /etc/localtime)
|
|
||||||
TIMEZONE=${TIMEZONE#/usr/share/zoneinfo/}
|
|
||||||
|
|
||||||
# Some timezones are formatted with the two letter country code at the start
|
|
||||||
COUNTRY="${TIMEZONE%%/*}"
|
|
||||||
|
|
||||||
# If we don't have a two letter country, get it from the timezone table
|
|
||||||
if [[ ! "$COUNTRY" =~ ^[A-Z]{2}$ ]] && [ -f "/usr/share/zoneinfo/zone.tab" ]; then
|
|
||||||
COUNTRY=$(awk -v tz="$TIMEZONE" '$3 == tz {print $1; exit}' /usr/share/zoneinfo/zone.tab)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check if we have a two letter country code
|
|
||||||
if [[ "$COUNTRY" =~ ^[A-Z]{2}$ ]]; then
|
|
||||||
# Append it to the wireless-regdom conf file that is used at boot
|
|
||||||
echo "WIRELESS_REGDOM=\"$COUNTRY\"" | sudo tee -a /etc/conf.d/wireless-regdom > /dev/null
|
|
||||||
|
|
||||||
# Also set it one off now
|
|
||||||
if command -v iw &> /dev/null; then
|
|
||||||
sudo iw reg set ${COUNTRY}
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
@@ -26,4 +26,3 @@ ln -snf ~/.config/omarchy/current/theme/btop.theme ~/.config/btop/themes/current
|
|||||||
|
|
||||||
mkdir -p ~/.config/mako
|
mkdir -p ~/.config/mako
|
||||||
ln -snf ~/.config/omarchy/current/theme/mako.ini ~/.config/mako/config
|
ln -snf ~/.config/omarchy/current/theme/mako.ini ~/.config/mako/config
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,6 @@ sudo pacman -S --noconfirm --needed \
|
|||||||
waybar \
|
waybar \
|
||||||
wf-recorder \
|
wf-recorder \
|
||||||
whois \
|
whois \
|
||||||
wireless-regdb \
|
|
||||||
wiremix \
|
wiremix \
|
||||||
wireplumber \
|
wireplumber \
|
||||||
wl-clip-persist \
|
wl-clip-persist \
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
echo "Add locale to the waybar clock format"
|
|
||||||
|
|
||||||
sed -i \
|
|
||||||
-e 's/{:%A %H:%M}/{:L%A %H:%M}/' \
|
|
||||||
-e 's/{:%d %B W%V %Y}/{:L%d %B W%V %Y}/' \
|
|
||||||
"$HOME/.config/waybar/config.jsonc"
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
echo "Fix DHCP DNS to allow VPN DNS override"
|
|
||||||
|
|
||||||
if [ -f /etc/systemd/resolved.conf ]; then
|
|
||||||
if grep -q "^DNS=$" /etc/systemd/resolved.conf && grep -q "^FallbackDNS=$" /etc/systemd/resolved.conf; then
|
|
||||||
sudo sed -i '/^DNS=$/d; /^FallbackDNS=$/d' /etc/systemd/resolved.conf
|
|
||||||
sudo systemctl restart systemd-resolved
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
echo "Enable mDNS resolution for existing Avahi installations"
|
|
||||||
|
|
||||||
if systemctl is-enabled avahi-daemon.service >/dev/null 2>&1; then
|
|
||||||
if ! grep -q "mdns_minimal" /etc/nsswitch.conf; then
|
|
||||||
sudo sed -i 's/^hosts:.*/hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns/' /etc/nsswitch.conf
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
@@ -1,10 +1,25 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#4c4f69
|
text-color=#4c4f69
|
||||||
border-color=#1e66f5
|
border-color=#1e66f5
|
||||||
background-color=#eff1f5
|
background-color=#eff1f5
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 11
|
font=Liberation Sans 11
|
||||||
|
anchor=top-right
|
||||||
|
outer-margin=20
|
||||||
|
default-timeout=5000
|
||||||
max-icon-size=32
|
max-icon-size=32
|
||||||
outer-margin=20
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#cad3f5
|
text-color=#cad3f5
|
||||||
border-color=#c6d0f5
|
border-color=#c6d0f5
|
||||||
background-color=#24273a
|
background-color=#24273a
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 11
|
font=Liberation Sans 11
|
||||||
|
anchor=top-right
|
||||||
|
outer-margin=20
|
||||||
|
default-timeout=5000
|
||||||
max-icon-size=32
|
max-icon-size=32
|
||||||
outer-margin=20
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#d3c6aa
|
text-color=#d3c6aa
|
||||||
border-color=#d3c6aa
|
border-color=#d3c6aa
|
||||||
background-color=#2d353b
|
background-color=#2d353b
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 11
|
font=Liberation Sans 11
|
||||||
|
anchor=top-right
|
||||||
|
outer-margin=20
|
||||||
|
default-timeout=5000
|
||||||
max-icon-size=32
|
max-icon-size=32
|
||||||
outer-margin=20
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#d4be98
|
text-color=#d4be98
|
||||||
border-color=#a89984
|
border-color=#a89984
|
||||||
background-color=#282828
|
background-color=#282828
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 11
|
font=Liberation Sans 11
|
||||||
|
anchor=top-right
|
||||||
|
outer-margin=20
|
||||||
|
default-timeout=5000
|
||||||
max-icon-size=32
|
max-icon-size=32
|
||||||
outer-margin=20
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#dcd7ba
|
text-color=#dcd7ba
|
||||||
border-color=#dcd7ba
|
border-color=#dcd7ba
|
||||||
background-color=#1f1f28
|
background-color=#1f1f28
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 11
|
font=Liberation Sans 11
|
||||||
|
anchor=top-right
|
||||||
|
outer-margin=20
|
||||||
|
default-timeout=5000
|
||||||
max-icon-size=32
|
max-icon-size=32
|
||||||
outer-margin=20
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#8a8a8d
|
text-color=#8a8a8d
|
||||||
border-color=#8A8A8D
|
border-color=#8A8A8D
|
||||||
background-color=#1e1e1e
|
background-color=#1e1e1e
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 11
|
font=Liberation Sans 11
|
||||||
max-icon-size=32
|
anchor=top-right
|
||||||
outer-margin=20
|
outer-margin=20
|
||||||
|
default-timeout=5000
|
||||||
|
max-icon-size=32
|
||||||
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#d8dee9
|
text-color=#d8dee9
|
||||||
border-color=#D8DEE9
|
border-color=#D8DEE9
|
||||||
background-color=#2e3440
|
background-color=#2e3440
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 11
|
font=Liberation Sans 11
|
||||||
|
anchor=top-right
|
||||||
|
outer-margin=20
|
||||||
|
default-timeout=5000
|
||||||
max-icon-size=32
|
max-icon-size=32
|
||||||
outer-margin=20
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#C1C497
|
text-color=#C1C497
|
||||||
border-color=#214237
|
border-color=#214237
|
||||||
background-color=#11221C
|
background-color=#11221C
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 12
|
font=Liberation Sans 12
|
||||||
|
anchor=top-right
|
||||||
|
outer-margin=5
|
||||||
|
default-timeout=5000
|
||||||
max-icon-size=32
|
max-icon-size=32
|
||||||
outer-margin=5
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#e6d9db
|
text-color=#e6d9db
|
||||||
border-color=#e6d9db
|
border-color=#e6d9db
|
||||||
background-color=#2c2525
|
background-color=#2c2525
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 11
|
font=Liberation Sans 11
|
||||||
|
anchor=top-right
|
||||||
|
outer-margin=20
|
||||||
|
default-timeout=5000
|
||||||
max-icon-size=32
|
max-icon-size=32
|
||||||
outer-margin=20
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#575279
|
text-color=#575279
|
||||||
border-color=#575279
|
border-color=#575279
|
||||||
background-color=#faf4ed
|
background-color=#faf4ed
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 11
|
font=Liberation Sans 11
|
||||||
|
anchor=top-right
|
||||||
|
outer-margin=20
|
||||||
|
default-timeout=5000
|
||||||
max-icon-size=32
|
max-icon-size=32
|
||||||
outer-margin=20
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
include=~/.local/share/omarchy/default/mako/core.ini
|
|
||||||
|
|
||||||
text-color=#a9b1d6
|
text-color=#a9b1d6
|
||||||
border-color=#33ccff
|
border-color=#33ccff
|
||||||
background-color=#1a1b26
|
background-color=#1a1b26
|
||||||
|
width=420
|
||||||
|
height=110
|
||||||
padding=10
|
padding=10
|
||||||
border-size=2
|
border-size=2
|
||||||
font=Liberation Sans 11
|
font=Liberation Sans 11
|
||||||
|
anchor=top-right
|
||||||
|
outer-margin=20
|
||||||
|
default-timeout=5000
|
||||||
max-icon-size=32
|
max-icon-size=32
|
||||||
outer-margin=20
|
|
||||||
|
[app-name=Spotify]
|
||||||
|
invisible=1
|
||||||
|
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=true
|
||||||
|
|
||||||
|
[mode=do-not-disturb app-name=notify-send]
|
||||||
|
invisible=false
|
||||||
|
|
||||||
|
[urgency=critical]
|
||||||
|
default-timeout=0
|
||||||
|
|||||||
Reference in New Issue
Block a user