Allow for default webapps with icons that ship with Omarchy

This commit is contained in:
David Heinemeier Hansson
2025-06-25 11:39:17 -07:00
parent 2c5eea9742
commit e7c032c894
6 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Version=1.0
Name=Basecamp
Comment=Basecamp Project Management
Exec=google-chrome-stable --new-window --ozone-platform=wayland --app="https://launchpad.37signals.com" --name=Basecamp --class=Basecamp
Terminal=false
Type=Application
Icon=Basecamp
Categories=GTK;
MimeType=text/html;text/xml;application/xhtml_xml;
StartupNotify=true

12
applications/HEY.desktop Normal file
View File

@ -0,0 +1,12 @@
[Desktop Entry]
Version=1.0
Name=HEY
Comment=HEY Email + Calendar
Exec=google-chrome-stable --new-window --ozone-platform=wayland --app="https://app.hey.com" --name=HEY --class=HEY
Terminal=false
Type=Application
Icon=HEY
Categories=GTK;
MimeType=text/html;text/xml;application/xhtml_xml;
StartupNotify=true

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
applications/icons/HEY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

View File

@ -0,0 +1,9 @@
[Icon Theme]
Name=User Icons
Comment=User-local icon theme
Directories=48x48/apps
[48x48/apps]
Size=48
Context=Apps
Type=Fixed

View File

@ -1,3 +1,14 @@
#!/bin/bash
cp ~/.local/share/omarchy/applications/* ~/.local/share/applications/
# Ensure necessary directories are present
mkdir -p ~/.local/share/icons/hicolor/48x48/apps/
mkdir -p ~/.local/share/applications/
# Copy and sync icon files
cp ~/.local/share/omarchy/applications/icons/*.png ~/.local/share/icons/hicolor/48x48/apps/
cp ~/.local/share/omarchy/applications/icons/index.theme ~/.local/share/icons/hicolor/
gtk-update-icon-cache ~/.local/share/icons/hicolor
# Copy .desktop declarations
cp ~/.local/share/omarchy/applications/*.desktop ~/.local/share/applications/
update-desktop-database ~/.local/share/applications