Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Task: Fastfetch 5
- A1: Termux [
- Configuration: ff.sh
- Working Directory ✕
- Stdin ✕
- Custom Log Level null
- Terminal Session ✕
- Wait For Result ✓
- Timeout (Seconds): 10
- Structure Output (JSON, etc): On ]
- A2: Variable Set [
- Name: %json
- To: %stdout
- Structure Output (JSON, etc): On ]
- A3: Variable Set [
- Name: %objects
- To: %json[=:=root=:=](#)
- Structure Output (JSON, etc): On ]
- A4: Variable Set [
- Name: %idx_d
- To: 0
- Structure Output (JSON, etc): On ]
- A5: For [
- Variable: %obj
- Items: %json[=:=root=:=]()
- Structure Output (JSON, etc): On ]
- A6: If [ %obj.error !Set ]
- <OS>
- A7: If [ %obj.type ~ OS ]
- A8: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A9: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A10: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result.name %obj.result.codename %obj.result.version ]
- <Host>
- A11: Else
- If [ %obj.type ~ Host ]
- A12: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A13: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A14: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result.name ]
- <Kernel>
- A15: Else
- If [ %obj.type ~ Kernel ]
- A16: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A17: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A18: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result.name %obj.result.release ]
- <Uptime>
- A19: Else
- If [ %obj.type ~ Uptime ]
- A20: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A21: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- <Convert uptime to seconds>
- A22: Variable Set [
- Name: %sec
- To: %obj.result.uptime / 1000
- Do Maths: On
- Max Rounding Digits: 0
- Structure Output (JSON, etc): On ]
- <Display uptime seconds in <b>days:hours:minutes:seconds</b> format>
- A23: Perform Task [
- Name: Seconds to 00:00:00:00
- Priority: %priority
- Parameter 1 (%par1): %sec
- Return Value Variable: %ret
- Structure Output (JSON, etc): On ]
- A24: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %ret ]
- <Packages>
- A25: Else
- If [ %obj.type ~ Packages ]
- A26: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A27: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A28: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result.dpkg ]
- <Shell>
- A29: Else
- If [ %obj.type ~ Shell ]
- A30: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A31: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A32: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result.exeName %obj.result.version ]
- <WM>
- A33: Else
- If [ %obj.type ~ WM ]
- A34: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A35: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A36: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result.processName ]
- <Terminal>
- A37: Else
- If [ %obj.type ~ Terminal ]
- A38: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A39: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A40: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result.prettyName %obj.result.version ]
- <CPU>
- A41: Else
- If [ %obj.type ~ CPU ]
- A42: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A43: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A44: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result.packages x %obj.result.cpu (%obj.result.cores.online) @ %obj.result.frequency.max ]
- <GPU>
- A45: Else
- If [ %obj.type ~ GPU ]
- A46: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A47: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A48: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result.name [%obj.result.type] ]
- <Memory>
- A49: Else
- If [ %obj.type ~ Memory ]
- A50: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A51: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A52: Variable Convert [
- Name: %obj.result.used
- Function: Bytes to Gigabytes
- Store Result In: %used
- Mode: Default ]
- A53: Variable Convert [
- Name: %obj.result.total
- Function: Bytes to Gigabytes
- Store Result In: %total
- Mode: Default ]
- A54: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %used GiB / %total GiB ]
- <Swap>
- A55: Else
- If [ %obj.type ~ Swap ]
- A56: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A57: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A58: Variable Convert [
- Name: %obj.result.used
- Function: Bytes to Gigabytes
- Store Result In: %used
- Mode: Default ]
- A59: Variable Convert [
- Name: %obj.result.total
- Function: Bytes to Gigabytes
- Store Result In: %total
- Mode: Default ]
- A60: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %used GiB / %total GiB ]
- <Disk>
- A61: Else
- If [ %obj.type ~ Disk ]
- A62: Variable Set [
- Name: %disks
- To: %obj.result(#)
- Structure Output (JSON, etc): On ]
- A63: For [
- Variable: %disk
- Items: %obj.result()
- Structure Output (JSON, etc): On ]
- A64: Write File [
- File: Documents/ff.parse.txt
- Text: %disk.mountpoint %disk.bytes.free %disk.bytes.total
- Append: On
- Add Newline: On ]
- A65: If [ %disk.mountpoint eq / | %disk.mountpoint ~R /mnt/media_rw/* | %disk.mountpoint ~R /storage/emulated ]
- A66: Variable Convert [
- Name: %disk.bytes.used
- Function: Bytes to Gigabytes
- Store Result In: %used
- Mode: Default ]
- A67: Variable Convert [
- Name: %disk.bytes.total
- Function: Bytes to Gigabytes
- Store Result In: %total
- Mode: Default ]
- A68: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A69: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type (%disk.mountpoint) ]
- A70: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %used GiB / %total GiB ]
- A71: End If
- A72: End For
- <LocalIp>
- A73: Else
- If [ %obj.type ~ LocalIp ]
- A74: For [
- Variable: %ips
- Items: %obj.result()
- Structure Output (JSON, etc): On ]
- A75: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A76: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type (%ips.name) ]
- A77: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %ips.ipv4 ]
- A78: End For
- <Battery>
- A79: Else
- If [ %obj.type ~ Battery ]
- A80: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A81: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A82: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result.capacity% [%obj.result.status] ]
- <Locale>
- A83: Else
- If [ %obj.type ~ Locale ]
- A84: Variable Add [
- Name: %idx_d
- Value: 1
- Wrap Around: 0 ]
- A85: Array Push [
- Variable Array: %type
- Position: %idx_d
- Value: %obj.type ]
- A86: Array Push [
- Variable Array: %data
- Position: %idx_d
- Value: %obj.result ]
- A87: End If
- A88: End If
- A89: End For
- A90: Multiple Variables Set [
- Names: %type_color,%data_color,%bg_color
- Variable Names Splitter: ,
- Values: #FF10C610,#FFFFFFFF,#AA000000
- Values Splitter: ,
- Structure Output (JSON, etc): On ]
- A91: Variable Set [
- Name: %size
- To: 14
- Structure Output (JSON, etc): On ]
- A92: Variable Set [
- Name: %pad_top
- To: 15
- Structure Output (JSON, etc): On ]
- A93: Variable Set [
- Name: %pad_left
- To: 25
- Structure Output (JSON, etc): On ]
- A94: Widget v2 [
- Widget Name: Fastfetch
- Layout: Custom
- Custom Layout: {
- "scrolling": true,
- "children": [
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(1)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(1)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(2)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(2)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(3)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(3)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(4)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(4)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(5)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(5)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(6)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(6)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(7)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(7)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(8)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(8)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(9)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(9)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(10)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(10)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(11)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(11)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(12)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(12)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(13)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(13)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(14)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(14)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(15)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(15)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(16)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(16)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(17)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(17)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(18)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(18)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- },
- {
- "children": [
- {
- "color": "%type_color",
- "fontFamily": "Monospace",
- "text": "%type(19)",
- "textSize": "%size",
- "padding": {
- "start": "%pad_left"
- },
- "type": "Text"
- },
- {
- "color": "%data_color",
- "fontFamily": "Monospace",
- "text": ": %data(19)",
- "textSize": "%size",
- "type": "Text"
- }
- ],
- "horizontalAlignment": "Start",
- "backgroundColor": "%bg_color",
- "type": "Row"
- }
- ],
- "horizontalAlignment": "Start",
- "verticalAlignment": "Center",
- "backgroundColor": "%bg_color",
- "fillMaxSize": true,
- "padding": {
- "top": "%pad_top"
- },
- "type": "Column",
- "useMaterialYouColors": true
- }
- Material You Colors: On
- Ask To Add If Not Present: On ]
- A95: Flash [
- Text: Finished
- Continue Task Immediately: On
- Dismiss On Click: On ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement