git clone https://github.com/X14OC14/XSHOT
bash XSHOT/install.shInstalls dependencies, copies fonts to ~/.fonts/, and sets up /sdcard/xshot/pattern/ with the included pattern files.
If xshot isn't recognized after install:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrcxshot [mode] [theme] [optional]
| Flag | Description |
|---|---|
-a |
Autoshot — watches screenshot folder, processes on arrival |
-m |
Manual — input a filename, process it once |
-wm |
Timestamp — stamps date/time onto camera photos |
-h |
Help |
-i |
Version info |
| Flag | Description |
|---|---|
-l |
Light — white border, dark footer |
-d |
Dark — dark border, white footer |
-g |
Gradient — diagonal two-color background, no solid border |
| Flag | Description |
|---|---|
-! |
Skip footer watermark |
-p |
Overlay pattern on background |
xshot -a -d # autoshot, dark
xshot -a -g # autoshot, gradient
xshot -a -g -p # autoshot, gradient + pattern overlay
xshot -a -d -p # autoshot, dark + pattern overlay
xshot -a -d -! # autoshot, dark, no watermark
xshot -m -g # manual, gradient
xshot -wm # timestamp camera photosNote — Manual mode outputs to a new file
filename_xshot.extand never overwrites the original.
Everything lives at the top of xshot.sh under # CONFIG.
hex_color=(
"#3d465c" # [0] dark border
"#1E222B" # [1] titlebar bg
"#F8F9FA" # [2] light border
"#000000" # [3] shadow
"#ffffff" # [4] white
"#59d6ff" # [5] clock color (-wm)
"#e6e6e6" # [6] date color (-wm)
"#38d13e" # [7] green
)grad_start="#5a1a1a" # top-left
grad_end="#050505" # bottom-right
grad_blur="0x20" # softness — higher = more blurredborder_size=50 # thickness in px
shadow_size="85x10+0+10" # blur x sigma + offsetX + offsetYpattern_png="/sdcard/xshot/pattern/yourfile.png"Drop any PNG into /sdcard/xshot/pattern/ and point pattern_png to it. The folder ships with a .nomedia file so nothing bleeds into the gallery.
footer_text=" Shot by Mafy | xiaocia.my.id" # autoshot / manual
owner_info=" @re.xiaocia" # timestamp mode
footer_size=30
footer_xy="+0+15"Drop a .ttf into /sdcard/xshot/fonts/ (or ~/.fonts/), then update the font name in xshot.sh:
-font JetBrains-Mono-Medium-Nerd-Font-CompleteDefault is /sdcard/Pictures/Screenshot — varies by device. Update if needed:
screenshots_path="/sdcard/Pictures/Screenshot"To verify your path and event type:
inotifywait -m -e moved_to /sdcard/Pictures/ScreenshotTake a screenshot — if the filename appears, you're good. Android uses moved_to because it writes to a .pending- temp file before renaming.
cp /path/to/xshot.sh ~/.local/bin/xshotXSHOT/
├── fonts/ # JetBrains Mono Nerd Font
├── pattern/ # PNG/SVG pattern files
├── xshot.sh # main script
├── install.sh # installer
└── README.md