mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
1 Commits
v2.0.0
...
remove-sta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1da249fef6 |
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# FIXME: Should not use AUR dependencies when we can avoid it
|
echo "Installing all dependencies..."
|
||||||
echo "Installing all dependencies [from AUR]..."
|
sudo pacman -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
|
||||||
|
|
||||||
echo "Starting Dropbox..."
|
echo "Starting Dropbox..."
|
||||||
|
|||||||
@@ -219,8 +219,8 @@ show_install_editor_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_install_ai_menu() {
|
show_install_ai_menu() {
|
||||||
case $(menu "Install" " Claude Code [AUR]\n Gemini\n LM Studio [AUR]\n Ollama\n Crush [AUR]\n opencode [AUR]") in
|
case $(menu "Install" " Claude Code\n Gemini\n LM Studio [AUR]\n Ollama\n Crush [AUR]\n opencode [AUR]") in
|
||||||
*Claude*) aur_install "Claude Code" "claude-code" ;;
|
*Claude*) install "Claude Code" "claude-code" ;;
|
||||||
*Gemini*) install "Gemini" "gemini-cli" ;;
|
*Gemini*) install "Gemini" "gemini-cli" ;;
|
||||||
*Studio*) aur_install "LM Studio" "lmstudio" ;;
|
*Studio*) aur_install "LM Studio" "lmstudio" ;;
|
||||||
*Ollama*) install "Ollama" "ollama" ;;
|
*Ollama*) install "Ollama" "ollama" ;;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ fzf_args=(
|
|||||||
--color 'pointer:green,marker:green'
|
--color 'pointer:green,marker:green'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
yay -Sy
|
||||||
pkg_names=$(yay -Slqa | fzf "${fzf_args[@]}")
|
pkg_names=$(yay -Slqa | fzf "${fzf_args[@]}")
|
||||||
|
|
||||||
if [[ -n "$pkg_names" ]]; then
|
if [[ -n "$pkg_names" ]]; then
|
||||||
|
|||||||
@@ -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 [ "$#" -eq 0 ]; then
|
if [ "$#" -ne 1 ]; 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,22 +14,23 @@ if [ "$#" -eq 0 ]; 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_NAMES=$(gum choose --no-limit --header "Select web app to remove..." "${SORTED_WEB_APPS[@]}")
|
APP_NAME=$(gum choose --header "Select web app to remove..." "${SORTED_WEB_APPS[@]}")
|
||||||
else
|
else
|
||||||
echo "No web apps to remove."
|
echo "No web apps to remove."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
APP_NAMES="$*"
|
APP_NAME="$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$APP_NAMES" ]]; then
|
if [[ -z "$APP_NAME" ]]; then
|
||||||
echo "You must provide web app names."
|
echo "You must provide web app name."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for APP_NAME in $APP_NAMES; do
|
rm "$DESKTOP_DIR/$APP_NAME.desktop"
|
||||||
rm -f "$DESKTOP_DIR/$APP_NAME.desktop"
|
rm "$ICON_DIR/$APP_NAME.png"
|
||||||
rm -f "$ICON_DIR/$APP_NAME.png"
|
|
||||||
echo "Removed $APP_NAME"
|
if [ "$#" -ne 1 ]; then
|
||||||
done
|
echo -e "Removed $APP_NAME\n"
|
||||||
|
fi
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"spacing": 0,
|
"spacing": 0,
|
||||||
"height": 26,
|
"height": 26,
|
||||||
"modules-left": ["custom/omarchy", "hyprland/workspaces"],
|
"modules-left": ["custom/omarchy", "hyprland/workspaces"],
|
||||||
"modules-center": ["clock", "custom/update"],
|
"modules-center": ["group/status-cluster", "clock", "custom/update"],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"group/tray-expander",
|
"group/tray-expander",
|
||||||
"bluetooth",
|
"bluetooth",
|
||||||
|
|||||||
@@ -58,6 +58,24 @@ tooltip {
|
|||||||
margin-left: 8.75px;
|
margin-left: 8.75px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#group-status-cluster {
|
||||||
|
margin-right: 8.75px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-status-dnd,
|
||||||
|
#custom-status-nightlight,
|
||||||
|
#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;
|
||||||
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,6 @@ fi
|
|||||||
|
|
||||||
# Allow repository index updates without sudo
|
# Allow repository index updates without sudo
|
||||||
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
|
$USER ALL=(ALL) NOPASSWD: /usr/binpacman -Sy
|
||||||
EOF
|
EOF
|
||||||
sudo chmod 440 /etc/sudoers.d/repositories
|
sudo chmod 440 /etc/sudoers.d/repositories
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
echo "Allow pacman -Sy without sudo to easier installs"
|
echo "Allow pacman -Sy without sudo to easier installs"
|
||||||
|
|
||||||
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
|
$USER ALL=(ALL) NOPASSWD: /usr/binpacman -Sy
|
||||||
EOF
|
EOF
|
||||||
sudo chmod 440 /etc/sudoers.d/repositories
|
sudo chmod 440 /etc/sudoers.d/repositories
|
||||||
|
|||||||
Reference in New Issue
Block a user