{"id":25168693,"url":"https://github.com/inunix3/dshw","last_synced_at":"2025-05-01T13:41:33.519Z","repository":{"id":244837164,"uuid":"816097963","full_name":"inunix3/dshw","owner":"inunix3","description":"A dead simple CLI program to query information about system and hardware.","archived":false,"fork":false,"pushed_at":"2024-06-28T12:20:40.000Z","size":76,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T13:09:00.474Z","etag":null,"topics":["cli","cpu","disk","just-for-fun","memory","network","rust","sysinfo","system-information"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/dshw","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inunix3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-17T03:18:31.000Z","updated_at":"2025-02-07T13:57:00.000Z","dependencies_parsed_at":"2024-06-26T11:51:45.528Z","dependency_job_id":null,"html_url":"https://github.com/inunix3/dshw","commit_stats":null,"previous_names":["inunix3/dshw"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inunix3%2Fdshw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inunix3%2Fdshw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inunix3%2Fdshw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inunix3%2Fdshw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inunix3","download_url":"https://codeload.github.com/inunix3/dshw/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251882740,"owners_count":21659322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cpu","disk","just-for-fun","memory","network","rust","sysinfo","system-information"],"created_at":"2025-02-09T07:18:40.556Z","updated_at":"2025-05-01T13:41:33.497Z","avatar_url":"https://github.com/inunix3.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dshw\nA dead simple CLI program to query information about system and hardware. Basically a CLI wrapper\nover the [sysinfo](https://crates.io/crates/sysinfo) crate.\n\nInitially it was written to configure a Wayland bar (yes, reinventing the wheel), but playing with\nthe sysinfo crate has gone too far...\n\nWritten just for fun.\n\n## Features\n- Query about:\n    - CPU\n    - Sensors\n    - Memory\n    - Swap memory\n    - Drives\n    - OS\n    - Network\n- Multiple queries can be issued (`dshw memory total usage available free`)\n- Custom delimiter is supported (`dshw -d ', ' drive /dev/sda3 total available usage fs mount-point`)\n- Command-specific string formatting (`dshw -f 'I use %release-id% btw, my total cpu usage is %total-cpu-usage% %%' os`\nmay yield `I use arch btw, my total cpu usage is 2.15 %`)\n- Specify how many times to run and set interval between commands (`dshw -I 1s -n 5 os total-cpu-usage`).\n- Specify the unit of information for memory, swap, drive, and network commands (`dshw -u gib memory total`)\n\n## Usage\nTo print total and available memory:\n```\n~ $ dshw memory total available\n16689270784\n10336894976\n```\n\nSome commands like `cpu`, `sensor` or `drive` take a name/id as the first **required** argument:\n```\n~ $ dshw drive /dev/sda3 fs usage total\next4\n259652198400\n474853687296\n```\n\nSome commands take zero arguments:\n```\n~ $ dshw list-sensors\nacpitz temp1\nacpitz temp2\ncoretemp Core 1\ncoretemp Core 5\ncoretemp Package id 0\ncoretemp Core 2\ncoretemp Core 4\ncoretemp Core 7\ncoretemp Core 0\ncoretemp Core 6\ncoretemp Core 3\namdgpu edge\n```\n\nYou can also specify a desired delimiter:\n```\n~ $ dshw -d ', ' list-cpus\ncpu0, cpu1, cpu2, cpu3, cpu4, cpu5, cpu6, cpu7, cpu8, cpu9, cpu10, cpu11, cpu12, cpu13, cpu14, cpu15\n```\n\nYou can also format a string with desired parameters:\n```\n~ $ dshw -f '%usage%/%total% bytes' memory\n8163627008/16689266688 bytes\n```\n\nFormatting is supported even by commands, that require a name/id argument:\n```\n~ % dshw -f '%frequency%, %vendor-id%' cpu cpu7\n2719, GenuineIntel\n```\n\nFormat specifiers can be entered in any case (`%FReQUEnCy%` = `%frequency%`).\n\nType `dshw help` to see all commands. Type, for example, `dshw help os` to see all OS related subcommands.\n\n## Installation\nYou'll need the Rust toolchain ([rustup](https://rustup.rs/) or from system package repo) and make\nsure it's up to date.\n\nWhen the toolchain will be prepared, type `cargo install dshw`.\n\nIf you have installed successfully dshw, you can now run the it simply by typing `dshw`. If\nthe shell says that the command does not exists, make sure that `$HOME/.cargo/bin` (or whatever the\ndefault cargo dir will be) is in the PATH environment variable.\n\nTo see all available options, pass `-h`, `--help` or `help`.\n\n## Contribution\nIf you have found a problem or have a suggestion, feel free to open an issue or send a pull request.\nI'd appreciate it.\n\n## License\ndshw is licensed under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finunix3%2Fdshw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finunix3%2Fdshw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finunix3%2Fdshw/lists"}