xstatus
Version, currently 0.1.12 versions
- 0.1.1latestOct 6, 2024
- 0.1.0not indexedNov 13, 2024
github.com/restart-archive/xstatus
status bar for x11, written in Crystal
6 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
xstatus:
github: restart-archive/xstatus
version: ~> 0.1.1Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- RestartFU
Dependencies
Runtime Dependencies
README
## Configuration
You may edit `src/config.cr` to configure xstatus as you see fit.
```crystal
module Config
extend self
def run(args : Array(String)) : String
io = IO::Memory.new
Process.run(args.join(" "), shell: true, output: io)
io.to_s
end
def text(s : String, a : Array(String)) : String
s
end
def date(s : String, a : Array(String)) : String
outp = run(["date", a.join(" ")])
s.gsub("%s", outp).rstrip
end
struct Field
getter function : String, Array(String) -> String
getter format : String
getter arguments : Array(String)
def initialize(@function, @format, @arguments); end
end
CONFIG = [
# FUNCTION FORMAT ARGUMENTS
Field.new(->text(String, Array(String)), "Pr4gu3", [""]),
Field.new(->date(String, Array(String)), "%s", ["+%r"]),
]
end
```
## Setup
To install this project, run:
```
$ git clone https://github.com/restartfu/xstatus
$ cd xstatus
$ sudo make install
```
Or one liner:
```
$ git clone https://github.com/restartfu/xstatus && cd xstatus && sudo make install
```
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.1- Tagged
- Oct 6, 2024
- Commit
f33405484c5c- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/restart-archive/xstatus
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 2