mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Describe the rest of the bins
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Returns true if a battery is present on the system.
|
||||||
|
# Used by the battery monitor and other battery-related checks.
|
||||||
|
|
||||||
for bat in /sys/class/power_supply/BAT*; do
|
for bat in /sys/class/power_supply/BAT*; do
|
||||||
[[ -r "$bat/present" ]] &&
|
[[ -r "$bat/present" ]] &&
|
||||||
[[ "$(cat "$bat/present")" == "1" ]] &&
|
[[ "$(cat "$bat/present")" == "1" ]] &&
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Remove a development environment that was previously installed via omarchy-install-dev-env.
|
||||||
|
# Usage: omarchy-remove-dev-env <ruby|node|bun|deno|go|php|laravel|symfony|python|elixir|phoenix|zig|rust|java|dotnet|ocaml|clojure>
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Usage: omarchy-remove-dev-env <ruby|node|bun|deno|go|php|laravel|symfony|python|elixir|phoenix|zig|rust|java|dotnet|ocaml|clojure>" >&2
|
echo "Usage: omarchy-remove-dev-env <ruby|node|bun|deno|go|php|laravel|symfony|python|elixir|phoenix|zig|rust|java|dotnet|ocaml|clojure>" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Reset the sudo lockout/faillock for the current user.
|
||||||
|
# This clears any failed authentication attempts that may have locked the user out.
|
||||||
|
|
||||||
# Resetting sudo lockout for user
|
# Resetting sudo lockout for user
|
||||||
su -c "faillock --reset --user $USER"
|
su -c "faillock --reset --user $USER"
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Restart an application by killing it and relaunching via uwsm.
|
||||||
|
# Usage: omarchy-restart-app <application-name>
|
||||||
|
|
||||||
pkill -x $1
|
pkill -x $1
|
||||||
setsid uwsm-app -- $1 >/dev/null 2>&1 &
|
setsid uwsm-app -- $1 >/dev/null 2>&1 &
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Unblock and restart the bluetooth service.
|
||||||
|
|
||||||
echo -e "Unblocking bluetooth...\n"
|
echo -e "Unblocking bluetooth...\n"
|
||||||
rfkill unblock bluetooth
|
rfkill unblock bluetooth
|
||||||
rfkill list bluetooth
|
rfkill list bluetooth
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Restart the hypridle service (used for idle detection and auto-lock).
|
||||||
|
|
||||||
omarchy-restart-app hypridle
|
omarchy-restart-app hypridle
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Restart the hyprsunset service (used for blue light filtering/night light).
|
||||||
|
|
||||||
omarchy-restart-app hyprsunset
|
omarchy-restart-app hyprsunset
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Restart the PipeWire audio service to fix audio issues or apply new configuration.
|
||||||
|
|
||||||
echo -e "Restarting pipewire audio service...\n"
|
echo -e "Restarting pipewire audio service...\n"
|
||||||
systemctl --user restart pipewire.service
|
systemctl --user restart pipewire.service
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Unblock and restart the Wi-Fi service.
|
||||||
|
|
||||||
echo -e "Unblocking wifi...\n"
|
echo -e "Unblocking wifi...\n"
|
||||||
rfkill unblock wifi
|
rfkill unblock wifi
|
||||||
rfkill list wifi
|
rfkill list wifi
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Restart the XCompose input method service (fcitx5) to apply new compose key settings.
|
||||||
|
|
||||||
omarchy-restart-app fcitx5
|
omarchy-restart-app fcitx5
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Display a "Done!" message with a spinner and wait for user to press any key.
|
||||||
|
# Used by various install scripts to indicate completion.
|
||||||
|
|
||||||
echo
|
echo
|
||||||
gum spin --spinner "globe" --title "Done! Press any key to close..." -- bash -c 'read -n 1 -s'
|
gum spin --spinner "globe" --title "Done! Press any key to close..." -- bash -c 'read -n 1 -s'
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Display the Omarchy logo in the terminal using green color.
|
||||||
|
# Used by various presentation scripts to show branding.
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo -e "\033[32m"
|
echo -e "\033[32m"
|
||||||
cat <~/.local/share/omarchy/logo.txt
|
cat <~/.local/share/omarchy/logo.txt
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Manage persistent state files for Omarchy toggles and settings.
|
||||||
|
# Usage: omarchy-state <set|clear> <state-name-or-pattern>
|
||||||
|
# Used to track whether features like suspend, idle lock, etc are enabled or disabled.
|
||||||
|
|
||||||
STATE_DIR="$HOME/.local/state/omarchy"
|
STATE_DIR="$HOME/.local/state/omarchy"
|
||||||
mkdir -p "$STATE_DIR"
|
mkdir -p "$STATE_DIR"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user