mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
251 Commits
remove-log
...
pinned-pac
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
968078c6e0 | ||
|
|
9a5f3f9cee | ||
|
|
710bb023cd | ||
|
|
a7df6c0941 | ||
|
|
2d12085eb1 | ||
|
|
9a2cdc2bc4 | ||
|
|
66818266ff | ||
|
|
3affd55a90 | ||
|
|
a7322fe7ae | ||
|
|
5e3d8e5f22 | ||
|
|
128e090165 | ||
|
|
13f2cd9641 | ||
|
|
334aa214ba | ||
|
|
27c4b74e90 | ||
|
|
44c9be7958 | ||
|
|
23c9229fdd | ||
|
|
f22755df4f | ||
|
|
ee9ae96414 | ||
|
|
d5a340f6b7 | ||
|
|
0e88962e4f | ||
|
|
7e2d266a9a | ||
|
|
7bf65360f9 | ||
|
|
1c486a037b | ||
|
|
ea21d0a7b7 | ||
|
|
51830d5ce1 | ||
|
|
f0a12463a6 | ||
|
|
a8965dd271 | ||
|
|
c2fee1b7fa | ||
|
|
acc1e2f757 | ||
|
|
51f877ca1f | ||
|
|
8167633824 | ||
|
|
922acfd706 | ||
|
|
b136cc5653 | ||
|
|
52d1ac215d | ||
|
|
838d0ca27b | ||
|
|
f4ea58bdd0 | ||
|
|
6c656766f8 | ||
|
|
06e3cb4e71 | ||
|
|
1506b98fe1 | ||
|
|
2a8155cc68 | ||
|
|
35b7f44c7e | ||
|
|
4b70705252 | ||
|
|
0eda27a3bc | ||
|
|
c48f370924 | ||
|
|
dcfbd7a2e5 | ||
|
|
dde702a4c3 | ||
|
|
9e0c638b84 | ||
|
|
4e389007f1 | ||
|
|
258b151935 | ||
|
|
b80e4ce908 | ||
|
|
31dbf49a1f | ||
|
|
185807b771 | ||
|
|
d8ddc5046f | ||
|
|
5c6c880b0b | ||
|
|
122bdd7837 | ||
|
|
59088800ad | ||
|
|
561ffcfb56 | ||
|
|
b44661a0ad | ||
|
|
a50041721c | ||
|
|
88303d81fd | ||
|
|
e99bab272f | ||
|
|
b5ced14972 | ||
|
|
e3bda8a970 | ||
|
|
d031237b42 | ||
|
|
0b48f08674 | ||
|
|
63081e141a | ||
|
|
249612bf67 | ||
|
|
468a84b5cc | ||
|
|
42ee87ad65 | ||
|
|
f2844964c4 | ||
|
|
b38e864f08 | ||
|
|
b4f6bbda4d | ||
|
|
e806080c4d | ||
|
|
fe2dd66f91 | ||
|
|
062c6b3dce | ||
|
|
68a51c18a8 | ||
|
|
5a98771e5b | ||
|
|
77863a4c12 | ||
|
|
5b59aee51e | ||
|
|
fdaa126aee | ||
|
|
4f0dfcc865 | ||
|
|
2635534778 | ||
|
|
5bb7b66dee | ||
|
|
b8f4a10056 | ||
|
|
86b03357d0 | ||
|
|
186912ca1d | ||
|
|
c7d9581d7b | ||
|
|
03503364cc | ||
|
|
44529a7a25 | ||
|
|
705b6858dc | ||
|
|
b9758a9c8c | ||
|
|
0a0843c7ec | ||
|
|
ec0af90c98 | ||
|
|
37f0c18b78 | ||
|
|
1ec6ba61dc | ||
|
|
066ec7ffff | ||
|
|
c73c1c90bf | ||
|
|
256a49ee53 | ||
|
|
39e0cf3a37 | ||
|
|
e8f932b0f6 | ||
|
|
55daa135a7 | ||
|
|
a428208077 | ||
|
|
2d848338e6 | ||
|
|
925a2906e5 | ||
|
|
f98899e4e2 | ||
|
|
e565768bed | ||
|
|
661eed2640 | ||
|
|
28ba0bff7a | ||
|
|
bdfc0fad5d | ||
|
|
ec17b3f012 | ||
|
|
9cd70e9aff | ||
|
|
51f5bed286 | ||
|
|
9a98782342 | ||
|
|
c0a091e293 | ||
|
|
d7fa8181fa | ||
|
|
dfda4f895a | ||
|
|
a67fc717c1 | ||
|
|
599b58f9a1 | ||
|
|
f14810e80d | ||
|
|
3bf51d30ff | ||
|
|
39dccccb1a | ||
|
|
46f8b522f1 | ||
|
|
1576c4e5c6 | ||
|
|
f39dc9a269 | ||
|
|
ff6802830c | ||
|
|
af9ab9069f | ||
|
|
3363fe0544 | ||
|
|
1577620344 | ||
|
|
d183daff1a | ||
|
|
5ed08ef5b9 | ||
|
|
ae8c76f582 | ||
|
|
93ef034a5c | ||
|
|
fc43706190 | ||
|
|
fc853ffe96 | ||
|
|
a8c3d1a2bd | ||
|
|
b09c625ac0 | ||
|
|
4d28721682 | ||
|
|
5ad441e539 | ||
|
|
78e81d7534 | ||
|
|
00ce49a4ac | ||
|
|
78719b0552 | ||
|
|
8a5bca3807 | ||
|
|
78aeb91e5f | ||
|
|
83b67d0d6b | ||
|
|
ed9edab8ed | ||
|
|
115e9c5af8 | ||
|
|
00cc8315a6 | ||
|
|
1d915c6583 | ||
|
|
dd493b0cdf | ||
|
|
1f4723ae33 | ||
|
|
478b166ae7 | ||
|
|
c0770fc7a3 | ||
|
|
846b2e2595 | ||
|
|
d8a4640010 | ||
|
|
ee5f4eb925 | ||
|
|
cb22afdb93 | ||
|
|
d2bd1b47b6 | ||
|
|
02134df8ee | ||
|
|
cd39a145e8 | ||
|
|
a0c3a435fc | ||
|
|
f0a77e65cd | ||
|
|
4de9f5fda3 | ||
|
|
1efe4a819f | ||
|
|
a29237e070 | ||
|
|
9834a40796 | ||
|
|
edf0bb3128 | ||
|
|
960cbbd591 | ||
|
|
c974c3dbc4 | ||
|
|
f1af28f10d | ||
|
|
673cea1644 | ||
|
|
9d739faf2b | ||
|
|
69afedf380 | ||
|
|
57e14afca3 | ||
|
|
38d9961622 | ||
|
|
57b1180c67 | ||
|
|
664fb7c51a | ||
|
|
09a90e3cf2 | ||
|
|
6dd95e71bf | ||
|
|
22769caa8c | ||
|
|
448be1317f | ||
|
|
7bd1d56399 | ||
|
|
b094557a97 | ||
|
|
3f895969c7 | ||
|
|
da7222f510 | ||
|
|
9d355091b5 | ||
|
|
a391b64e61 | ||
|
|
028c07d016 | ||
|
|
4fd6a110ea | ||
|
|
92a491fd47 | ||
|
|
8b192c30e1 | ||
|
|
6826cad95b | ||
|
|
1e46882fd8 | ||
|
|
b0acd0b5e8 | ||
|
|
24682aea8c | ||
|
|
bb43d719e6 | ||
|
|
c4b32c047a | ||
|
|
f4ef8eca65 | ||
|
|
1d6d21e7b7 | ||
|
|
04fff555b8 | ||
|
|
aa32b147ad | ||
|
|
6b3b93ded1 | ||
|
|
9dbef029f6 | ||
|
|
aaefc4f208 | ||
|
|
ccf13e5902 | ||
|
|
9ed755b445 | ||
|
|
42432ae462 | ||
|
|
438156e36f | ||
|
|
574d213c34 | ||
|
|
7d61c19f69 | ||
|
|
69fe4ae997 | ||
|
|
c3af4b9469 | ||
|
|
ffe8997fad | ||
|
|
e2611d9bc4 | ||
|
|
266767df5f | ||
|
|
eb4172a486 | ||
|
|
ca115b9061 | ||
|
|
ab09446971 | ||
|
|
af0f459a1a | ||
|
|
fbf9a19574 | ||
|
|
95139164a3 | ||
|
|
2ae973108d | ||
|
|
aa0b44b7f4 | ||
|
|
d9424b2bff | ||
|
|
36a30dd01d | ||
|
|
82467892a3 | ||
|
|
e138f7e8eb | ||
|
|
0a75644f2d | ||
|
|
3725f2d3b6 | ||
|
|
0ebd62a32e | ||
|
|
31d97335fc | ||
|
|
41a1fe6b21 | ||
|
|
91e686f1b2 | ||
|
|
75ac6910d4 | ||
|
|
b4b8788c14 | ||
|
|
76c94e2604 | ||
|
|
e59a98fb0b | ||
|
|
dee7e3e4a7 | ||
|
|
5a7b9292c8 | ||
|
|
31ce6f689e | ||
|
|
210481d758 | ||
|
|
3bac37b21b | ||
|
|
1edbe89191 | ||
|
|
617e96234b | ||
|
|
5873980703 | ||
|
|
b8cc8d8bc3 | ||
|
|
455fe890ec | ||
|
|
ccc8aa87d0 | ||
|
|
193797393f | ||
|
|
7056a3903a | ||
|
|
3880c49469 | ||
|
|
cc80782160 |
@@ -1,7 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Name=Audio Settings
|
|
||||||
Comment=Using Wiremix
|
|
||||||
Exec=alacritty --class=Wiremix --title=Wiremix -e wiremix
|
|
||||||
Icon=audio-headphones
|
|
||||||
Type=Application
|
|
||||||
Terminal=false
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Name=Zoom
|
|
||||||
Comment=Zoom Video Conference
|
|
||||||
Exec=env QT_SCALE_FACTOR=2 /usr/bin/zoom %U
|
|
||||||
Icon=Zoom
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
Encoding=UTF-8
|
|
||||||
Categories=Network;Application;
|
|
||||||
StartupWMClass=zoom
|
|
||||||
MimeType=x-scheme-handler/zoommtg;x-scheme-handler/zoomus;x-scheme-handler/tel;x-scheme-handler/callto;x-scheme-handler/zoomphonecall;x-scheme-handler/zoomphonesms;x-scheme-handler/zoomcontactcentercall;application/x-zoom
|
|
||||||
X-KDE-Protocols=zoommtg;zoomus;tel;callto;zoomphonecall;zoomphonesms;zoomcontactcentercall;
|
|
||||||
12
bin/omarchy-cmd-first-run
Executable file
12
bin/omarchy-cmd-first-run
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
FIRST_RUN_MODE=~/.local/state/omarchy/first-run.mode
|
||||||
|
|
||||||
|
if [[ -f "$FIRST_RUN_MODE" ]]; then
|
||||||
|
rm -f "$FIRST_RUN_MODE"
|
||||||
|
$OMARCHY_PATH/install/first-run/battery-monitor.sh
|
||||||
|
$OMARCHY_PATH/install/first-run/firewall.sh
|
||||||
|
sudo rm -f /etc/sudoers.d/first-run
|
||||||
|
fi
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if command -v tte &>/dev/null; then
|
while true; do
|
||||||
while true; do
|
|
||||||
effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1)
|
effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1)
|
||||||
tte -i ~/.config/omarchy/branding/screensaver.txt \
|
tte -i ~/.config/omarchy/branding/screensaver.txt \
|
||||||
--frame-rate 240 --canvas-width 0 --canvas-height $(($(tput lines) - 2)) --anchor-canvas c --anchor-text c \
|
--frame-rate 240 --canvas-width 0 --canvas-height $(($(tput lines) - 2)) --anchor-canvas c --anchor-text c \
|
||||||
@@ -14,7 +13,4 @@ if command -v tte &>/dev/null; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
else
|
|
||||||
gum spin --title "Can't find tte. Try: pip install terminaltexteffects" -- sleep 2
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo systemctl restart systemd-timesyncd
|
||||||
sudo tzupdate
|
sudo tzupdate
|
||||||
new_timezone=$(timedatectl show -p Timezone --value)
|
new_timezone=$(timedatectl show -p Timezone --value)
|
||||||
omarchy-restart-waybar
|
omarchy-restart-waybar
|
||||||
notify-send "Timezone has been set to $new_timezone"
|
notify-send "Time synced and timezone set to $new_timezone"
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if ! curl -s --connect-timeout 10 --head -A "omarchy-update" -o /dev/null "https://aur.archlinux.org/"; then
|
|
||||||
gum spin --spinner "globe" --title "The AUR package repository is currently unavailable, please try again later" -- sleep 2 && exit 1
|
|
||||||
fi
|
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
fc-list :spacing=100 -f "%{family[0]}\n" | grep -v -i -E 'emoji|signwriting' | sort -u
|
fc-list :spacing=100 -f "%{family[0]}\n" | grep -v -i -E 'emoji|signwriting|omarchy' | sort -u
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ if [[ -z "$1" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
install_php() {
|
install_php() {
|
||||||
yay -Sy php composer php-sqlite --noconfirm
|
sudo pacman -Sy php composer php-sqlite --noconfirm
|
||||||
|
|
||||||
# Install Path for Composer
|
# Install Path for Composer
|
||||||
if [[ ":$PATH:" != *":$HOME/.config/composer/vendor/bin:"* ]]; then
|
if [[ ":$PATH:" != *":$HOME/.config/composer/vendor/bin:"* ]]; then
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
options=("MariaDB" "MySQL" "Redis" "PostgreSQL" "MongoDB")
|
options=("MySQL" "PostgreSQL" "Redis" "MongoDB" "MariaDB")
|
||||||
choices=$(printf "%s\n" "${options[@]}" | gum choose --no-limit --header "Select databases (space to select, return to install, esc to cancel)") || main_menu
|
choices=$(printf "%s\n" "${options[@]}" | gum choose --no-limit --header "Select databases (space to select, return to install, esc to cancel)") || main_menu
|
||||||
|
|
||||||
if [[ -n "$choices" ]]; then
|
if [[ -n "$choices" ]]; then
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Installing all dependencies..."
|
# FIXME: Should not use AUR dependencies when we can avoid it
|
||||||
|
echo "Installing all dependencies [from AUR]..."
|
||||||
yay -S --noconfirm --needed \
|
yay -S --noconfirm --needed \
|
||||||
dropbox dropbox-cli libappindicator-gtk3 python-gpgme nautilus-dropbox
|
dropbox dropbox-cli libappindicator-gtk3 python-gpgme nautilus-dropbox
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ sudo sed -i '/^\s*#\[multilib\]/,/^$/{s/^\s*#//}' /etc/pacman.conf
|
|||||||
sudo pacman -Sy
|
sudo pacman -Sy
|
||||||
|
|
||||||
echo "Now pick dependencies matching your graphics card"
|
echo "Now pick dependencies matching your graphics card"
|
||||||
yay -S steam
|
sudo pacman -S steam
|
||||||
setsid gtk-launch steam >/dev/null 2>&1 &
|
setsid gtk-launch steam >/dev/null 2>&1 &
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
exec setsid uwsm app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,/usr}/share/applications/$(xdg-settings get default-web-browser) 2>/dev/null | head -1) ${args[@]} $@
|
exec setsid uwsm app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,~/.nix-profile,/usr}/share/applications/$(xdg-settings get default-web-browser) 2>/dev/null | head -1) ${args[@]} $@
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit early if we don't have the tte show
|
||||||
|
if ! command -v tte &>/dev/null; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Exit early if screensave is already running
|
# Exit early if screensave is already running
|
||||||
pgrep -f "alacritty --class Screensaver" && exit 0
|
pgrep -f "alacritty --class Screensaver" && exit 0
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ google-chrome* | brave-browser* | microsoft-edge* | opera* | vivaldi*) ;;
|
|||||||
*) browser="chromium.desktop" ;;
|
*) browser="chromium.desktop" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exec setsid uwsm app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,/usr}/share/applications/$browser 2>/dev/null | head -1) --app="$1" "${@:2}"
|
exec setsid uwsm app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,~/.nix-profile,/usr}/share/applications/$browser 2>/dev/null | head -1) --app="$1" "${@:2}"
|
||||||
|
|||||||
@@ -35,15 +35,23 @@ edit_in_nvim() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
present_terminal "echo 'Installing $1...'; yay -Sy --noconfirm $2"
|
present_terminal "echo 'Installing $1...'; sudo pacman -Sy --noconfirm $2"
|
||||||
}
|
}
|
||||||
|
|
||||||
install_and_launch() {
|
install_and_launch() {
|
||||||
present_terminal "echo 'Installing $1...'; yay -Sy --noconfirm $2 && setsid gtk-launch $3"
|
present_terminal "echo 'Installing $1...'; sudo pacman -Sy --noconfirm $2 && setsid gtk-launch $3"
|
||||||
}
|
}
|
||||||
|
|
||||||
install_font() {
|
install_font() {
|
||||||
present_terminal "echo 'Installing $1...'; yay -Sy --noconfirm --needed $2 && sleep 2 && omarchy-font-set '$3'"
|
present_terminal "echo 'Installing $1...'; sudo pacman -Sy --noconfirm --needed $2 && sleep 2 && omarchy-font-set '$3'"
|
||||||
|
}
|
||||||
|
|
||||||
|
aur_install() {
|
||||||
|
present_terminal "echo 'Installing $1 from AUR...'; yay -Sy --noconfirm $2"
|
||||||
|
}
|
||||||
|
|
||||||
|
aur_install_and_launch() {
|
||||||
|
present_terminal "echo 'Installing $1 from AUR...'; yay -Sy --noconfirm $2 && setsid gtk-launch $3"
|
||||||
}
|
}
|
||||||
|
|
||||||
show_learn_menu() {
|
show_learn_menu() {
|
||||||
@@ -127,16 +135,23 @@ show_setup_menu() {
|
|||||||
local options=" Audio\n Wifi\n Bluetooth\n Power Profile\n Monitors"
|
local options=" Audio\n Wifi\n Bluetooth\n Power Profile\n Monitors"
|
||||||
[ -f ~/.config/hypr/bindings.conf ] && options="$options\n Keybindings"
|
[ -f ~/.config/hypr/bindings.conf ] && options="$options\n Keybindings"
|
||||||
[ -f ~/.config/hypr/input.conf ] && options="$options\n Input"
|
[ -f ~/.config/hypr/input.conf ] && options="$options\n Input"
|
||||||
options="$options\n Config\n Fingerprint\n Fido2"
|
options="$options\n DNS\n Config\n Fingerprint\n Fido2"
|
||||||
|
|
||||||
case $(menu "Setup" "$options") in
|
case $(menu "Setup" "$options") in
|
||||||
*Audio*) alacritty --class=Wiremix -e wiremix ;;
|
*Audio*) alacritty --class=Wiremix -e wiremix ;;
|
||||||
*Wifi*) alacritty --class=Impala -e bash -c "rfkill unblock wifi; impala" ;;
|
*Wifi*)
|
||||||
*Bluetooth*) blueberry ;;
|
rfkill unblock wifi
|
||||||
|
alacritty --class=Impala -e impala
|
||||||
|
;;
|
||||||
|
*Bluetooth*)
|
||||||
|
rfkill unblock bluetooth
|
||||||
|
blueberry
|
||||||
|
;;
|
||||||
*Power*) show_setup_power_menu ;;
|
*Power*) show_setup_power_menu ;;
|
||||||
*Monitors*) edit_in_nvim ~/.config/hypr/monitors.conf ;;
|
*Monitors*) edit_in_nvim ~/.config/hypr/monitors.conf ;;
|
||||||
*Keybindings*) edit_in_nvim ~/.config/hypr/bindings.conf ;;
|
*Keybindings*) edit_in_nvim ~/.config/hypr/bindings.conf ;;
|
||||||
*Input*) edit_in_nvim ~/.config/hypr/input.conf ;;
|
*Input*) edit_in_nvim ~/.config/hypr/input.conf ;;
|
||||||
|
*DNS*) present_terminal omarchy-setup-dns ;;
|
||||||
*Config*) show_setup_config_menu ;;
|
*Config*) show_setup_config_menu ;;
|
||||||
*Fingerprint*) present_terminal omarchy-setup-fingerprint ;;
|
*Fingerprint*) present_terminal omarchy-setup-fingerprint ;;
|
||||||
*Fido2*) present_terminal omarchy-setup-fido2 ;;
|
*Fido2*) present_terminal omarchy-setup-fido2 ;;
|
||||||
@@ -169,8 +184,9 @@ show_setup_config_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_install_menu() {
|
show_install_menu() {
|
||||||
case $(menu "Install" " Package\n Web App\n TUI\n Service\n Style\n Development\n Editor\n AI\n Gaming") in
|
case $(menu "Install" " Package\n AUR\n Web App\n TUI\n Service\n Style\n Development\n Editor\n AI\n Gaming") in
|
||||||
*Package*) terminal omarchy-pkg-install ;;
|
*Package*) terminal omarchy-pkg-install ;;
|
||||||
|
*AUR*) terminal omarchy-pkg-aur-install ;;
|
||||||
*Web*) present_terminal omarchy-webapp-install ;;
|
*Web*) present_terminal omarchy-webapp-install ;;
|
||||||
*TUI*) present_terminal omarchy-tui-install ;;
|
*TUI*) present_terminal omarchy-tui-install ;;
|
||||||
*Service*) show_install_service_menu ;;
|
*Service*) show_install_service_menu ;;
|
||||||
@@ -192,9 +208,9 @@ show_install_service_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_install_editor_menu() {
|
show_install_editor_menu() {
|
||||||
case $(menu "Install" " VSCode\n Cursor\n Zed\n Sublime Text\n Helix") in
|
case $(menu "Install" " VSCode\n Cursor [AUR]\n Zed\n Sublime Text\n Helix") in
|
||||||
*VSCode*) install_and_launch "VSCode" "visual-studio-code-bin" "code" ;;
|
*VSCode*) install_and_launch "VSCode" "visual-studio-code-bin" "code" ;;
|
||||||
*Cursor*) install_and_launch "Cursor" "cursor-bin" "cursor" ;;
|
*Cursor*) aur_install_and_launch "Cursor" "cursor-bin" "cursor" ;;
|
||||||
*Zed*) install_and_launch "Zed" "zed" "dev.zed.Zed" ;;
|
*Zed*) install_and_launch "Zed" "zed" "dev.zed.Zed" ;;
|
||||||
*Sublime*) install_and_launch "Sublime Text" "sublime-text-4" "sublime_text" ;;
|
*Sublime*) install_and_launch "Sublime Text" "sublime-text-4" "sublime_text" ;;
|
||||||
*Helix*) install "Helix" "helix" ;;
|
*Helix*) install "Helix" "helix" ;;
|
||||||
@@ -203,21 +219,21 @@ show_install_editor_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_install_ai_menu() {
|
show_install_ai_menu() {
|
||||||
case $(menu "Install" " Claude Code\n Gemini\n LM Studio\n Ollama\n Crush\n opencode") in
|
case $(menu "Install" " Claude Code [AUR]\n Gemini\n LM Studio [AUR]\n Ollama\n Crush [AUR]\n opencode [AUR]") in
|
||||||
*Claude*) install "Claude Code" "claude-code" ;;
|
*Claude*) aur_install "Claude Code" "claude-code" ;;
|
||||||
*Gemini*) install "Gemini" "gemini-cli-bin" ;;
|
*Gemini*) install "Gemini" "gemini-cli" ;;
|
||||||
*Studio*) install "LM Studio" "lmstudio" ;;
|
*Studio*) aur_install "LM Studio" "lmstudio" ;;
|
||||||
*Ollama*) install "Ollama" "ollama" ;;
|
*Ollama*) install "Ollama" "ollama" ;;
|
||||||
*Crush*) install "Crush" "crush-bin" ;;
|
*Crush*) aur_install "Crush" "crush-bin" ;;
|
||||||
*opencode*) install "opencode" "opencode-bin" ;;
|
*opencode*) aur_install "opencode" "opencode-bin" ;;
|
||||||
*) show_install_menu ;;
|
*) show_install_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
show_install_gaming_menu() {
|
show_install_gaming_menu() {
|
||||||
case $(menu "Install" " Steam\n RetroArch\n Minecraft") in
|
case $(menu "Install" " Steam\n RetroArch [AUR]\n Minecraft") in
|
||||||
*Steam*) present_terminal omarchy-install-steam ;;
|
*Steam*) present_terminal omarchy-install-steam ;;
|
||||||
*RetroArch*) 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" ;;
|
||||||
*) show_install_menu ;;
|
*) show_install_menu ;;
|
||||||
esac
|
esac
|
||||||
@@ -299,7 +315,7 @@ show_remove_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_update_menu() {
|
show_update_menu() {
|
||||||
case $(menu "Update" " Omarchy\n Config\n Themes\n Process\n Timezone") in
|
case $(menu "Update" " Omarchy\n Config\n Themes\n Process\n Timezone") in
|
||||||
*Omarchy*) present_terminal omarchy-update ;;
|
*Omarchy*) present_terminal omarchy-update ;;
|
||||||
*Config*) show_update_config_menu ;;
|
*Config*) show_update_config_menu ;;
|
||||||
*Themes*) present_terminal omarchy-theme-update ;;
|
*Themes*) present_terminal omarchy-theme-update ;;
|
||||||
@@ -365,7 +381,7 @@ go_to_menu() {
|
|||||||
*remove*) show_remove_menu ;;
|
*remove*) show_remove_menu ;;
|
||||||
*update*) show_update_menu ;;
|
*update*) show_update_menu ;;
|
||||||
*system*) show_system_menu ;;
|
*system*) show_system_menu ;;
|
||||||
*about*) terminal bash -c 'fastfetch; read -n 1 -s' ;;
|
*about*) alacritty --class Omarchy -o font.size=9 -e bash -c 'fastfetch; read -n 1 -s' ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
4
bin/omarchy-pkg-aur-accessible
Executable file
4
bin/omarchy-pkg-aur-accessible
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
curl -sf --connect-timeout 30 --retry 3 --retry-delay 3 -A "omarchy-update" \
|
||||||
|
"https://aur.archlinux.org/rpc/?v=5&type=info&arg=base" >/dev/null
|
||||||
24
bin/omarchy-pkg-aur-install
Executable file
24
bin/omarchy-pkg-aur-install
Executable file
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
fzf_args=(
|
||||||
|
--multi
|
||||||
|
--preview 'yay -Sii {1}'
|
||||||
|
--preview-label='alt-p: toggle description, alt-j/k: scroll, tab: multi-select, F11: maximize'
|
||||||
|
--preview-label-pos='bottom'
|
||||||
|
--preview-window 'down:65%:wrap'
|
||||||
|
--bind 'alt-p:toggle-preview'
|
||||||
|
--bind 'alt-d:preview-half-page-down,alt-u:preview-half-page-up'
|
||||||
|
--bind 'alt-k:preview-up,alt-j:preview-down'
|
||||||
|
--color 'pointer:green,marker:green'
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_names=$(yay -Slqa | fzf "${fzf_args[@]}")
|
||||||
|
|
||||||
|
if [[ -n "$pkg_names" ]]; then
|
||||||
|
# Convert newline-separated selections to space-separated for yay
|
||||||
|
echo "$pkg_names" | tr '\n' ' ' | xargs yay -Sy --noconfirm
|
||||||
|
sudo updatedb
|
||||||
|
omarchy-show-done
|
||||||
|
fi
|
||||||
7
bin/omarchy-pkg-ignored
Executable file
7
bin/omarchy-pkg-ignored
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
IGNORED_PACKAGES_FILE="$OMARCHY_PATH/install/packages.ignored"
|
||||||
|
|
||||||
|
if [[ -f $IGNORED_PACKAGES_FILE ]]; then
|
||||||
|
tr '\r\n' ',' <"$IGNORED_PACKAGES_FILE" | sed 's/,$//'
|
||||||
|
fi
|
||||||
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
fzf_args=(
|
fzf_args=(
|
||||||
--multi
|
--multi
|
||||||
--preview 'yay -Sii {1}'
|
--preview 'pacman -Sii {1}'
|
||||||
--preview-label='alt-p: toggle description, alt-j/k: scroll, tab: multi-select, F11: maximize'
|
--preview-label='alt-p: toggle description, alt-j/k: scroll, tab: multi-select, F11: maximize'
|
||||||
--preview-label-pos='bottom'
|
--preview-label-pos='bottom'
|
||||||
--preview-window 'down:65%:wrap'
|
--preview-window 'down:65%:wrap'
|
||||||
@@ -14,11 +14,12 @@ fzf_args=(
|
|||||||
--color 'pointer:green,marker:green'
|
--color 'pointer:green,marker:green'
|
||||||
)
|
)
|
||||||
|
|
||||||
pkg_names=$(yay -Slq | fzf "${fzf_args[@]}")
|
sudo pacman -Sy
|
||||||
|
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 yay -Sy --noconfirm
|
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -Sy --noconfirm
|
||||||
sudo updatedb
|
sudo updatedb
|
||||||
omarchy-show-done
|
omarchy-show-done
|
||||||
fi
|
fi
|
||||||
|
|||||||
7
bin/omarchy-pkg-pinned
Executable file
7
bin/omarchy-pkg-pinned
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PINNED_PACKAGES_FILE=$OMARCHY_PATH/install/packages.pinned
|
||||||
|
|
||||||
|
if [[ -f $PINNED_PACKAGES_FILE ]]; then
|
||||||
|
tr '\r\n' ',' <"$PINNED_PACKAGES_FILE" | sed 's/,$//'
|
||||||
|
fi
|
||||||
@@ -16,7 +16,7 @@ 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 yay -Rns --noconfirm
|
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -Rns --noconfirm
|
||||||
sudo updatedb
|
sudo updatedb
|
||||||
omarchy-show-done
|
omarchy-show-done
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -10,9 +10,4 @@ mkdir -p ~/.local/share/applications
|
|||||||
cp ~/.local/share/omarchy/applications/*.desktop ~/.local/share/applications/
|
cp ~/.local/share/omarchy/applications/*.desktop ~/.local/share/applications/
|
||||||
cp ~/.local/share/omarchy/applications/hidden/*.desktop ~/.local/share/applications/
|
cp ~/.local/share/omarchy/applications/hidden/*.desktop ~/.local/share/applications/
|
||||||
|
|
||||||
# Only copy xtras if user is not in bare mode
|
|
||||||
if [[ ! -f ~/.local/state/omarchy/bare.mode ]] && [ -z "$OMARCHY_BARE" ]; then
|
|
||||||
cp ~/.local/share/omarchy/applications/xtras/*.desktop ~/.local/share/applications/
|
|
||||||
fi
|
|
||||||
|
|
||||||
update-desktop-database ~/.local/share/applications
|
update-desktop-database ~/.local/share/applications
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ "$1" == "-y" ]] || gum confirm "Refresh Plymouth theme? This will replace your current startup screen with Omarchy defaults."; then
|
if [[ "$1" == "-y" ]]; then
|
||||||
sudo cp ~/.local/share/omarchy/default/plymouth/* /usr/share/plymouth/themes/omarchy/
|
sudo cp ~/.local/share/omarchy/default/plymouth/* /usr/share/plymouth/themes/omarchy/
|
||||||
sudo plymouth-set-default-theme -R omarchy
|
sudo plymouth-set-default-theme -R omarchy
|
||||||
fi
|
fi
|
||||||
|
|||||||
89
bin/omarchy-setup-dns
Executable file
89
bin/omarchy-setup-dns
Executable file
@@ -0,0 +1,89 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ -z $1 ]]; then
|
||||||
|
dns=$(gum choose --height 5 --header "Select DNS provider" Cloudflare DHCP Custom)
|
||||||
|
else
|
||||||
|
dns=$1
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$dns" in
|
||||||
|
Cloudflare)
|
||||||
|
sudo tee /etc/systemd/resolved.conf >/dev/null <<'EOF'
|
||||||
|
[Resolve]
|
||||||
|
DNS=1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com
|
||||||
|
FallbackDNS=9.9.9.9 149.112.112.112
|
||||||
|
DNSOverTLS=opportunistic
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Ensure network interfaces don't override our DNS settings
|
||||||
|
for file in /etc/systemd/network/*.network; do
|
||||||
|
[[ -f "$file" ]] || continue
|
||||||
|
if ! grep -q "^\[DHCPv4\]" "$file"; then continue; fi
|
||||||
|
|
||||||
|
# Add UseDNS=no to DHCPv4 section if not present
|
||||||
|
if ! sed -n '/^\[DHCPv4\]/,/^\[/p' "$file" | grep -q "^UseDNS="; then
|
||||||
|
sudo sed -i '/^\[DHCPv4\]/a UseDNS=no' "$file"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Add UseDNS=no to IPv6AcceptRA section if present
|
||||||
|
if grep -q "^\[IPv6AcceptRA\]" "$file" && ! sed -n '/^\[IPv6AcceptRA\]/,/^\[/p' "$file" | grep -q "^UseDNS="; then
|
||||||
|
sudo sed -i '/^\[IPv6AcceptRA\]/a UseDNS=no' "$file"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
sudo systemctl restart systemd-networkd systemd-resolved
|
||||||
|
;;
|
||||||
|
|
||||||
|
DHCP)
|
||||||
|
sudo tee /etc/systemd/resolved.conf >/dev/null <<'EOF'
|
||||||
|
[Resolve]
|
||||||
|
DNS=
|
||||||
|
FallbackDNS=
|
||||||
|
DNSOverTLS=no
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Allow network interfaces to use DHCP DNS
|
||||||
|
for file in /etc/systemd/network/*.network; do
|
||||||
|
[[ -f "$file" ]] || continue
|
||||||
|
sudo sed -i '/^UseDNS=no/d' "$file"
|
||||||
|
done
|
||||||
|
|
||||||
|
sudo systemctl restart systemd-networkd systemd-resolved
|
||||||
|
;;
|
||||||
|
|
||||||
|
Custom)
|
||||||
|
echo "Enter your DNS servers (space-separated, e.g. '192.168.1.1 1.1.1.1'):"
|
||||||
|
read -r dns_servers
|
||||||
|
|
||||||
|
if [[ -z "$dns_servers" ]]; then
|
||||||
|
echo "Error: No DNS servers provided."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo tee /etc/systemd/resolved.conf >/dev/null <<EOF
|
||||||
|
[Resolve]
|
||||||
|
DNS=$dns_servers
|
||||||
|
FallbackDNS=9.9.9.9 149.112.112.112
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Ensure network interfaces don't override our DNS settings
|
||||||
|
for file in /etc/systemd/network/*.network; do
|
||||||
|
[[ -f "$file" ]] || continue
|
||||||
|
if ! grep -q "^\[DHCPv4\]" "$file"; then continue; fi
|
||||||
|
|
||||||
|
# Add UseDNS=no to DHCPv4 section if not present
|
||||||
|
if ! sed -n '/^\[DHCPv4\]/,/^\[/p' "$file" | grep -q "^UseDNS="; then
|
||||||
|
sudo sed -i '/^\[DHCPv4\]/a UseDNS=no' "$file"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Add UseDNS=no to IPv6AcceptRA section if present
|
||||||
|
if grep -q "^\[IPv6AcceptRA\]" "$file" && ! sed -n '/^\[IPv6AcceptRA\]/,/^\[/p' "$file" | grep -q "^UseDNS="; then
|
||||||
|
sudo sed -i '/^\[IPv6AcceptRA\]/a UseDNS=no' "$file"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
sudo systemctl restart systemd-networkd systemd-resolved
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
@@ -1,39 +1,127 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ "--remove" == "$1" ]]; then
|
set -e
|
||||||
echo -e "\e[32mLet's remove your Fido2 device from sudo authentication.\n\e[0m"
|
|
||||||
yay -Rns --noconfirm libfido2 pam-u2f
|
|
||||||
sudo rm -rf /etc/fido2
|
|
||||||
sudo sed -i '\|^auth[[:space:]]\+sufficient[[:space:]]\+pam_u2f\.so[[:space:]]\+cue[[:space:]]\+authfile=/etc/fido2/fido2$|d' /etc/pam.d/sudo
|
|
||||||
echo -e "\e[32m\nYou've successfully removed the fido2 device setup.\e[0m"
|
|
||||||
else
|
|
||||||
echo -e "\e[32mLet's setup your Fido2 device for sudo authentication.\n\e[0m"
|
|
||||||
yay -S --noconfirm --needed libfido2 pam-u2f
|
|
||||||
|
|
||||||
tokens=$(fido2-token -L)
|
GREEN='\033[0;32m'
|
||||||
|
RED='\033[0;31m'
|
||||||
|
YELLOW='\033[1;33m'
|
||||||
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
print_success() {
|
||||||
|
echo -e "${GREEN}$1${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
print_error() {
|
||||||
|
echo -e "${RED}$1${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
print_info() {
|
||||||
|
echo -e "${YELLOW}$1${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
check_fido2_hardware() {
|
||||||
|
tokens=$(fido2-token -L 2>/dev/null)
|
||||||
if [ -z "$tokens" ]; then
|
if [ -z "$tokens" ]; then
|
||||||
echo -e "\e[31m\nNo fido2 device detected. Plug it in, you may have to unlock it as well\e[0m"
|
print_error "\nNo FIDO2 device detected. Please plug it in (you may need to unlock it as well)."
|
||||||
else
|
return 1
|
||||||
# Create the pamu2fcfg file
|
|
||||||
if [ ! -f /etc/fido2/fido2 ]; then
|
|
||||||
sudo mkdir -p /etc/fido2
|
|
||||||
echo -e "\e[32m\nLet's setup your device by confirming on the device now.\e[0m"
|
|
||||||
pamu2fcfg >/tmp/fido2 # This needs to run as the user
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo -e "\e[31m\nSomething went wrong. Maybe try again?\e[0m"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
sudo mv /tmp/fido2 /etc/fido2/fido2
|
|
||||||
fi
|
fi
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
# Add fido2 auth as an option for sudo
|
setup_pam_config() {
|
||||||
|
# Configure sudo
|
||||||
if ! grep -q pam_u2f.so /etc/pam.d/sudo; then
|
if ! grep -q pam_u2f.so /etc/pam.d/sudo; then
|
||||||
|
print_info "Configuring sudo for FIDO2 authentication..."
|
||||||
sudo sed -i '1i auth sufficient pam_u2f.so cue authfile=/etc/fido2/fido2' /etc/pam.d/sudo
|
sudo sed -i '1i auth sufficient pam_u2f.so cue authfile=/etc/fido2/fido2' /etc/pam.d/sudo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! sudo echo -e "\e[32m\nPerfect! Now you can use your fido2 device for sudo.\e[0m"; then
|
# Configure polkit
|
||||||
echo -e "\e[31m\nSomething went wrong. Maybe try again?\e[0m"
|
if [ -f /etc/pam.d/polkit-1 ] && ! grep -q 'pam_u2f.so' /etc/pam.d/polkit-1; then
|
||||||
|
print_info "Configuring polkit for FIDO2 authentication..."
|
||||||
|
sudo sed -i '1i auth sufficient pam_u2f.so cue authfile=/etc/fido2/fido2' /etc/pam.d/polkit-1
|
||||||
|
elif [ ! -f /etc/pam.d/polkit-1 ]; then
|
||||||
|
print_info "Creating polkit configuration with FIDO2 authentication..."
|
||||||
|
sudo tee /etc/pam.d/polkit-1 >/dev/null <<'EOF'
|
||||||
|
auth sufficient pam_u2f.so cue authfile=/etc/fido2/fido2
|
||||||
|
auth required pam_unix.so
|
||||||
|
|
||||||
|
account required pam_unix.so
|
||||||
|
password required pam_unix.so
|
||||||
|
session required pam_unix.so
|
||||||
|
EOF
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
remove_pam_config() {
|
||||||
|
# Remove from sudo
|
||||||
|
if grep -q pam_u2f.so /etc/pam.d/sudo; then
|
||||||
|
print_info "Removing FIDO2 authentication from sudo..."
|
||||||
|
sudo sed -i '/pam_u2f\.so/d' /etc/pam.d/sudo
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove from polkit
|
||||||
|
if [ -f /etc/pam.d/polkit-1 ] && grep -Fq 'pam_u2f.so' /etc/pam.d/polkit-1; then
|
||||||
|
print_info "Removing FIDO2 authentication from polkit..."
|
||||||
|
sudo sed -i '/pam_u2f\.so/d' /etc/pam.d/polkit-1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ "--remove" == "$1" ]]; then
|
||||||
|
print_success "Removing FIDO2 device from authentication.\n"
|
||||||
|
|
||||||
|
# Remove PAM configuration
|
||||||
|
remove_pam_config
|
||||||
|
|
||||||
|
# Remove FIDO2 configuration
|
||||||
|
if [ -d /etc/fido2 ]; then
|
||||||
|
print_info "Removing FIDO2 configuration..."
|
||||||
|
sudo rm -rf /etc/fido2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Uninstall packages
|
||||||
|
print_info "Removing FIDO2 packages..."
|
||||||
|
sudo pacman -Rns --noconfirm libfido2 pam-u2f
|
||||||
|
|
||||||
|
print_success "FIDO2 authentication has been completely removed."
|
||||||
|
else
|
||||||
|
print_success "Setting up FIDO2 device for authentication.\n"
|
||||||
|
|
||||||
|
# Install required packages
|
||||||
|
print_info "Installing required packages..."
|
||||||
|
sudo pacman -S --noconfirm --needed libfido2 pam-u2f
|
||||||
|
|
||||||
|
if ! check_fido2_hardware; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create the pamu2fcfg file
|
||||||
|
if [ ! -f /etc/fido2/fido2 ]; then
|
||||||
|
sudo mkdir -p /etc/fido2
|
||||||
|
print_success "\nLet's setup your device by confirming on the device now."
|
||||||
|
print_info "Touch your FIDO2 key when it lights up...\n"
|
||||||
|
|
||||||
|
if pamu2fcfg >/tmp/fido2; then
|
||||||
|
sudo mv /tmp/fido2 /etc/fido2/fido2
|
||||||
|
print_success "FIDO2 device registered successfully!"
|
||||||
|
else
|
||||||
|
print_error "\nFIDO2 registration failed. Please try again."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
print_info "FIDO2 device already registered."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Configure PAM
|
||||||
|
setup_pam_config
|
||||||
|
|
||||||
|
# Test with sudo
|
||||||
|
print_info "\nTesting FIDO2 authentication with sudo..."
|
||||||
|
print_info "Touch your FIDO2 key when prompted.\n"
|
||||||
|
|
||||||
|
if sudo echo "FIDO2 authentication test successful"; then
|
||||||
|
print_success "\nPerfect! FIDO2 authentication is now configured."
|
||||||
|
print_info "You can use your FIDO2 key for sudo and polkit authentication."
|
||||||
|
else
|
||||||
|
print_error "\nVerification failed. You may want to check your configuration."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,45 +1,112 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ "--remove" == "$1" ]]; then
|
set -e
|
||||||
echo -e "\e[32mLet's remove your fingerprint scanner from authentication.\n\e[0m"
|
|
||||||
yay -Rns --noconfirm fprintd
|
|
||||||
sudo rm -rf /etc/pam.d/polkit-1
|
|
||||||
sudo sed -i '/pam_fprintd\.so/d' /etc/pam.d/sudo
|
|
||||||
echo -e "\e[32mYou've successfully removed the fingerprint setup.\e[0m"
|
|
||||||
else
|
|
||||||
echo -e "\e[32mLet's setup your fingerprint scanner for authentication.\n\e[0m"
|
|
||||||
yay -S --noconfirm --needed fprintd usbutils
|
|
||||||
|
|
||||||
if ! lsusb | grep -Eiq 'fingerprint|synaptics|goodix|elan'; then
|
GREEN='\033[0;32m'
|
||||||
echo -e "\e[31m\nNo fingerprint sensor detected.\e[0m"
|
RED='\033[0;31m'
|
||||||
else
|
YELLOW='\033[1;33m'
|
||||||
# Add fingerprint authentication as an option for sudo
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
print_success() {
|
||||||
|
echo -e "${GREEN}$1${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
print_error() {
|
||||||
|
echo -e "${RED}$1${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
print_info() {
|
||||||
|
echo -e "${YELLOW}$1${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
|
check_fingerprint_hardware() {
|
||||||
|
if ! lsusb | grep -Eiq 'fingerprint|synaptics|goodix|elan|validity'; then
|
||||||
|
print_error "\nNo fingerprint sensor detected."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
setup_pam_config() {
|
||||||
|
# Configure sudo
|
||||||
if ! grep -q pam_fprintd.so /etc/pam.d/sudo; then
|
if ! grep -q pam_fprintd.so /etc/pam.d/sudo; then
|
||||||
|
print_info "Configuring sudo for fingerprint authentication..."
|
||||||
sudo sed -i '1i auth sufficient pam_fprintd.so' /etc/pam.d/sudo
|
sudo sed -i '1i auth sufficient pam_fprintd.so' /etc/pam.d/sudo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add fingerprint authentication as an option for hyprpolkitagent
|
# Configure polkit
|
||||||
if [ ! -f /etc/pam.d/polkit-1 ] || ! grep -q pam_fprintd.so /etc/pam.d/polkit-1; then
|
if [ -f /etc/pam.d/polkit-1 ] && ! grep -q 'pam_fprintd.so' /etc/pam.d/polkit-1; then
|
||||||
|
print_info "Configuring polkit for fingerprint authentication..."
|
||||||
|
sudo sed -i '1i auth sufficient pam_fprintd.so' /etc/pam.d/polkit-1
|
||||||
|
elif [ ! -f /etc/pam.d/polkit-1 ]; then
|
||||||
|
print_info "Creating polkit configuration with fingerprint authentication..."
|
||||||
sudo tee /etc/pam.d/polkit-1 >/dev/null <<'EOF'
|
sudo tee /etc/pam.d/polkit-1 >/dev/null <<'EOF'
|
||||||
|
auth sufficient pam_fprintd.so
|
||||||
auth required pam_unix.so
|
auth required pam_unix.so
|
||||||
auth optional pam_fprintd.so
|
|
||||||
|
|
||||||
account required pam_unix.so
|
account required pam_unix.so
|
||||||
password required pam_unix.so
|
password required pam_unix.so
|
||||||
session required pam_unix.so
|
session required pam_unix.so
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Enroll the first finger
|
remove_pam_config() {
|
||||||
echo -e "\e[32m\nLet's setup your right index finger as the first fingerprint.\nKeep moving the finger around on sensor until the process completes.\n\e[0m"
|
# Remove from sudo
|
||||||
sudo fprintd-enroll $USER
|
if grep -q pam_fprintd.so /etc/pam.d/sudo; then
|
||||||
|
print_info "Removing fingerprint authentication from sudo..."
|
||||||
echo -e "\e[32m\nNow let's verify that it's working correctly.\e[0m\n"
|
sudo sed -i '/pam_fprintd\.so/d' /etc/pam.d/sudo
|
||||||
|
|
||||||
if fprintd-verify; then
|
|
||||||
echo -e "\e[32m\nPerfect! Now you can use your fingerprint on the lock screen (Super + Escape).\e[0m"
|
|
||||||
else
|
|
||||||
echo -e "\e[31m\nSomething went wrong. Maybe try again?\e[0m"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove from polkit
|
||||||
|
if [ -f /etc/pam.d/polkit-1 ] && grep -Fq 'pam_fprintd.so' /etc/pam.d/polkit-1; then
|
||||||
|
print_info "Removing fingerprint authentication from polkit..."
|
||||||
|
sudo sed -i '/pam_fprintd\.so/d' /etc/pam.d/polkit-1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ "--remove" == "$1" ]]; then
|
||||||
|
print_success "Removing fingerprint scanner from authentication.\n"
|
||||||
|
|
||||||
|
# Remove PAM configuration
|
||||||
|
remove_pam_config
|
||||||
|
|
||||||
|
# Uninstall packages
|
||||||
|
print_info "Removing fingerprint packages..."
|
||||||
|
sudo pacman -Rns --noconfirm fprintd
|
||||||
|
|
||||||
|
print_success "Fingerprint authentication has been completely removed."
|
||||||
|
else
|
||||||
|
print_success "Setting up fingerprint scanner for authentication.\n"
|
||||||
|
|
||||||
|
# Install required packages
|
||||||
|
print_info "Installing required packages..."
|
||||||
|
sudo pacman -S --noconfirm --needed fprintd usbutils
|
||||||
|
|
||||||
|
if ! check_fingerprint_hardware; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Configure PAM
|
||||||
|
setup_pam_config
|
||||||
|
|
||||||
|
# Enroll first fingerprint
|
||||||
|
print_success "\nLet's setup your right index finger as the first fingerprint."
|
||||||
|
print_info "Keep moving the finger around on sensor until the process completes.\n"
|
||||||
|
|
||||||
|
if sudo fprintd-enroll "$USER"; then
|
||||||
|
print_success "\nFingerprint enrolled successfully!"
|
||||||
|
|
||||||
|
# Verify
|
||||||
|
print_info "\nNow let's verify that it's working correctly.\n"
|
||||||
|
if fprintd-verify; then
|
||||||
|
print_success "\nPerfect! Fingerprint authentication is now configured."
|
||||||
|
print_info "You can use your fingerprint for sudo, polkit, and lock screen (Super + Escape)."
|
||||||
|
else
|
||||||
|
print_error "\nVerification failed. You may want to try enrolling again."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
print_error "\nEnrollment failed. Please try again."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ if [[ -z $COMMAND ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! command -v snapper &>/dev/null; then
|
||||||
|
exit 127 # omarchy-update can use this to just ignore if snapper is not available
|
||||||
|
fi
|
||||||
|
|
||||||
case "$COMMAND" in
|
case "$COMMAND" in
|
||||||
create)
|
create)
|
||||||
DESC="$(omarchy-version)"
|
DESC="$(omarchy-version)"
|
||||||
|
|||||||
@@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Status indicator daemon for waybar
|
|
||||||
# Calls individual status scripts and caches results
|
|
||||||
|
|
||||||
STATE_DIR="/tmp/omarchy-status"
|
|
||||||
DAEMON_PID_FILE="$STATE_DIR/daemon.pid"
|
|
||||||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
|
|
||||||
|
|
||||||
mkdir -p "$STATE_DIR"
|
|
||||||
|
|
||||||
# Update all status files by calling individual scripts
|
|
||||||
update_all_status_files() {
|
|
||||||
"$SCRIPT_DIR/omarchy-status-dnd" > "$STATE_DIR/dnd"
|
|
||||||
"$SCRIPT_DIR/omarchy-status-nightlight" > "$STATE_DIR/nightlight"
|
|
||||||
"$SCRIPT_DIR/omarchy-status-recording" > "$STATE_DIR/recording"
|
|
||||||
"$SCRIPT_DIR/omarchy-status-idle" > "$STATE_DIR/idle"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Generate hash for change detection
|
|
||||||
get_status_hash() {
|
|
||||||
echo "$(pgrep -c "mako|hyprsunset|wl-screenrec|wf-recorder|obs|hypridle" 2>/dev/null)$(makoctl mode 2>/dev/null | grep -c 'do-not-disturb')$(hyprctl hyprsunset temperature 2>/dev/null)"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Start background monitoring daemon
|
|
||||||
start_daemon() {
|
|
||||||
if [ -f "$DAEMON_PID_FILE" ] && kill -0 $(cat "$DAEMON_PID_FILE") 2>/dev/null; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
{
|
|
||||||
last_hash=""
|
|
||||||
while true; do
|
|
||||||
current_hash=$(get_status_hash)
|
|
||||||
|
|
||||||
if [ "$current_hash" != "$last_hash" ]; then
|
|
||||||
update_all_status_files
|
|
||||||
last_hash="$current_hash"
|
|
||||||
fi
|
|
||||||
|
|
||||||
sleep 0.5
|
|
||||||
done
|
|
||||||
} &
|
|
||||||
|
|
||||||
echo $! > "$DAEMON_PID_FILE"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Main execution
|
|
||||||
MODULE="$1"
|
|
||||||
|
|
||||||
if [ -z "$MODULE" ]; then
|
|
||||||
echo "Usage: $0 [dnd|nightlight|recording|idle]"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
start_daemon
|
|
||||||
|
|
||||||
# Return cached status for requested module
|
|
||||||
if [ -f "$STATE_DIR/$MODULE" ]; then
|
|
||||||
cat "$STATE_DIR/$MODULE"
|
|
||||||
else
|
|
||||||
update_all_status_files
|
|
||||||
cat "$STATE_DIR/$MODULE" 2>/dev/null || echo '{"text": "", "tooltip": "", "class": "hidden"}'
|
|
||||||
fi
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# DND status indicator
|
|
||||||
|
|
||||||
if makoctl mode 2>/dev/null | grep -q 'do-not-disturb'; then
|
|
||||||
echo '{"text": "", "tooltip": "Notifications silenced", "class": "status-dnd"}'
|
|
||||||
else
|
|
||||||
echo '{"text": "", "tooltip": "", "class": "hidden"}'
|
|
||||||
fi
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Idle lock status indicator
|
|
||||||
|
|
||||||
if command -v hypridle >/dev/null 2>&1 && ! pgrep -x hypridle >/dev/null 2>&1; then
|
|
||||||
echo '{"text": "", "tooltip": "Idle lock disabled", "class": "status-idle"}'
|
|
||||||
else
|
|
||||||
echo '{"text": "", "tooltip": "", "class": "hidden"}'
|
|
||||||
fi
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Nightlight status indicator
|
|
||||||
|
|
||||||
if pgrep -x hyprsunset >/dev/null 2>&1; then
|
|
||||||
temp=$(hyprctl hyprsunset temperature 2>/dev/null | grep -oE '[0-9]+')
|
|
||||||
if [ -n "$temp" ] && [ "$temp" -lt 6000 ]; then
|
|
||||||
echo '{"text": "", "tooltip": "Night light active", "class": "status-nightlight"}'
|
|
||||||
else
|
|
||||||
echo '{"text": "", "tooltip": "", "class": "hidden"}'
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo '{"text": "", "tooltip": "", "class": "hidden"}'
|
|
||||||
fi
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Recording status indicator
|
|
||||||
|
|
||||||
if pgrep -x wl-screenrec >/dev/null 2>&1 || \
|
|
||||||
pgrep -x wf-recorder >/dev/null 2>&1 || \
|
|
||||||
pgrep -x obs >/dev/null 2>&1 || \
|
|
||||||
pgrep -f "ffmpeg.*(x11grab|gdigrab|avfoundation)" >/dev/null 2>&1; then
|
|
||||||
echo '{"text": "", "tooltip": "Screen recording active", "class": "status-recording"}'
|
|
||||||
else
|
|
||||||
echo '{"text": "", "tooltip": "", "class": "hidden"}'
|
|
||||||
fi
|
|
||||||
@@ -40,11 +40,19 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Change Chromium colors
|
# Change Chromium colors
|
||||||
if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]] && command -v chromium &>/dev/null; then
|
if command -v chromium &>/dev/null; then
|
||||||
|
if [[ -f ~/.config/omarchy/current/theme/light.mode ]]; then
|
||||||
|
chromium --no-startup-window --set-color-scheme="light"
|
||||||
|
else
|
||||||
|
chromium --no-startup-window --set-color-scheme="dark"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]]; then
|
||||||
chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)"
|
chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)"
|
||||||
else
|
else
|
||||||
# Use a default, neutral grey if theme doesn't have a color
|
# Use a default, neutral grey if theme doesn't have a color
|
||||||
chromium --no-startup-window --set-theme-color="28,32,39"
|
chromium --no-startup-window --set-theme-color="28,32,39"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Trigger alacritty config reload
|
# Trigger alacritty config reload
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
ICON_DIR="$HOME/.local/share/applications/icons"
|
ICON_DIR="$HOME/.local/share/applications/icons"
|
||||||
DESKTOP_DIR="$HOME/.local/share/applications/"
|
DESKTOP_DIR="$HOME/.local/share/applications/"
|
||||||
|
|
||||||
if [ "$#" -ne 1 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
# Find all web apps
|
# Find all TUIs
|
||||||
while IFS= read -r -d '' file; do
|
while IFS= read -r -d '' file; do
|
||||||
if grep -q '^Exec=.*alacritty.*-e' "$file"; then
|
if grep -q '^Exec=.*alacritty.*-e' "$file"; then
|
||||||
TUIS+=("$(basename "${file%.desktop}")")
|
TUIS+=("$(basename "${file%.desktop}")")
|
||||||
@@ -14,23 +14,28 @@ if [ "$#" -ne 1 ]; then
|
|||||||
if ((${#TUIS[@]})); then
|
if ((${#TUIS[@]})); then
|
||||||
IFS=$'\n' SORTED_TUIS=($(sort <<<"${TUIS[*]}"))
|
IFS=$'\n' SORTED_TUIS=($(sort <<<"${TUIS[*]}"))
|
||||||
unset IFS
|
unset IFS
|
||||||
APP_NAME=$(gum choose --header "Select TUI to remove..." "${SORTED_TUIS[@]}")
|
APP_NAMES_STRING=$(gum choose --no-limit --header "Select TUI to remove..." --selected-prefix="✗ " "${SORTED_TUIS[@]}")
|
||||||
|
# Convert newline-separated string to array
|
||||||
|
APP_NAMES=()
|
||||||
|
while IFS= read -r line; do
|
||||||
|
[[ -n "$line" ]] && APP_NAMES+=("$line")
|
||||||
|
done <<< "$APP_NAMES_STRING"
|
||||||
else
|
else
|
||||||
echo "No TUIs to remove."
|
echo "No TUIs to remove."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
APP_NAME="$1"
|
# Use array to preserve spaces in app names
|
||||||
|
APP_NAMES=("$@")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$APP_NAME" ]]; then
|
if [[ ${#APP_NAMES[@]} -eq 0 ]]; then
|
||||||
echo "You must provide TUI name."
|
echo "You must provide TUI names."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm "$DESKTOP_DIR/$APP_NAME.desktop"
|
for APP_NAME in "${APP_NAMES[@]}"; do
|
||||||
rm "$ICON_DIR/$APP_NAME.png"
|
rm -f "$DESKTOP_DIR/$APP_NAME.desktop"
|
||||||
|
rm -f "$ICON_DIR/$APP_NAME.png"
|
||||||
if [ "$#" -ne 1 ]; then
|
echo "Removed $APP_NAME"
|
||||||
echo -e "Removed $APP_NAME\n"
|
done
|
||||||
fi
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
omarchy-snapshot create
|
omarchy-snapshot create || [ $? -eq 127 ]
|
||||||
omarchy-update-git
|
omarchy-update-git
|
||||||
omarchy-migrate
|
omarchy-migrate
|
||||||
omarchy-update-system-pkgs
|
omarchy-update-system-pkgs
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Check for kernel package updates since last boot
|
if [ "$(uname -r | sed 's/-arch/\.arch/')" != "$(pacman -Q linux | awk '{print $2}')" ]; then
|
||||||
boot_time=$(date -d "$(uptime -s)" '+%Y-%m-%d %H:%M')
|
|
||||||
recent_kernel_updates=$(awk -v boot_time="$boot_time" '$0 >="["boot_time' /var/log/pacman.log | grep -E "\[ALPM\] (upgraded|installed) (linux|linux-zen|linux-lts|linux-hardened)\b" || true)
|
|
||||||
if [ -n "$recent_kernel_updates" ]; then
|
|
||||||
gum confirm "Linux kernel has been updated. Reboot?" && omarchy-state clear re*-required && sudo reboot now
|
gum confirm "Linux kernel has been updated. Reboot?" && omarchy-state clear re*-required && sudo reboot now
|
||||||
|
|
||||||
elif [ -f "$HOME/.local/state/omarchy/reboot-required" ]; then
|
elif [ -f "$HOME/.local/state/omarchy/reboot-required" ]; then
|
||||||
|
|||||||
@@ -1,5 +1,23 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo -e "\e[32m\nUpdate system packages\e[0m"
|
echo -e "\e[32m\nUpdate system packages\e[0m"
|
||||||
yay -Syu --noconfirm
|
echo "sudo pacman -Syu --noconfirm --ignore \"$(omarchy-pkg-ignored)\""
|
||||||
echo
|
sudo pacman -Syu --noconfirm --ignore "$(omarchy-pkg-ignored)"
|
||||||
|
|
||||||
|
if omarchy-pkg-aur-accessible; then
|
||||||
|
echo -e "\e[32m\nUpdate AUR packages\e[0m"
|
||||||
|
yay -Syu --noconfirm
|
||||||
|
echo
|
||||||
|
else
|
||||||
|
echo -e "\e[31m\nAUR is unavailable (so skipping updates)\e[0m"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
orphans=$(pacman -Qtdq)
|
||||||
|
if [[ -n $orphans ]]; then
|
||||||
|
echo -e "\e[32m\nRemove orphan system packages\e[0m"
|
||||||
|
for pkg in $orphans; do
|
||||||
|
sudo pacman -Rs --noconfirm "$pkg" || true
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
ICON_DIR="$HOME/.local/share/applications/icons"
|
ICON_DIR="$HOME/.local/share/applications/icons"
|
||||||
DESKTOP_DIR="$HOME/.local/share/applications/"
|
DESKTOP_DIR="$HOME/.local/share/applications/"
|
||||||
|
|
||||||
if [ "$#" -ne 1 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
# Find all web apps
|
# Find all web apps
|
||||||
while IFS= read -r -d '' file; do
|
while IFS= read -r -d '' file; do
|
||||||
if grep -q '^Exec=.*omarchy-launch-webapp.*' "$file"; then
|
if grep -q '^Exec=.*omarchy-launch-webapp.*' "$file"; then
|
||||||
@@ -14,23 +14,28 @@ if [ "$#" -ne 1 ]; then
|
|||||||
if ((${#WEB_APPS[@]})); then
|
if ((${#WEB_APPS[@]})); then
|
||||||
IFS=$'\n' SORTED_WEB_APPS=($(sort <<<"${WEB_APPS[*]}"))
|
IFS=$'\n' SORTED_WEB_APPS=($(sort <<<"${WEB_APPS[*]}"))
|
||||||
unset IFS
|
unset IFS
|
||||||
APP_NAME=$(gum choose --header "Select web app to remove..." "${SORTED_WEB_APPS[@]}")
|
APP_NAMES_STRING=$(gum choose --no-limit --header "Select web app to remove..." --selected-prefix="✗ " "${SORTED_WEB_APPS[@]}")
|
||||||
|
# Convert newline-separated string to array
|
||||||
|
APP_NAMES=()
|
||||||
|
while IFS= read -r line; do
|
||||||
|
[[ -n "$line" ]] && APP_NAMES+=("$line")
|
||||||
|
done <<< "$APP_NAMES_STRING"
|
||||||
else
|
else
|
||||||
echo "No web apps to remove."
|
echo "No web apps to remove."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
APP_NAME="$1"
|
# Use array to preserve spaces in app names
|
||||||
|
APP_NAMES=("$@")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$APP_NAME" ]]; then
|
if [[ ${#APP_NAMES[@]} -eq 0 ]]; then
|
||||||
echo "You must provide web app name."
|
echo "You must provide web app names."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm "$DESKTOP_DIR/$APP_NAME.desktop"
|
for APP_NAME in "${APP_NAMES[@]}"; do
|
||||||
rm "$ICON_DIR/$APP_NAME.png"
|
rm -f "$DESKTOP_DIR/$APP_NAME.desktop"
|
||||||
|
rm -f "$ICON_DIR/$APP_NAME.png"
|
||||||
if [ "$#" -ne 1 ]; then
|
echo "Removed $APP_NAME"
|
||||||
echo -e "Removed $APP_NAME\n"
|
done
|
||||||
fi
|
|
||||||
|
|||||||
5
boot.sh
5
boot.sh
@@ -23,8 +23,9 @@ echo -e "\nCloning Omarchy from: https://github.com/${OMARCHY_REPO}.git"
|
|||||||
rm -rf ~/.local/share/omarchy/
|
rm -rf ~/.local/share/omarchy/
|
||||||
git clone "https://github.com/${OMARCHY_REPO}.git" ~/.local/share/omarchy >/dev/null
|
git clone "https://github.com/${OMARCHY_REPO}.git" ~/.local/share/omarchy >/dev/null
|
||||||
|
|
||||||
# Use custom branch if instructed
|
# Use custom branch if instructed, otherwise default to master
|
||||||
if [[ -n "$OMARCHY_REF" ]]; then
|
OMARCHY_REF="${OMARCHY_REF:-master}"
|
||||||
|
if [[ $OMARCHY_REF != "master" ]]; then
|
||||||
echo -e "\eUsing branch: $OMARCHY_REF"
|
echo -e "\eUsing branch: $OMARCHY_REF"
|
||||||
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}"
|
||||||
|
|||||||
15
config/chromium/Default/Preferences
Normal file
15
config/chromium/Default/Preferences
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"extensions": {
|
||||||
|
"theme": {
|
||||||
|
"id": "",
|
||||||
|
"use_system": false,
|
||||||
|
"use_custom": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"browser": {
|
||||||
|
"theme": {
|
||||||
|
"color_scheme": 2,
|
||||||
|
"user_color": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -62,42 +62,15 @@
|
|||||||
"type": "custom",
|
"type": "custom",
|
||||||
"format": "\u001b[90m┌──────────────────────Software──────────────────────┐"
|
"format": "\u001b[90m┌──────────────────────Software──────────────────────┐"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "os",
|
|
||||||
"key": " OS",
|
|
||||||
"keyColor": "yellow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "kernel",
|
|
||||||
"key": "│ ├",
|
|
||||||
"keyColor": "yellow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "packages",
|
|
||||||
"key": "│ ├",
|
|
||||||
"keyColor": "yellow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "shell",
|
|
||||||
"key": "└ └",
|
|
||||||
"keyColor": "yellow"
|
|
||||||
},
|
|
||||||
"break",
|
|
||||||
{
|
{
|
||||||
"type": "command",
|
"type": "command",
|
||||||
"key": "│ ├Ø",
|
"key": "\ue900 OS",
|
||||||
"keyColor": "blue",
|
"keyColor": "blue",
|
||||||
"text": "version=$(git -C ~/.local/share/omarchy describe --tags --abbrev=0 2>/dev/null); echo \"Omarchy $version\""
|
"text": "version=$(git -C ~/.local/share/omarchy describe --tags --abbrev=0 2>/dev/null); echo \"Omarchy $version\""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "command",
|
"type": "kernel",
|
||||||
"key": "│ ├",
|
"key": "│ ├",
|
||||||
"keyColor": "blue",
|
|
||||||
"text": "theme=$(omarchy-theme-current); echo -e \"$theme \\e[38m●\\e[37m●\\e[36m●\\e[35m●\\e[34m●\\e[33m●\\e[32m●\\e[31m●\""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "de",
|
|
||||||
"key": " DE",
|
|
||||||
"keyColor": "blue"
|
"keyColor": "blue"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -105,29 +78,35 @@
|
|||||||
"key": "│ ├",
|
"key": "│ ├",
|
||||||
"keyColor": "blue"
|
"keyColor": "blue"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "de",
|
||||||
|
"key": " DE",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "terminal",
|
||||||
|
"key": "│ ├",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "packages",
|
||||||
|
"key": "│ ├",
|
||||||
|
"keyColor": "blue"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "wmtheme",
|
"type": "wmtheme",
|
||||||
"key": "│ ├",
|
"key": "│ ├",
|
||||||
"keyColor": "blue"
|
"keyColor": "blue"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "icons",
|
"type": "command",
|
||||||
"key": "│ ├",
|
"key": "│ ├",
|
||||||
"keyColor": "blue"
|
"keyColor": "blue",
|
||||||
},
|
"text": "theme=$(omarchy-theme-current); echo -e \"$theme \\e[38m●\\e[37m●\\e[36m●\\e[35m●\\e[34m●\\e[33m●\\e[32m●\\e[31m●\""
|
||||||
{
|
|
||||||
"type": "cursor",
|
|
||||||
"key": "│ ├",
|
|
||||||
"keyColor": "blue"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "terminalfont",
|
"type": "terminalfont",
|
||||||
"key": "│ ├",
|
"key": "└ └",
|
||||||
"keyColor": "blue"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "terminal",
|
|
||||||
"key": "└ └",
|
|
||||||
"keyColor": "blue"
|
"keyColor": "blue"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ general {
|
|||||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||||
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||||
on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking
|
on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking
|
||||||
|
inhibit_sleep = 3 # wait until screen is locked
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
|
|||||||
BIN
config/omarchy.ttf
Normal file
BIN
config/omarchy.ttf
Normal file
Binary file not shown.
@@ -4,15 +4,8 @@
|
|||||||
"position": "top",
|
"position": "top",
|
||||||
"spacing": 0,
|
"spacing": 0,
|
||||||
"height": 26,
|
"height": 26,
|
||||||
"modules-left": [
|
"modules-left": ["custom/omarchy", "hyprland/workspaces"],
|
||||||
"custom/omarchy",
|
"modules-center": ["clock", "custom/update"],
|
||||||
"hyprland/workspaces"
|
|
||||||
],
|
|
||||||
"modules-center": [
|
|
||||||
"group/status-cluster",
|
|
||||||
"clock",
|
|
||||||
"custom/update"
|
|
||||||
],
|
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"group/tray-expander",
|
"group/tray-expander",
|
||||||
"bluetooth",
|
"bluetooth",
|
||||||
@@ -46,7 +39,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"custom/omarchy": {
|
"custom/omarchy": {
|
||||||
"format": "",
|
"format": "<span font='omarchy'>\ue900</span>",
|
||||||
"on-click": "omarchy-menu",
|
"on-click": "omarchy-menu",
|
||||||
"tooltip-format": "Omarchy Menu\n\nSuper + Alt + Space"
|
"tooltip-format": "Omarchy Menu\n\nSuper + Alt + Space"
|
||||||
},
|
},
|
||||||
@@ -70,16 +63,16 @@
|
|||||||
"on-click-right": "omarchy-cmd-tzupdate"
|
"on-click-right": "omarchy-cmd-tzupdate"
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
"format-icons": ["","","","",""],
|
"format-icons": ["", "", "", "", ""],
|
||||||
"format" : "{icon}",
|
"format": "{icon}",
|
||||||
"format-wifi" : "{icon}",
|
"format-wifi": "{icon}",
|
||||||
"format-ethernet" : "",
|
"format-ethernet": "",
|
||||||
"format-disconnected" : "",
|
"format-disconnected": "",
|
||||||
"tooltip-format-wifi": "{essid} ({frequency} GHz)\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}",
|
"tooltip-format-wifi": "{essid} ({frequency} GHz)\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}",
|
||||||
"tooltip-format-ethernet": "⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}",
|
"tooltip-format-ethernet": "⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}",
|
||||||
"tooltip-format-disconnected": "Disconnected",
|
"tooltip-format-disconnected": "Disconnected",
|
||||||
"interval": 3,
|
"interval": 3,
|
||||||
"nospacing": 1,
|
"spacing": 1,
|
||||||
"on-click": "alacritty --class=Impala -e impala"
|
"on-click": "alacritty --class=Impala -e impala"
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
@@ -88,12 +81,8 @@
|
|||||||
"format-charging": "{icon}",
|
"format-charging": "{icon}",
|
||||||
"format-plugged": "",
|
"format-plugged": "",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"charging": [
|
"charging": ["", "", "", "", "", "", "", "", "", ""],
|
||||||
"", "", "", "", "", "", "", "", "", ""
|
"default": ["", "", "", "", "", "", "", "", "", ""]
|
||||||
],
|
|
||||||
"default": [
|
|
||||||
"", "", "", "", "", "", "", "", "", ""
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"format-full": "",
|
"format-full": "",
|
||||||
"tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%",
|
"tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%",
|
||||||
@@ -128,43 +117,7 @@
|
|||||||
"transition-duration": 600,
|
"transition-duration": 600,
|
||||||
"children-class": "tray-group-item"
|
"children-class": "tray-group-item"
|
||||||
},
|
},
|
||||||
"modules": [
|
"modules": ["custom/expand-icon", "tray"]
|
||||||
"custom/expand-icon",
|
|
||||||
"tray"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"group/status-cluster": {
|
|
||||||
"orientation": "inherit",
|
|
||||||
"modules": [
|
|
||||||
"custom/status-dnd",
|
|
||||||
"custom/status-nightlight",
|
|
||||||
"custom/status-recording",
|
|
||||||
"custom/status-idle"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"custom/status-dnd": {
|
|
||||||
"exec": "omarchy-status-daemon dnd",
|
|
||||||
"return-type": "json",
|
|
||||||
"interval": 1,
|
|
||||||
"on-click": "makoctl mode -t do-not-disturb"
|
|
||||||
},
|
|
||||||
"custom/status-nightlight": {
|
|
||||||
"exec": "omarchy-status-daemon nightlight",
|
|
||||||
"return-type": "json",
|
|
||||||
"interval": 1,
|
|
||||||
"on-click": "omarchy-toggle-nightlight"
|
|
||||||
},
|
|
||||||
"custom/status-recording": {
|
|
||||||
"exec": "omarchy-status-daemon recording",
|
|
||||||
"return-type": "json",
|
|
||||||
"interval": 1,
|
|
||||||
"on-click": "omarchy-cmd-screenrecord-stop"
|
|
||||||
},
|
|
||||||
"custom/status-idle": {
|
|
||||||
"exec": "omarchy-status-daemon idle",
|
|
||||||
"return-type": "json",
|
|
||||||
"interval": 1,
|
|
||||||
"on-click": "omarchy-toggle-idle"
|
|
||||||
},
|
},
|
||||||
"custom/expand-icon": {
|
"custom/expand-icon": {
|
||||||
"format": " ",
|
"format": " ",
|
||||||
|
|||||||
@@ -58,30 +58,6 @@ tooltip {
|
|||||||
margin-left: 8.75px;
|
margin-left: 8.75px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#group-status-cluster {
|
|
||||||
margin-right: 8.75px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-status-dnd,
|
|
||||||
#custom-status-nightlight,
|
|
||||||
#custom-status-recording,
|
|
||||||
#custom-status-idle {
|
|
||||||
min-width: 12px;
|
|
||||||
margin: 0 2px;
|
|
||||||
font-size: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-status-dnd.status-dnd,
|
|
||||||
#custom-status-nightlight.status-nightlight,
|
|
||||||
#custom-status-idle.status-idle {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-status-recording.status-recording {
|
|
||||||
color: #a55555;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# App-specific tweaks
|
# App-specific tweaks
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/pip.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/pip.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/chromium.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/browser.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/hyprshot.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/hyprshot.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
|
||||||
@@ -8,4 +8,3 @@ source = ~/.local/share/omarchy/default/hypr/apps/system.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/1password.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/1password.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/jetbrains.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/jetbrains.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/zoom.conf
|
|
||||||
13
default/hypr/apps/browser.conf
Normal file
13
default/hypr/apps/browser.conf
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Browser types
|
||||||
|
windowrule = tag +chromium-based-browser, class:([cC]hrom(e|ium)|[bB]rave-browser|Microsoft-edge|Vivaldi-stable)
|
||||||
|
windowrule = tag +firefox-based-browser, class:(Firefox|zen|librewolf)
|
||||||
|
|
||||||
|
# Force chromium-based browsers into a tile to deal with --app bug
|
||||||
|
windowrule = tile, tag:chromium-based-browser
|
||||||
|
|
||||||
|
# Only a subtle opacity change, but not for video sites
|
||||||
|
windowrule = opacity 1 0.97, tag:chromium-based-browser
|
||||||
|
windowrule = opacity 1 0.97, tag:firefox-based-browser
|
||||||
|
|
||||||
|
# Some video sites should never have opacity applied to them
|
||||||
|
windowrule = opacity 1.0 1.0, initialTitle:(youtube\.com_/|app\.zoom\.us_/wc/home)
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Force chromium into a tile to deal with --app bug
|
|
||||||
windowrule = tile, class:^(Chromium)$
|
|
||||||
|
|
||||||
# Only slight opacity when unfocused
|
|
||||||
windowrule = opacity 1 0.97, class:^(Chromium|chromium|google-chrome|google-chrome-unstable|Brave-browser|brave-browser)$
|
|
||||||
windowrule = opacity 1 1, initialTitle:^(youtube.com_/)$ # Youtube
|
|
||||||
@@ -4,7 +4,7 @@ windowrule = center, tag:floating-window
|
|||||||
windowrule = size 800 600, tag:floating-window
|
windowrule = size 800 600, tag:floating-window
|
||||||
|
|
||||||
windowrule = tag +floating-window, class:(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|com.gabm.satty|Omarchy|About|TUI.float)
|
windowrule = tag +floating-window, class:(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|com.gabm.satty|Omarchy|About|TUI.float)
|
||||||
windowrule = tag +floating-window, class:(xdg-desktop-portal-gtk|sublime_text), title:^(Open.*Files?|Save.*Files?|All Files|Save)
|
windowrule = tag +floating-window, class:(xdg-desktop-portal-gtk|sublime_text|DesktopEditors), title:^(Open.*Files?|Save.*Files?|Save.*As|All Files|Save)
|
||||||
|
|
||||||
# Fullscreen screensaver
|
# Fullscreen screensaver
|
||||||
windowrule = fullscreen, class:Screensaver
|
windowrule = fullscreen, class:Screensaver
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
windowrule = opacity 1 1, class:Zoom Workplace
|
|
||||||
|
|
||||||
@@ -6,7 +6,4 @@ exec-once = uwsm app -- swaybg -i ~/.config/omarchy/current/background -m fill
|
|||||||
exec-once = uwsm app -- swayosd-server
|
exec-once = uwsm app -- swayosd-server
|
||||||
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||||
exec-once = wl-clip-persist --clipboard regular --all-mime-type-regex '^(?!x-kde-passwordManagerHint).+'
|
exec-once = wl-clip-persist --clipboard regular --all-mime-type-regex '^(?!x-kde-passwordManagerHint).+'
|
||||||
|
exec-once = omarchy-cmd-first-run
|
||||||
# FIXME: Reenable the walker service once the memory leak has been fixed
|
|
||||||
# See https://github.com/basecamp/omarchy/issues/698
|
|
||||||
# exec-once = uwsm app -- walker --gapplication-service
|
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ bindd = SUPER SHIFT, code:18, Move window to workspace 9, movetoworkspace, 9
|
|||||||
bindd = SUPER SHIFT, code:19, Move window to workspace 10, movetoworkspace, 10
|
bindd = SUPER SHIFT, code:19, Move window to workspace 10, movetoworkspace, 10
|
||||||
|
|
||||||
# Tab between workspaces
|
# Tab between workspaces
|
||||||
bind = SUPER, TAB, workspace, e+1
|
bindd = SUPER, TAB, Next workspace, workspace, e+1
|
||||||
bind = SUPER SHIFT, TAB, workspace, e-1
|
bindd = SUPER SHIFT, TAB, Previous workspace, workspace, e-1
|
||||||
|
|
||||||
# Swap active window with the one next to it with SUPER + SHIFT + arrow keys
|
# Swap active window with the one next to it with SUPER + SHIFT + arrow keys
|
||||||
bindd = SUPER SHIFT, left, Swap window to the left, swapwindow, l
|
bindd = SUPER SHIFT, left, Swap window to the left, swapwindow, l
|
||||||
@@ -55,10 +55,10 @@ bindd = ALT, Tab, Reveal active window on top, bringactivetotop
|
|||||||
bindd = ALT SHIFT, Tab, Reveal active window on top, bringactivetotop
|
bindd = ALT SHIFT, Tab, Reveal active window on top, bringactivetotop
|
||||||
|
|
||||||
# Resize active window
|
# Resize active window
|
||||||
bindd = SUPER, minus, Expand window left, resizeactive, -100 0
|
bindd = SUPER, code:20, Expand window left, resizeactive, -100 0 # - key
|
||||||
bindd = SUPER, equal, Shrink window left, resizeactive, 100 0
|
bindd = SUPER, code:21, Shrink window left, resizeactive, 100 0 # = key
|
||||||
bindd = SUPER SHIFT, minus, Shrink window up, resizeactive, 0 -100
|
bindd = SUPER SHIFT, code:20, Shrink window up, resizeactive, 0 -100
|
||||||
bindd = SUPER SHIFT, equal, Expand window down, resizeactive, 0 100
|
bindd = SUPER SHIFT, code:21, Expand window down, resizeactive, 0 100
|
||||||
|
|
||||||
# Scroll through existing workspaces with SUPER + scroll
|
# Scroll through existing workspaces with SUPER + scroll
|
||||||
bindd = SUPER, mouse_down, Scroll active workspace forward, workspace, e+1
|
bindd = SUPER, mouse_down, Scroll active workspace forward, workspace, e+1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Menus
|
# Menus
|
||||||
bindd = SUPER, SPACE, Launch apps, exec, walker -p "Start…"
|
bindd = SUPER, SPACE, Launch apps, exec, walker -p "Start…"
|
||||||
bindd = SUPER CTRL, E, Show clipboard, exec, walker -m Emojis
|
bindd = SUPER CTRL, E, Emoji picker, exec, walker -m Emojis
|
||||||
bindd = SUPER ALT, SPACE, Omarchy menu, exec, omarchy-menu
|
bindd = SUPER ALT, SPACE, Omarchy menu, exec, omarchy-menu
|
||||||
bindd = SUPER, ESCAPE, Power menu, exec, omarchy-menu system
|
bindd = SUPER, ESCAPE, Power menu, exec, omarchy-menu system
|
||||||
bindld = , XF86PowerOff, Power menu, exec, omarchy-menu system
|
bindld = , XF86PowerOff, Power menu, exec, omarchy-menu system
|
||||||
|
|||||||
140
install.sh
140
install.sh
@@ -1,128 +1,68 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Exit immediately if a command exits with a non-zero status
|
# Exit immediately if a command exits with a non-zero status
|
||||||
set -e
|
set -eE
|
||||||
|
|
||||||
export PATH="$HOME/.local/share/omarchy/bin:$PATH"
|
export PATH="$HOME/.local/share/omarchy/bin:$PATH"
|
||||||
OMARCHY_INSTALL=~/.local/share/omarchy/install
|
OMARCHY_INSTALL=~/.local/share/omarchy/install
|
||||||
|
|
||||||
# Give people a chance to retry running the installation
|
# Preparation
|
||||||
catch_errors() {
|
source $OMARCHY_INSTALL/preflight/show-env.sh
|
||||||
echo -e "\n\e[31mOmarchy installation failed!\e[0m"
|
source $OMARCHY_INSTALL/preflight/trap-errors.sh
|
||||||
echo "The failing command was: \`$BASH_COMMAND\` (exit code: $?)"
|
|
||||||
echo "See your installation log: ~/.local/state/omarchy/installation.log"
|
|
||||||
echo
|
|
||||||
echo "Get help from the community via QR code or at https://discord.gg/tXFUdasqhY"
|
|
||||||
echo " "
|
|
||||||
echo " █▀▀▀▀▀█ ▄ ▄ ▀▄▄▄█ █▀▀▀▀▀█ "
|
|
||||||
echo " █ ███ █ ▄▄▄▄▀▄▀▄▀ █ ███ █ "
|
|
||||||
echo " █ ▀▀▀ █ ▄█ ▄█▄▄▀ █ ▀▀▀ █ "
|
|
||||||
echo " ▀▀▀▀▀▀▀ ▀▄█ █ █ █ ▀▀▀▀▀▀▀ "
|
|
||||||
echo " ▀▀█▀▀▄▀▀▀▀▄█▀▀█ ▀ █ ▀ █ "
|
|
||||||
echo " █▄█ ▄▄▀▄▄ ▀ ▄ ▀█▄▄▄▄ ▀ ▀█ "
|
|
||||||
echo " ▄ ▄▀█ ▀▄▀▀▀▄ ▄█▀▄█▀▄▀▄▀█▀ "
|
|
||||||
echo " █ ▄▄█▄▀▄█ ▄▄▄ ▀ ▄▀██▀ ▀█ "
|
|
||||||
echo " ▀ ▀ ▀ █ ▀▄ ▀▀█▀▀▀█▄▀ "
|
|
||||||
echo " █▀▀▀▀▀█ ▀█ ▄▀▀ █ ▀ █▄▀██ "
|
|
||||||
echo " █ ███ █ █▀▄▄▀ █▀███▀█▄██▄ "
|
|
||||||
echo " █ ▀▀▀ █ ██ ▀ █▄█ ▄▄▄█▀ █ "
|
|
||||||
echo " ▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀ ▀ ▀▀▀▀▀▀ "
|
|
||||||
echo " "
|
|
||||||
|
|
||||||
if [[ -n $OMARCHY_BARE ]]; then
|
|
||||||
echo "You can retry by running: OMARCHY_BARE=true bash ~/.local/share/omarchy/install.sh"
|
|
||||||
else
|
|
||||||
echo "You can retry by running: bash ~/.local/share/omarchy/install.sh"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
trap catch_errors ERR
|
|
||||||
|
|
||||||
show_logo() {
|
|
||||||
clear
|
|
||||||
tte -i ~/.local/share/omarchy/logo.txt --frame-rate ${2:-120} ${1:-expand}
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
|
||||||
show_subtext() {
|
|
||||||
echo "$1" | tte --frame-rate ${3:-640} ${2:-wipe}
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
|
||||||
# Start logging
|
|
||||||
source $OMARCHY_INSTALL/log/before-install.sh
|
|
||||||
|
|
||||||
# Install prerequisites
|
|
||||||
source $OMARCHY_INSTALL/preflight/chroot.sh
|
|
||||||
source $OMARCHY_INSTALL/preflight/mirrorlist.sh
|
|
||||||
source $OMARCHY_INSTALL/preflight/gum.sh
|
|
||||||
source $OMARCHY_INSTALL/preflight/guard.sh
|
source $OMARCHY_INSTALL/preflight/guard.sh
|
||||||
source $OMARCHY_INSTALL/preflight/aur.sh
|
source $OMARCHY_INSTALL/preflight/chroot.sh
|
||||||
source $OMARCHY_INSTALL/preflight/tte.sh
|
source $OMARCHY_INSTALL/preflight/repositories.sh
|
||||||
source $OMARCHY_INSTALL/preflight/migrations.sh
|
source $OMARCHY_INSTALL/preflight/migrations.sh
|
||||||
|
source $OMARCHY_INSTALL/preflight/first-run-mode.sh
|
||||||
|
|
||||||
|
# Packaging
|
||||||
|
source $OMARCHY_INSTALL/packages.sh
|
||||||
|
source $OMARCHY_INSTALL/packaging/asdcontrol.sh
|
||||||
|
source $OMARCHY_INSTALL/packaging/fonts.sh
|
||||||
|
source $OMARCHY_INSTALL/packaging/lazyvim.sh
|
||||||
|
source $OMARCHY_INSTALL/packaging/webapps.sh
|
||||||
|
source $OMARCHY_INSTALL/packaging/tuis.sh
|
||||||
|
source $OMARCHY_INSTALL/packaging/pins.sh
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
source $OMARCHY_INSTALL/config/config.sh
|
source $OMARCHY_INSTALL/config/config.sh
|
||||||
|
source $OMARCHY_INSTALL/config/theme.sh
|
||||||
source $OMARCHY_INSTALL/config/branding.sh
|
source $OMARCHY_INSTALL/config/branding.sh
|
||||||
source $OMARCHY_INSTALL/config/detect-keyboard-layout.sh
|
source $OMARCHY_INSTALL/config/git.sh
|
||||||
source $OMARCHY_INSTALL/config/fix-fkeys.sh
|
source $OMARCHY_INSTALL/config/gpg.sh
|
||||||
source $OMARCHY_INSTALL/config/network.sh
|
|
||||||
source $OMARCHY_INSTALL/config/power.sh
|
|
||||||
source $OMARCHY_INSTALL/config/usb-autosuspend.sh
|
|
||||||
source $OMARCHY_INSTALL/config/timezones.sh
|
source $OMARCHY_INSTALL/config/timezones.sh
|
||||||
source $OMARCHY_INSTALL/config/nvidia.sh
|
|
||||||
source $OMARCHY_INSTALL/config/increase-sudo-tries.sh
|
source $OMARCHY_INSTALL/config/increase-sudo-tries.sh
|
||||||
source $OMARCHY_INSTALL/config/ignore-power-button.sh
|
source $OMARCHY_INSTALL/config/increase-lockout-limit.sh
|
||||||
|
source $OMARCHY_INSTALL/config/ssh-flakiness.sh
|
||||||
|
source $OMARCHY_INSTALL/config/detect-keyboard-layout.sh
|
||||||
|
source $OMARCHY_INSTALL/config/xcompose.sh
|
||||||
|
source $OMARCHY_INSTALL/config/mise-ruby.sh
|
||||||
|
source $OMARCHY_INSTALL/config/docker.sh
|
||||||
|
source $OMARCHY_INSTALL/config/mimetypes.sh
|
||||||
|
source $OMARCHY_INSTALL/config/localdb.sh
|
||||||
|
source $OMARCHY_INSTALL/config/hardware/network.sh
|
||||||
|
source $OMARCHY_INSTALL/config/hardware/fix-fkeys.sh
|
||||||
|
source $OMARCHY_INSTALL/config/hardware/bluetooth.sh
|
||||||
|
source $OMARCHY_INSTALL/config/hardware/printer.sh
|
||||||
|
source $OMARCHY_INSTALL/config/hardware/usb-autosuspend.sh
|
||||||
|
source $OMARCHY_INSTALL/config/hardware/ignore-power-button.sh
|
||||||
|
source $OMARCHY_INSTALL/config/hardware/nvidia.sh
|
||||||
|
|
||||||
# Login
|
# Login
|
||||||
source $OMARCHY_INSTALL/login/plymouth.sh
|
source $OMARCHY_INSTALL/login/plymouth.sh
|
||||||
source $OMARCHY_INSTALL/login/limine-snapper.sh
|
source $OMARCHY_INSTALL/login/limine-snapper.sh
|
||||||
source $OMARCHY_INSTALL/login/alt-bootloaders.sh
|
source $OMARCHY_INSTALL/login/alt-bootloaders.sh
|
||||||
|
|
||||||
# Development
|
|
||||||
source $OMARCHY_INSTALL/development/terminal.sh
|
|
||||||
source $OMARCHY_INSTALL/development/development.sh
|
|
||||||
source $OMARCHY_INSTALL/development/nvim.sh
|
|
||||||
source $OMARCHY_INSTALL/development/ruby.sh
|
|
||||||
source $OMARCHY_INSTALL/development/docker.sh
|
|
||||||
source $OMARCHY_INSTALL/development/firewall.sh
|
|
||||||
|
|
||||||
# Desktop
|
|
||||||
source $OMARCHY_INSTALL/desktop/desktop.sh
|
|
||||||
source $OMARCHY_INSTALL/desktop/hyprlandia.sh
|
|
||||||
source $OMARCHY_INSTALL/desktop/theme.sh
|
|
||||||
source $OMARCHY_INSTALL/desktop/bluetooth.sh
|
|
||||||
source $OMARCHY_INSTALL/desktop/asdcontrol.sh
|
|
||||||
source $OMARCHY_INSTALL/desktop/fonts.sh
|
|
||||||
source $OMARCHY_INSTALL/desktop/printer.sh
|
|
||||||
|
|
||||||
# Apps
|
|
||||||
source $OMARCHY_INSTALL/apps/webapps.sh
|
|
||||||
source $OMARCHY_INSTALL/apps/tuis.sh
|
|
||||||
source $OMARCHY_INSTALL/apps/xtras.sh
|
|
||||||
source $OMARCHY_INSTALL/apps/mimetypes.sh
|
|
||||||
|
|
||||||
# Updates
|
|
||||||
sudo updatedb
|
|
||||||
|
|
||||||
# Update system packages if we have a network connection
|
|
||||||
if ping -c5 omarchy.org &>/dev/null; then
|
|
||||||
yay -Syu --noconfirm
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Stop logging
|
|
||||||
source $OMARCHY_INSTALL/log/after-install.sh
|
|
||||||
|
|
||||||
# Reboot
|
# Reboot
|
||||||
show_logo laseretch 920
|
clear
|
||||||
show_subtext "You're done! So we're ready to reboot now..."
|
tte -i ~/.local/share/omarchy/logo.txt --frame-rate 920 laseretch
|
||||||
|
echo
|
||||||
|
echo "You're done! So we're ready to reboot now..." | tte --frame-rate 640 wipe
|
||||||
|
|
||||||
if sudo test -f /etc/sudoers.d/99-omarchy-installer; then
|
if sudo test -f /etc/sudoers.d/99-omarchy-installer; then
|
||||||
sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null
|
sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null
|
||||||
echo
|
echo -e "\nRemember to remove USB installer!\n\n"
|
||||||
read -n 1 -s -r -p "Remove the USB installer then press any key to reboot..."
|
|
||||||
echo
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 2
|
sleep 5
|
||||||
reboot
|
reboot
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ -z "$OMARCHY_BARE" ]; then
|
|
||||||
omarchy-tui-install "Disk Usage" "bash -c 'dust; read -n 1 -s'" float https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/qdirstat.png
|
|
||||||
omarchy-tui-install "Docker" "lazydocker" tile https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/docker.png
|
|
||||||
fi
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ -z "$OMARCHY_BARE" ]; then
|
|
||||||
omarchy-webapp-install "HEY" https://app.hey.com https://www.hey.com/assets/images/general/hey.png
|
|
||||||
omarchy-webapp-install "Basecamp" https://launchpad.37signals.com https://basecamp.com/assets/images/general/basecamp.png
|
|
||||||
omarchy-webapp-install "WhatsApp" https://web.whatsapp.com/ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/whatsapp.png
|
|
||||||
omarchy-webapp-install "Google Photos" https://photos.google.com/ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/google-photos.png
|
|
||||||
omarchy-webapp-install "Google Contacts" https://contacts.google.com/ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/google-contacts.png
|
|
||||||
omarchy-webapp-install "Google Messages" https://messages.google.com/web/conversations https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/google-messages.png
|
|
||||||
omarchy-webapp-install "ChatGPT" https://chatgpt.com/ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/chatgpt.png
|
|
||||||
omarchy-webapp-install "YouTube" https://youtube.com/ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/youtube.png
|
|
||||||
omarchy-webapp-install "GitHub" https://github.com/ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/github-light.png
|
|
||||||
omarchy-webapp-install "X" https://x.com/ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/x-light.png
|
|
||||||
omarchy-webapp-install "Figma" https://figma.com/ https://www.veryicon.com/download/png/application/app-icon-7/figma-1?s=256
|
|
||||||
omarchy-webapp-install "Discord" https://discord.com/channels/@me https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/discord.png
|
|
||||||
fi
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ -z "$OMARCHY_BARE" ]; then
|
|
||||||
yay -S --noconfirm --needed \
|
|
||||||
gnome-calculator gnome-keyring signal-desktop \
|
|
||||||
obsidian-bin libreoffice obs-studio kdenlive \
|
|
||||||
xournalpp localsend-bin
|
|
||||||
|
|
||||||
# Packages known to be flaky or having key signing issues are run one-by-one
|
|
||||||
# FIXME: Add pinta back to this list when we have dealt with certificate issue
|
|
||||||
for pkg in typora spotify zoom; do
|
|
||||||
yay -S --noconfirm --needed "$pkg" ||
|
|
||||||
echo -e "\e[31mFailed to install $pkg. Continuing without!\e[0m"
|
|
||||||
done
|
|
||||||
|
|
||||||
yay -S --noconfirm --needed 1password-beta 1password-cli ||
|
|
||||||
echo -e "\e[31mFailed to install 1password. Continuing without!\e[0m"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Copy over Omarchy applications
|
|
||||||
source omarchy-refresh-applications || true
|
|
||||||
1
install/config/branding.sh
Normal file → Executable file
1
install/config/branding.sh
Normal file → Executable file
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Allow the user to change the branding for fastfetch and screensaver
|
||||||
mkdir -p ~/.config/omarchy/branding
|
mkdir -p ~/.config/omarchy/branding
|
||||||
cp ~/.local/share/omarchy/icon.txt ~/.config/omarchy/branding/about.txt
|
cp ~/.local/share/omarchy/icon.txt ~/.config/omarchy/branding/about.txt
|
||||||
cp ~/.local/share/omarchy/logo.txt ~/.config/omarchy/branding/screensaver.txt
|
cp ~/.local/share/omarchy/logo.txt ~/.config/omarchy/branding/screensaver.txt
|
||||||
|
|||||||
50
install/config/config.sh
Normal file → Executable file
50
install/config/config.sh
Normal file → Executable file
@@ -1,56 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Copy over Omarchy configs
|
# Copy over Omarchy configs
|
||||||
|
mkdir -p ~/.config
|
||||||
cp -R ~/.local/share/omarchy/config/* ~/.config/
|
cp -R ~/.local/share/omarchy/config/* ~/.config/
|
||||||
|
|
||||||
# Use default bashrc from Omarchy
|
# Use default bashrc from Omarchy
|
||||||
cp ~/.local/share/omarchy/default/bashrc ~/.bashrc
|
cp ~/.local/share/omarchy/default/bashrc ~/.bashrc
|
||||||
|
|
||||||
# Ensure application directory exists for update-desktop-database
|
|
||||||
mkdir -p ~/.local/share/applications
|
|
||||||
|
|
||||||
# If bare install, allow a way for its exclusions to not get added in updates
|
|
||||||
if [ -n "$OMARCHY_BARE" ]; then
|
|
||||||
mkdir -p ~/.local/state/omarchy
|
|
||||||
touch ~/.local/state/omarchy/bare.mode
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Setup GPG configuration with multiple keyservers for better reliability
|
|
||||||
sudo mkdir -p /etc/gnupg
|
|
||||||
sudo cp ~/.local/share/omarchy/default/gpg/dirmngr.conf /etc/gnupg/
|
|
||||||
sudo chmod 644 /etc/gnupg/dirmngr.conf
|
|
||||||
sudo gpgconf --kill dirmngr || true
|
|
||||||
sudo gpgconf --launch dirmngr || true
|
|
||||||
|
|
||||||
# Increase lockout limit to 10 and decrease timeout to 2 minutes
|
|
||||||
sudo sed -i 's|^\(auth\s\+required\s\+pam_faillock.so\)\s\+preauth.*$|\1 preauth silent deny=10 unlock_time=120|' "/etc/pam.d/system-auth"
|
|
||||||
sudo sed -i 's|^\(auth\s\+\[default=die\]\s\+pam_faillock.so\)\s\+authfail.*$|\1 authfail deny=10 unlock_time=120|' "/etc/pam.d/system-auth"
|
|
||||||
|
|
||||||
# Solve common flakiness with SSH
|
|
||||||
echo "net.ipv4.tcp_mtu_probing=1" | sudo tee -a /etc/sysctl.d/99-sysctl.conf
|
|
||||||
|
|
||||||
# Set common git aliases
|
|
||||||
git config --global alias.co checkout
|
|
||||||
git config --global alias.br branch
|
|
||||||
git config --global alias.ci commit
|
|
||||||
git config --global alias.st status
|
|
||||||
git config --global pull.rebase true
|
|
||||||
git config --global init.defaultBranch master
|
|
||||||
|
|
||||||
# Set identification from install inputs
|
|
||||||
if [[ -n "${OMARCHY_USER_NAME//[[:space:]]/}" ]]; then
|
|
||||||
git config --global user.name "$OMARCHY_USER_NAME"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${OMARCHY_USER_EMAIL//[[:space:]]/}" ]]; then
|
|
||||||
git config --global user.email "$OMARCHY_USER_EMAIL"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set default XCompose that is triggered with CapsLock
|
|
||||||
tee ~/.XCompose >/dev/null <<EOF
|
|
||||||
include "%H/.local/share/omarchy/default/xcompose"
|
|
||||||
|
|
||||||
# Identification
|
|
||||||
<Multi_key> <space> <n> : "$OMARCHY_USER_NAME"
|
|
||||||
<Multi_key> <space> <e> : "$OMARCHY_USER_EMAIL"
|
|
||||||
EOF
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Copy over the keyboard layout that's been set in Arch during install to Hyprland
|
||||||
conf="/etc/vconsole.conf"
|
conf="/etc/vconsole.conf"
|
||||||
hyprconf="$HOME/.config/hypr/hyprland.conf"
|
hyprconf="$HOME/.config/hypr/hyprland.conf"
|
||||||
|
|
||||||
|
|||||||
2
install/development/docker.sh → install/config/docker.sh
Normal file → Executable file
2
install/development/docker.sh → install/config/docker.sh
Normal file → Executable file
@@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
yay -S --noconfirm --needed docker docker-compose docker-buildx
|
|
||||||
|
|
||||||
# Configure Docker daemon:
|
# Configure Docker daemon:
|
||||||
# - limit log size to avoid running out of disk
|
# - limit log size to avoid running out of disk
|
||||||
# - use host's DNS resolver
|
# - use host's DNS resolver
|
||||||
18
install/config/git.sh
Executable file
18
install/config/git.sh
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Set common git aliases
|
||||||
|
git config --global alias.co checkout
|
||||||
|
git config --global alias.br branch
|
||||||
|
git config --global alias.ci commit
|
||||||
|
git config --global alias.st status
|
||||||
|
git config --global pull.rebase true
|
||||||
|
git config --global init.defaultBranch master
|
||||||
|
|
||||||
|
# Set identification from install inputs
|
||||||
|
if [[ -n "${OMARCHY_USER_NAME//[[:space:]]/}" ]]; then
|
||||||
|
git config --global user.name "$OMARCHY_USER_NAME"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n "${OMARCHY_USER_EMAIL//[[:space:]]/}" ]]; then
|
||||||
|
git config --global user.email "$OMARCHY_USER_EMAIL"
|
||||||
|
fi
|
||||||
8
install/config/gpg.sh
Executable file
8
install/config/gpg.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Setup GPG configuration with multiple keyservers for better reliability
|
||||||
|
sudo mkdir -p /etc/gnupg
|
||||||
|
sudo cp ~/.local/share/omarchy/default/gpg/dirmngr.conf /etc/gnupg/
|
||||||
|
sudo chmod 644 /etc/gnupg/dirmngr.conf
|
||||||
|
sudo gpgconf --kill dirmngr || true
|
||||||
|
sudo gpgconf --launch dirmngr || true
|
||||||
3
install/desktop/bluetooth.sh → install/config/hardware/bluetooth.sh
Normal file → Executable file
3
install/desktop/bluetooth.sh → install/config/hardware/bluetooth.sh
Normal file → Executable file
@@ -1,7 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Install bluetooth controls
|
|
||||||
yay -S --noconfirm --needed blueberry
|
|
||||||
|
|
||||||
# Turn on bluetooth by default
|
# Turn on bluetooth by default
|
||||||
chrootable_systemctl_enable bluetooth.service
|
chrootable_systemctl_enable bluetooth.service
|
||||||
4
install/config/fix-fkeys.sh → install/config/hardware/fix-fkeys.sh
Normal file → Executable file
4
install/config/fix-fkeys.sh → install/config/hardware/fix-fkeys.sh
Normal file → Executable file
@@ -1,8 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Ensure that F-keys on Apple-like keyboards (such as Lofree Flow84) are always F-keys
|
||||||
if [[ ! -f /etc/modprobe.d/hid_apple.conf ]]; then
|
if [[ ! -f /etc/modprobe.d/hid_apple.conf ]]; then
|
||||||
echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf
|
echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf
|
||||||
|
|
||||||
# Rely on install/login.sh to do the rebuild
|
|
||||||
# sudo mkinitcpio -P
|
|
||||||
fi
|
fi
|
||||||
2
install/config/network.sh → install/config/hardware/network.sh
Normal file → Executable file
2
install/config/network.sh → install/config/hardware/network.sh
Normal file → Executable file
@@ -3,7 +3,7 @@
|
|||||||
# Install iwd explicitly if it wasn't included in archinstall
|
# Install iwd explicitly if it wasn't included in archinstall
|
||||||
# This can happen if archinstall used ethernet
|
# This can happen if archinstall used ethernet
|
||||||
if ! command -v iwctl &>/dev/null; then
|
if ! command -v iwctl &>/dev/null; then
|
||||||
yay -S --noconfirm --needed iwd
|
sudo pacman -S --noconfirm --needed iwd
|
||||||
chrootable_systemctl_enable iwd.service
|
chrootable_systemctl_enable iwd.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
5
install/config/nvidia.sh → install/config/hardware/nvidia.sh
Normal file → Executable file
5
install/config/nvidia.sh → install/config/hardware/nvidia.sh
Normal file → Executable file
@@ -12,9 +12,6 @@
|
|||||||
|
|
||||||
# --- GPU Detection ---
|
# --- GPU Detection ---
|
||||||
if [ -n "$(lspci | grep -i 'nvidia')" ]; then
|
if [ -n "$(lspci | grep -i 'nvidia')" ]; then
|
||||||
show_logo
|
|
||||||
show_subtext "Install NVIDIA drivers..."
|
|
||||||
|
|
||||||
# --- Driver Selection ---
|
# --- Driver Selection ---
|
||||||
# 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
|
||||||
if echo "$(lspci | grep -i 'nvidia')" | grep -q -E "RTX [2-9][0-9]|GTX 16"; then
|
if echo "$(lspci | grep -i 'nvidia')" | grep -q -E "RTX [2-9][0-9]|GTX 16"; then
|
||||||
@@ -53,7 +50,7 @@ if [ -n "$(lspci | grep -i 'nvidia')" ]; then
|
|||||||
"qt6-wayland"
|
"qt6-wayland"
|
||||||
)
|
)
|
||||||
|
|
||||||
yay -S --needed --noconfirm "${PACKAGES_TO_INSTALL[@]}"
|
sudo pacman -S --needed --noconfirm "${PACKAGES_TO_INSTALL[@]}"
|
||||||
|
|
||||||
# Configure modprobe for early KMS
|
# Configure modprobe for early KMS
|
||||||
echo "options nvidia_drm modeset=1" | sudo tee /etc/modprobe.d/nvidia.conf >/dev/null
|
echo "options nvidia_drm modeset=1" | sudo tee /etc/modprobe.d/nvidia.conf >/dev/null
|
||||||
1
install/desktop/printer.sh → install/config/hardware/printer.sh
Normal file → Executable file
1
install/desktop/printer.sh → install/config/hardware/printer.sh
Normal file → Executable file
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sudo pacman -S --noconfirm cups cups-pdf cups-filters cups-browsed system-config-printer avahi nss-mdns
|
|
||||||
chrootable_systemctl_enable cups.service
|
chrootable_systemctl_enable cups.service
|
||||||
|
|
||||||
# Disable multicast dns in resolved. Avahi will provide this for better network printer discovery
|
# Disable multicast dns in resolved. Avahi will provide this for better network printer discovery
|
||||||
5
install/config/increase-lockout-limit.sh
Executable file
5
install/config/increase-lockout-limit.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Increase lockout limit to 10 and decrease timeout to 2 minutes
|
||||||
|
sudo sed -i 's|^\(auth\s\+required\s\+pam_faillock.so\)\s\+preauth.*$|\1 preauth silent deny=10 unlock_time=120|' "/etc/pam.d/system-auth"
|
||||||
|
sudo sed -i 's|^\(auth\s\+\[default=die\]\s\+pam_faillock.so\)\s\+authfail.*$|\1 authfail deny=10 unlock_time=120|' "/etc/pam.d/system-auth"
|
||||||
3
install/config/increase-sudo-tries.sh
Normal file → Executable file
3
install/config/increase-sudo-tries.sh
Normal file → Executable file
@@ -1,2 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Give the user 10 instead of 3 tries to fat finger their password before lockout
|
||||||
echo "Defaults passwd_tries=10" | sudo tee /etc/sudoers.d/passwd-tries
|
echo "Defaults passwd_tries=10" | sudo tee /etc/sudoers.d/passwd-tries
|
||||||
sudo chmod 440 /etc/sudoers.d/passwd-tries
|
sudo chmod 440 /etc/sudoers.d/passwd-tries
|
||||||
|
|||||||
2
install/config/localdb.sh
Normal file
2
install/config/localdb.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Update localdb so that locate will find everything installed
|
||||||
|
sudo updatedb
|
||||||
1
install/apps/mimetypes.sh → install/config/mimetypes.sh
Normal file → Executable file
1
install/apps/mimetypes.sh → install/config/mimetypes.sh
Normal file → Executable file
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
omarchy-refresh-applications
|
||||||
update-desktop-database ~/.local/share/applications
|
update-desktop-database ~/.local/share/applications
|
||||||
|
|
||||||
# Open all images with imv
|
# Open all images with imv
|
||||||
1
install/development/ruby.sh → install/config/mise-ruby.sh
Normal file → Executable file
1
install/development/ruby.sh → install/config/mise-ruby.sh
Normal file → Executable file
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Install Ruby using gcc-14 for compatibility
|
# Install Ruby using gcc-14 for compatibility
|
||||||
yay -S --noconfirm --needed gcc14
|
|
||||||
mise settings set ruby.ruby_build_opts "CC=gcc-14 CXX=g++-14"
|
mise settings set ruby.ruby_build_opts "CC=gcc-14 CXX=g++-14"
|
||||||
|
|
||||||
# Trust .ruby-version
|
# Trust .ruby-version
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Setting the performance profile can make a big difference. By default, most systems seem to start in balanced mode,
|
|
||||||
# even if they're not running off a battery. So let's make sure that's changed to performance.
|
|
||||||
yay -S --noconfirm python-gobject power-profiles-daemon
|
|
||||||
|
|
||||||
if ls /sys/class/power_supply/BAT* &>/dev/null; then
|
|
||||||
# This computer runs on a battery
|
|
||||||
powerprofilesctl set balanced || true
|
|
||||||
|
|
||||||
# Enable battery monitoring timer for low battery notifications
|
|
||||||
if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
|
||||||
systemctl --user enable omarchy-battery-monitor.timer
|
|
||||||
else
|
|
||||||
systemctl --user enable --now omarchy-battery-monitor.timer
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
# This computer runs on power outlet
|
|
||||||
powerprofilesctl set performance || true
|
|
||||||
fi
|
|
||||||
4
install/config/ssh-flakiness.sh
Executable file
4
install/config/ssh-flakiness.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Solve common flakiness with SSH
|
||||||
|
echo "net.ipv4.tcp_mtu_probing=1" | sudo tee -a /etc/sysctl.d/99-sysctl.conf
|
||||||
15
install/desktop/theme.sh → install/config/theme.sh
Normal file → Executable file
15
install/desktop/theme.sh → install/config/theme.sh
Normal file → Executable file
@@ -1,20 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Use dark mode for QT apps too (like kdenlive)
|
|
||||||
if ! yay -Q kvantum-qt5 &>/dev/null; then
|
|
||||||
yay -S --noconfirm kvantum-qt5
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Prefer dark mode everything
|
|
||||||
if ! yay -Q gnome-themes-extra &>/dev/null; then
|
|
||||||
yay -S --noconfirm gnome-themes-extra # Adds Adwaita-dark theme
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Allow icons to match the theme
|
|
||||||
if ! yay -! yaru-icon-theme &>/dev/null; then
|
|
||||||
yay -S --noconfirm yaru-icon-theme
|
|
||||||
fi
|
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
||||||
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
||||||
gsettings set org.gnome.desktop.interface icon-theme "Yaru-blue"
|
gsettings set org.gnome.desktop.interface icon-theme "Yaru-blue"
|
||||||
8
install/config/timezones.sh
Normal file → Executable file
8
install/config/timezones.sh
Normal file → Executable file
@@ -1,9 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if ! command -v tzupdate &>/dev/null; then
|
# Ensure timezone can be updated without needing to sudo
|
||||||
yay -S --noconfirm --needed tzupdate
|
sudo tee /etc/sudoers.d/omarchy-tzupdate >/dev/null <<EOF
|
||||||
sudo tee /etc/sudoers.d/omarchy-tzupdate >/dev/null <<EOF
|
|
||||||
%wheel ALL=(root) NOPASSWD: /usr/bin/tzupdate, /usr/bin/timedatectl
|
%wheel ALL=(root) NOPASSWD: /usr/bin/tzupdate, /usr/bin/timedatectl
|
||||||
EOF
|
EOF
|
||||||
sudo chmod 0440 /etc/sudoers.d/omarchy-tzupdate
|
sudo chmod 0440 /etc/sudoers.d/omarchy-tzupdate
|
||||||
fi
|
|
||||||
|
|||||||
10
install/config/xcompose.sh
Executable file
10
install/config/xcompose.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Set default XCompose that is triggered with CapsLock
|
||||||
|
tee ~/.XCompose >/dev/null <<EOF
|
||||||
|
include "%H/.local/share/omarchy/default/xcompose"
|
||||||
|
|
||||||
|
# Identification
|
||||||
|
<Multi_key> <space> <n> : "$OMARCHY_USER_NAME"
|
||||||
|
<Multi_key> <space> <e> : "$OMARCHY_USER_EMAIL"
|
||||||
|
EOF
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
yay -S --noconfirm --needed \
|
|
||||||
brightnessctl playerctl pamixer wiremix wireplumber \
|
|
||||||
fcitx5 fcitx5-gtk fcitx5-qt wl-clip-persist \
|
|
||||||
nautilus sushi ffmpegthumbnailer gvfs-mtp \
|
|
||||||
slurp satty \
|
|
||||||
mpv evince imv \
|
|
||||||
omarchy-chromium-bin
|
|
||||||
|
|
||||||
# Add screen recorder based on GPU
|
|
||||||
if lspci | grep -Eqi 'nvidia|intel.*graphics'; then
|
|
||||||
yay -S --noconfirm --needed wf-recorder
|
|
||||||
else
|
|
||||||
yay -S --noconfirm --needed wl-screenrec
|
|
||||||
fi
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
yay -S --noconfirm --needed ttf-font-awesome ttf-cascadia-mono-nerd ttf-ia-writer noto-fonts noto-fonts-emoji
|
|
||||||
|
|
||||||
if [ -z "$OMARCHY_BARE" ]; then
|
|
||||||
yay -S --noconfirm --needed ttf-jetbrains-mono noto-fonts-cjk noto-fonts-extra
|
|
||||||
fi
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
yay -S --noconfirm --needed \
|
|
||||||
hyprland hyprshot hyprpicker hyprlock hypridle hyprsunset polkit-gnome hyprland-qtutils \
|
|
||||||
walker-bin libqalculate waybar mako swaybg swayosd \
|
|
||||||
xdg-desktop-portal-hyprland xdg-desktop-portal-gtk
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
yay -S --noconfirm --needed \
|
|
||||||
cargo clang llvm mise \
|
|
||||||
imagemagick \
|
|
||||||
mariadb-libs postgresql-libs \
|
|
||||||
github-cli \
|
|
||||||
lazygit lazydocker
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if ! command -v ufw &>/dev/null && -z "${OMARCHY_CHROOT_INSTALL:-}"; then
|
|
||||||
yay -S --noconfirm --needed ufw ufw-docker
|
|
||||||
|
|
||||||
# Allow nothing in, everything out
|
|
||||||
sudo ufw default deny incoming
|
|
||||||
sudo ufw default allow outgoing
|
|
||||||
|
|
||||||
# Allow ports for LocalSend
|
|
||||||
sudo ufw allow 53317/udp
|
|
||||||
sudo ufw allow 53317/tcp
|
|
||||||
|
|
||||||
# Allow SSH in
|
|
||||||
sudo ufw allow 22/tcp
|
|
||||||
|
|
||||||
# Allow Docker containers to use DNS on host
|
|
||||||
sudo ufw allow in proto udp from 172.16.0.0/12 to 172.17.0.1 port 53 comment 'allow-docker-dns'
|
|
||||||
|
|
||||||
# Turn on the firewall
|
|
||||||
sudo ufw --force enable
|
|
||||||
|
|
||||||
# Turn on Docker protections
|
|
||||||
sudo ufw-docker install
|
|
||||||
sudo ufw reload
|
|
||||||
fi
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
yay -S --noconfirm --needed \
|
|
||||||
unzip inetutils impala \
|
|
||||||
fd eza fzf ripgrep zoxide bat dust jq xmlstarlet \
|
|
||||||
wl-clipboard btop \
|
|
||||||
man tldr less whois plocate \
|
|
||||||
starship bash-completion \
|
|
||||||
alacritty
|
|
||||||
12
install/first-run/battery-monitor.sh
Executable file
12
install/first-run/battery-monitor.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ls /sys/class/power_supply/BAT* &>/dev/null; then
|
||||||
|
# This computer runs on a battery
|
||||||
|
powerprofilesctl set balanced || true
|
||||||
|
|
||||||
|
# Enable battery monitoring timer for low battery notifications
|
||||||
|
systemctl --user enable --now omarchy-battery-monitor.timer
|
||||||
|
else
|
||||||
|
# This computer runs on power outlet
|
||||||
|
powerprofilesctl set performance || true
|
||||||
|
fi
|
||||||
22
install/first-run/firewall.sh
Executable file
22
install/first-run/firewall.sh
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Allow nothing in, everything out
|
||||||
|
sudo ufw default deny incoming
|
||||||
|
sudo ufw default allow outgoing
|
||||||
|
|
||||||
|
# Allow ports for LocalSend
|
||||||
|
sudo ufw allow 53317/udp
|
||||||
|
sudo ufw allow 53317/tcp
|
||||||
|
|
||||||
|
# Allow SSH in
|
||||||
|
sudo ufw allow 22/tcp
|
||||||
|
|
||||||
|
# Allow Docker containers to use DNS on host
|
||||||
|
sudo ufw allow in proto udp from 172.16.0.0/12 to 172.17.0.1 port 53 comment 'allow-docker-dns'
|
||||||
|
|
||||||
|
# Turn on the firewall
|
||||||
|
sudo ufw --force enable
|
||||||
|
|
||||||
|
# Turn on Docker protections
|
||||||
|
sudo ufw-docker install
|
||||||
|
sudo ufw reload
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo -e "\n--- Pacman packages (after installation) ---"
|
|
||||||
echo "Total packages installed: $(pacman -Q | wc -l)"
|
|
||||||
pacman -Q
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Start logging a copy of everything sent to STDOUT and STDERR
|
|
||||||
mkdir -p ~/.local/state/omarchy/logs/
|
|
||||||
exec &> >(tee -a ~/.local/state/omarchy/logs/installation.log)
|
|
||||||
|
|
||||||
echo "--- System state before installation ---"
|
|
||||||
sudo pacman -S --noconfirm fastfetch
|
|
||||||
fastfetch
|
|
||||||
|
|
||||||
echo -e "\n--- System logs (journalctl / current boot) ---"
|
|
||||||
journalctl -b --no-pager
|
|
||||||
|
|
||||||
echo -e "\n--- Pacman packages (before installation) ---"
|
|
||||||
echo "Total packages installed: $(pacman -Q | wc -l)"
|
|
||||||
pacman -Q
|
|
||||||
0
install/login/alt-bootloaders.sh
Normal file → Executable file
0
install/login/alt-bootloaders.sh
Normal file → Executable file
30
install/login/limine-snapper.sh
Normal file → Executable file
30
install/login/limine-snapper.sh
Normal file → Executable file
@@ -1,17 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if command -v limine &>/dev/null && [ ! -f /etc/default/limine ]; then
|
if command -v limine &>/dev/null; then
|
||||||
yay -S --noconfirm --needed limine-mkinitcpio-hook limine-snapper-sync
|
|
||||||
|
|
||||||
sudo tee /etc/mkinitcpio.conf.d/omarchy_hooks.conf <<EOF >/dev/null
|
sudo tee /etc/mkinitcpio.conf.d/omarchy_hooks.conf <<EOF >/dev/null
|
||||||
HOOKS=(base udev plymouth keyboard autodetect microcode modconf kms keymap consolefont block encrypt filesystems fsck btrfs-overlayfs)
|
HOOKS=(base udev plymouth keyboard autodetect microcode modconf kms keymap consolefont block encrypt filesystems fsck btrfs-overlayfs)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
CMDLINE=$(grep "^[[:space:]]*cmdline:" /boot/EFI/limine/limine.conf | head -1 | sed 's/^[[:space:]]*cmdline:[[:space:]]*//')
|
[[ -f /boot/EFI/limine/limine.conf ]] && EFI=true
|
||||||
|
|
||||||
|
# Conf location is different between EFI and BIOS
|
||||||
|
[[ -n "$EFI" ]] && limine_config="/boot/EFI/limine/limine.conf" || limine_config="/boot/limine/limine.conf"
|
||||||
|
|
||||||
|
CMDLINE=$(grep "^[[:space:]]*cmdline:" "$limine_config" | head -1 | sed 's/^[[:space:]]*cmdline:[[:space:]]*//')
|
||||||
|
|
||||||
sudo tee /etc/default/limine <<EOF >/dev/null
|
sudo tee /etc/default/limine <<EOF >/dev/null
|
||||||
TARGET_OS_NAME="Omarchy"
|
TARGET_OS_NAME="Omarchy"
|
||||||
|
|
||||||
|
ESP_PATH="/boot"
|
||||||
|
|
||||||
KERNEL_CMDLINE[default]="$CMDLINE"
|
KERNEL_CMDLINE[default]="$CMDLINE"
|
||||||
KERNEL_CMDLINE[default]+="quiet splash"
|
KERNEL_CMDLINE[default]+="quiet splash"
|
||||||
|
|
||||||
@@ -29,6 +34,11 @@ MAX_SNAPSHOT_ENTRIES=5
|
|||||||
SNAPSHOT_FORMAT_CHOICE=5
|
SNAPSHOT_FORMAT_CHOICE=5
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# UKI and EFI fallback are EFI only
|
||||||
|
if [[ -z $EFI ]]; then
|
||||||
|
sudo sed -i '/^ENABLE_UKI=/d; /^ENABLE_LIMINE_FALLBACK=/d' /etc/default/limine
|
||||||
|
fi
|
||||||
|
|
||||||
# We overwrite the whole thing knowing the limine-update will add the entries for us
|
# We overwrite the whole thing knowing the limine-update will add the entries for us
|
||||||
sudo tee /boot/limine.conf <<EOF >/dev/null
|
sudo tee /boot/limine.conf <<EOF >/dev/null
|
||||||
### Read more at config document: https://github.com/limine-bootloader/limine/blob/trunk/CONFIG.md
|
### Read more at config document: https://github.com/limine-bootloader/limine/blob/trunk/CONFIG.md
|
||||||
@@ -52,6 +62,9 @@ term_background_bright: 24283b
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
sudo pacman -S --noconfirm --needed limine-snapper-sync limine-mkinitcpio-hook
|
||||||
|
sudo limine-update
|
||||||
|
|
||||||
# Match Snapper configs if not installing from the ISO
|
# Match Snapper configs if not installing from the ISO
|
||||||
if [ -z "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
if [ -z "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
||||||
if ! sudo snapper list-configs 2>/dev/null | grep -q "root"; then
|
if ! sudo snapper list-configs 2>/dev/null | grep -q "root"; then
|
||||||
@@ -68,16 +81,15 @@ EOF
|
|||||||
sudo sed -i 's/^NUMBER_LIMIT="50"/NUMBER_LIMIT="5"/' /etc/snapper/configs/{root,home}
|
sudo sed -i 's/^NUMBER_LIMIT="50"/NUMBER_LIMIT="5"/' /etc/snapper/configs/{root,home}
|
||||||
sudo sed -i 's/^NUMBER_LIMIT_IMPORTANT="10"/NUMBER_LIMIT_IMPORTANT="5"/' /etc/snapper/configs/{root,home}
|
sudo sed -i 's/^NUMBER_LIMIT_IMPORTANT="10"/NUMBER_LIMIT_IMPORTANT="5"/' /etc/snapper/configs/{root,home}
|
||||||
|
|
||||||
sudo limine-update
|
|
||||||
chrootable_systemctl_enable limine-snapper-sync.service
|
chrootable_systemctl_enable limine-snapper-sync.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add UKI entry to UEFI machines to skip bootloader showing on normal boot
|
# Add UKI entry to UEFI machines to skip bootloader showing on normal boot
|
||||||
# Only doing this for ISO installs
|
if [ -n "$EFI" ] && efibootmgr &>/dev/null && ! efibootmgr | grep -q Omarchy &&
|
||||||
if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ] && efibootmgr &>/dev/null && ! efibootmgr | grep -q Omarchy; then
|
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "American Megatrends"; then
|
||||||
sudo efibootmgr --create \
|
sudo efibootmgr --create \
|
||||||
--disk "$(findmnt -n -o SOURCE /boot | sed 's/[0-9]*$//')" \
|
--disk "$(findmnt -n -o SOURCE /boot | sed 's/p\?[0-9]*$//')" \
|
||||||
--part "$(findmnt -n -o SOURCE /boot | grep -o '[0-9]*$')" \
|
--part "$(findmnt -n -o SOURCE /boot | grep -o 'p\?[0-9]*$' | sed 's/^p//')" \
|
||||||
--label "Omarchy" \
|
--label "Omarchy" \
|
||||||
--loader "\\EFI\\Linux\\$(cat /etc/machine-id)_linux.efi"
|
--loader "\\EFI\\Linux\\$(cat /etc/machine-id)_linux.efi"
|
||||||
fi
|
fi
|
||||||
|
|||||||
3
install/login/plymouth.sh
Normal file → Executable file
3
install/login/plymouth.sh
Normal file → Executable file
@@ -1,9 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Hyprland launched via UWSM and login directly as user, rely on disk encryption + hyprlock for security
|
# Hyprland launched via UWSM and login directly as user, rely on disk encryption + hyprlock for security
|
||||||
if ! command -v uwsm &>/dev/null || ! command -v plymouth &>/dev/null; then
|
|
||||||
yay -S --noconfirm --needed plymouth uwsm
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# PLYMOUTH SETUP
|
# PLYMOUTH SETUP
|
||||||
|
|||||||
1
install/packages.ignored
Normal file
1
install/packages.ignored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
abseil-cpp
|
||||||
1
install/packages.pinned
Normal file
1
install/packages.pinned
Normal file
@@ -0,0 +1 @@
|
|||||||
|
https://pkgs.omarchy.org/x86_64/abseil-cpp-20250512.1-1-x86_64.pkg.tar.zst
|
||||||
122
install/packages.sh
Normal file
122
install/packages.sh
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
sudo pacman -S --noconfirm --needed \
|
||||||
|
1password-beta \
|
||||||
|
1password-cli \
|
||||||
|
alacritty \
|
||||||
|
avahi \
|
||||||
|
bash-completion \
|
||||||
|
bat \
|
||||||
|
blueberry \
|
||||||
|
brightnessctl \
|
||||||
|
btop \
|
||||||
|
cargo \
|
||||||
|
clang \
|
||||||
|
cups \
|
||||||
|
cups-browsed \
|
||||||
|
cups-filters \
|
||||||
|
cups-pdf \
|
||||||
|
docker \
|
||||||
|
docker-buildx \
|
||||||
|
docker-compose \
|
||||||
|
dust \
|
||||||
|
evince \
|
||||||
|
eza \
|
||||||
|
fastfetch \
|
||||||
|
fcitx5 \
|
||||||
|
fcitx5-gtk \
|
||||||
|
fcitx5-qt \
|
||||||
|
fd \
|
||||||
|
ffmpegthumbnailer \
|
||||||
|
fzf \
|
||||||
|
gcc14 \
|
||||||
|
github-cli \
|
||||||
|
gnome-calculator \
|
||||||
|
gnome-keyring \
|
||||||
|
gnome-themes-extra \
|
||||||
|
gum \
|
||||||
|
gvfs-mtp \
|
||||||
|
hypridle \
|
||||||
|
hyprland \
|
||||||
|
hyprland-qtutils \
|
||||||
|
hyprlock \
|
||||||
|
hyprpicker \
|
||||||
|
hyprshot \
|
||||||
|
hyprsunset \
|
||||||
|
imagemagick \
|
||||||
|
impala \
|
||||||
|
imv \
|
||||||
|
inetutils \
|
||||||
|
jq \
|
||||||
|
kdenlive \
|
||||||
|
kvantum-qt5 \
|
||||||
|
lazydocker \
|
||||||
|
lazygit \
|
||||||
|
less \
|
||||||
|
libqalculate \
|
||||||
|
libreoffice \
|
||||||
|
llvm \
|
||||||
|
localsend \
|
||||||
|
luarocks \
|
||||||
|
mako \
|
||||||
|
man \
|
||||||
|
mariadb-libs \
|
||||||
|
mise \
|
||||||
|
mpv \
|
||||||
|
nautilus \
|
||||||
|
noto-fonts \
|
||||||
|
noto-fonts-cjk \
|
||||||
|
noto-fonts-emoji \
|
||||||
|
noto-fonts-extra \
|
||||||
|
nss-mdns \
|
||||||
|
nvim \
|
||||||
|
obs-studio \
|
||||||
|
obsidian \
|
||||||
|
omarchy-chromium \
|
||||||
|
pamixer \
|
||||||
|
pinta \
|
||||||
|
playerctl \
|
||||||
|
plocate \
|
||||||
|
plymouth \
|
||||||
|
polkit-gnome \
|
||||||
|
postgresql-libs \
|
||||||
|
power-profiles-daemon \
|
||||||
|
python-gobject \
|
||||||
|
python-poetry-core \
|
||||||
|
python-terminaltexteffects \
|
||||||
|
ripgrep \
|
||||||
|
satty \
|
||||||
|
signal-desktop \
|
||||||
|
slurp \
|
||||||
|
spotify \
|
||||||
|
starship \
|
||||||
|
sushi \
|
||||||
|
swaybg \
|
||||||
|
swayosd \
|
||||||
|
system-config-printer \
|
||||||
|
tldr \
|
||||||
|
tree-sitter-cli \
|
||||||
|
ttf-cascadia-mono-nerd \
|
||||||
|
ttf-font-awesome \
|
||||||
|
ttf-ia-writer \
|
||||||
|
ttf-jetbrains-mono \
|
||||||
|
typora \
|
||||||
|
tzupdate \
|
||||||
|
ufw \
|
||||||
|
ufw-docker \
|
||||||
|
unzip \
|
||||||
|
uwsm \
|
||||||
|
walker-bin \
|
||||||
|
waybar \
|
||||||
|
wf-recorder \
|
||||||
|
whois \
|
||||||
|
wiremix \
|
||||||
|
wireplumber \
|
||||||
|
wl-clip-persist \
|
||||||
|
wl-clipboard \
|
||||||
|
wl-screenrec \
|
||||||
|
xdg-desktop-portal-gtk \
|
||||||
|
xdg-desktop-portal-hyprland \
|
||||||
|
xmlstarlet \
|
||||||
|
xournalpp \
|
||||||
|
yaru-icon-theme \
|
||||||
|
yay \
|
||||||
|
zoxide
|
||||||
2
install/desktop/asdcontrol.sh → install/packaging/asdcontrol.sh
Normal file → Executable file
2
install/desktop/asdcontrol.sh → install/packaging/asdcontrol.sh
Normal file → Executable file
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Install asdcontrol for controlling brightness on Apple Displays
|
# Install asdcontrol for controlling brightness on Apple Displays
|
||||||
if [ -z "$OMARCHY_BARE" ] && ! command -v asdcontrol &>/dev/null; then
|
if ! command -v asdcontrol &>/dev/null; then
|
||||||
git clone https://github.com/nikosdion/asdcontrol.git /tmp/asdcontrol
|
git clone https://github.com/nikosdion/asdcontrol.git /tmp/asdcontrol
|
||||||
cd /tmp/asdcontrol
|
cd /tmp/asdcontrol
|
||||||
make
|
make
|
||||||
6
install/packaging/fonts.sh
Executable file
6
install/packaging/fonts.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Omarchy logo in a font for Waybar use
|
||||||
|
mkdir -p ~/.local/share/fonts
|
||||||
|
cp ~/.local/share/omarchy/config/omarchy.ttf ~/.local/share/fonts/
|
||||||
|
fc-cache
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user