-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathjustfile
More file actions
76 lines (55 loc) · 2.4 KB
/
Copy pathjustfile
File metadata and controls
76 lines (55 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Justfile for hyprsettings project
# Run with `just <recipe>` from any directory
set unstable
# Full development setup (Python backend + Vite dev server)
dev:
cd src/ui-src && bunx concurrently -k -s first -n py,vt -c cyan,green "sh ../../run.sh --bun-dev --debug --no-daemon --ui electron --no-browser" "vite --host"
dev-niri:
cd src/ui-src && bunx concurrently -k -s first -n py,vt -c cyan,green "sh ../../run.sh --bun-dev --debug --no-daemon --no-browser --ui electron --config ~/.config/niri/config.kdl --verbose" "vite --host"
dev-niri-short:
cd src/ui-src && bunx concurrently -k -s first -n py,vt -c cyan,green "sh ../../run.sh --bun-dev --debug --no-daemon --no-browser --ui electron --config ~/Documents/Projects/hyprsettings/config_niri_short.kdl" "vite --host"
dev-noui:
cd src/ui-src && bunx concurrently -k -s first -n py,vt -c cyan,green "sh ../../run.sh --bun-dev --debug --no-daemon --no-browser --no-window" "vite --host"
setup_dev:
uv sync
cd src/ui-src && bun install
# Kill hyprsettings process
kill-hs:
hyprsettings -k &
# Kill processes on ports 3000 and 6969
kill-ports:
sh -c 'for p in 3000 6969; do echo "\n== Port $p =="; lsof -iTCP:$p -sTCP:LISTEN -Pn | awk "NR>1 {print \"PID=\"$2, \"NAME=\"$1}"; lsof -tiTCP:$p -sTCP:LISTEN | xargs -r kill -9; done'
# Update version and stage changes
update-version:
python tooling/git_tag_version.py && git add .
# Build UI and create PyInstaller executable
build-py:
cd src/ui-src && bunx vite build && cd .. && pyinstaller --clean --distpath output hyprsettings.spec
# Build UI (alias for bun run build-ui)
build-ui:
cd src/ui-src && bun run build-ui
# Build UI and preview the app
build-prev:
cd src/ui-src && bunx vite build && cd ../../ && sh ./run.sh --debug --no-daemon
# Preview built UI (alias for bun run preview)
preview:
cd src/ui-src && bun run preview
# Run the app in debug mode
hs-debug:
sh ./run.sh --debug --no-daemon
hs:
sh ./run.sh --no-daemon
# Clean fonts (alias for bun run clean-font)
clean-font:
cd src/ui-src && bun run clean-font
# Format UI code (alias for bun run format)
format:
cd src/ui-src && bun run format
generate-new-config-description:
python tooling/ConfigDescriptions/sconfigdescriptions_parser.py
generate-dispatchers:
python tooling/Dispatchers/getdispatchers.py
generate-wiki:
python tooling/wiki-content-checkout.py
fmt:
just --unstable --fmt