Add the Draw web app with a keybind

This commit is contained in:
SirBlob committed 2026-09-24 12:37:35 -04:00
1 parent 0ed5e22fc6
commit 5419a35cd1
8 files changed
+34

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Name=Draw
Comment=Draw in the browser
Exec=blob-launch-webapp https://draw.sirblob.co/
Terminal=false
Type=Application
Icon=Draw
StartupNotify=true
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

+3
View File
@@ -59,6 +59,9 @@ with `--check`.
panels come up full of blanks. `fonts.conf` binds `monospace` to panels come up full of blanks. `fonts.conf` binds `monospace` to
`JetBrainsMono Nerd Font`; `blob font set` rewrites the same file, and the `JetBrainsMono Nerd Font`; `blob font set` rewrites the same file, and the
installer then reports it as a local change and keeps your choice. installer then reports it as a local change and keeps your choice.
Launcher entries in `applications/desktop/` go to `~/.local/share/applications`
and their icons in `applications/icons/` to `~/.local/share/icons/hicolor/32x32/apps`;
that is how the Draw web app is installed.
Default applications are set in `~/.config/mimeapps.list`: Loupe for Default applications are set in `~/.config/mimeapps.list`: Loupe for
images, `mpv` for video and audio, `evince` for PDFs and other documents, LibreOffice for images, `mpv` for video and audio, `evince` for PDFs and other documents, LibreOffice for
documents, spreadsheets and presentations, GNOME Text Editor for text, and documents, spreadsheets and presentations, GNOME Text Editor for text, and
+1
View File
@@ -15,6 +15,7 @@ Personal overrides in `hypr/bindings.lua` win over the defaults, and
| `SUPER + CTRL + M` | System monitor | | `SUPER + CTRL + M` | System monitor |
| `SUPER + CTRL + Q` | Quick settings | | `SUPER + CTRL + Q` | Quick settings |
| `SUPER + SHIFT + CTRL + D` | Display layout | | `SUPER + SHIFT + CTRL + D` | Display layout |
| `SUPER + SHIFT + W` | Draw |
| `SUPER + SPACE` | Apps menu | | `SUPER + SPACE` | Apps menu |
## Applications ## Applications
+1
View File
@@ -5,6 +5,7 @@ o.bind("SUPER + ALT + W", "Wallpapers", "blob-shell shell toggle blob.displays")
o.bind("SUPER + CTRL + M", "System monitor", "blob-shell shell toggle blob.sysmon") o.bind("SUPER + CTRL + M", "System monitor", "blob-shell shell toggle blob.sysmon")
o.bind("SUPER + SHIFT + CTRL + D", "Display layout", "blob-shell shell toggle blob.display-layout") o.bind("SUPER + SHIFT + CTRL + D", "Display layout", "blob-shell shell toggle blob.display-layout")
o.bind("SUPER + CTRL + Q", "Quick settings", "blob-shell shell toggle blob.quick-settings") o.bind("SUPER + CTRL + Q", "Quick settings", "blob-shell shell toggle blob.quick-settings")
o.bind("SUPER + SHIFT + W", "Draw", { webapp = "https://draw.sirblob.co/", focus = true })
-- Apps on SUPER + SPACE, root menu on ALT, swapping the shipped defaults back. -- Apps on SUPER + SPACE, root menu on ALT, swapping the shipped defaults back.
hl.unbind("SUPER + SPACE") hl.unbind("SUPER + SPACE")
+1
View File
@@ -81,6 +81,7 @@ install_bash_integration
install_user_units install_user_units
install_systemd_dropins install_systemd_dropins
install_zen_config install_zen_config
install_desktop_apps
install_default_apps install_default_apps
section "Theme" section "Theme"
+8
View File
@@ -62,6 +62,14 @@ install_shipped_config() {
install_file "$repo_dir/session/uwsm/env.d/10-blob" "$config_dir/uwsm/env.d/10-blob" "uwsm/env.d/10-blob" install_file "$repo_dir/session/uwsm/env.d/10-blob" "$config_dir/uwsm/env.d/10-blob" "uwsm/env.d/10-blob"
} }
desktop_entry_dir="$HOME/.local/share/applications"
app_icon_dir="$HOME/.local/share/icons/hicolor/32x32/apps"
install_desktop_apps() {
install_tree "$repo_dir/applications/desktop" "$desktop_entry_dir" "applications"
install_tree "$repo_dir/applications/icons" "$app_icon_dir" "icons"
}
remove_omarchy_font() { remove_omarchy_font() {
local omarchy_font="$font_dir/omarchy.ttf" local omarchy_font="$font_dir/omarchy.ttf"
+11
View File
@@ -3,6 +3,7 @@
set -e set -e
blob_path="$HOME/.local/share/blob" blob_path="$HOME/.local/share/blob"
repo_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
config_dir="$HOME/.config" config_dir="$HOME/.config"
session_entry="/usr/local/share/wayland-sessions/blob.desktop" session_entry="/usr/local/share/wayland-sessions/blob.desktop"
@@ -105,6 +106,16 @@ for relative in blob/shell.json uwsm/default uwsm/env.d/10-blob; do
restore_or_remove "$config_dir/$relative" "$relative" restore_or_remove "$config_dir/$relative" "$relative"
done done
for desktop_file in "$repo_dir"/applications/desktop/*.desktop; do
[[ -e $desktop_file ]] || continue
restore_or_remove "$HOME/.local/share/applications/$(basename "$desktop_file")" "applications/$(basename "$desktop_file")"
done
for icon_file in "$repo_dir"/applications/icons/*; do
[[ -e $icon_file ]] || continue
restore_or_remove "$HOME/.local/share/icons/hicolor/32x32/apps/$(basename "$icon_file")" "icons/$(basename "$icon_file")"
done
if [[ -d $config_dir/blob ]]; then if [[ -d $config_dir/blob ]]; then
rm -rf "$config_dir/blob" rm -rf "$config_dir/blob"
say "remove ~/.config/blob" say "remove ~/.config/blob"