liamg / shox Goto Github PK
View Code? Open in Web Editor NEW🍫 A customisable, universally compatible terminal status bar
License: The Unlicense
🍫 A customisable, universally compatible terminal status bar
License: The Unlicense
Install script fails at the point where it fetches from releases. The url right now returns a rate limited response and the install script fails with a jq: error (at <stdin>:4): Cannot iterate over null (null)
error
description state , its universal
but i don't see any window
or powershell
? varient .
I was wondering what the theme of the shell you are using in the README screenshot? I've not seen it before and it looks nice!
I'm not certain if this is a problem that you are able to fix or if this just a problem with the way that st handles rendering. However, every time the bar update there is a very noticeable flicker. I have only experienced this problem with shox so I suspect that you may be able to fix it.
I may want to know the upload and download speed sometimes when I am uploading or downloading a file. Would u consider adding network status also?
Hi,
Using the install script, I've got the latest release of shox
in ~/bin
, but when run it eats up one/two threads on a dual-core HT machine. I haven't let it run long or tested it otherwise. Any idea as to why this could be?
I'm running Debian 10, with Linux 5.5.0, zsh 5.7.1 with oh-my-zsh
. Please let me know if you need any more information.
Can someone point me to right direction with weather helper. I just cant make it work, i have tried various formats but none of them working.
im sending it as : {weather:%l: %t %c}
Hey there,
I was just checking out this utility, and it seems like I would like to use it, but there is one possibly overpowering issue. When using certain commands, it seems ones that scroll the screen a bit slower, and I try to scroll back to look at prior text, well, you can see demonstrated below.
For quicker commands that dump to the screen, it is not so bad, but you will see when I run my update && upgrade command where the issue resides.
Is there perhaps anything that can be done to eliminate this, or possibly minimize it at least, or is this just what I would have to deal with?
Thanks,
-MH
Is it possible to get the statusbar to show the application thats currently running in the terminal?
that would be a neat feature for tiling window manager users. When you run multiple terminals on one screen you need a way to very quickly distinguish them from one another.
tmux has such a feature but it's feature set is so retundand with tiling window managers that it's not worth using considdering the associated learning curve, configuration and workflow breakages.
If seen people make the tmux/screen comparison here and on hn and wholeheartedly disagree with shox beeing redundand. For me shox looks like a much more unixy tool would finally fit well into my workflow as a tiling window manager users. I'd use shox as a terminal headline of sorts.
UpdateInterval being a time seems weird for certain things.
Take path based things like git. Sure we could check every second if the branch has changed but that seems silly since we could check after a command is ran. Of if the current working directory has changed etc.
Maybe in the future somekinda event based system would be useful?
It's a cool tool. Thanks for sharing.
Hi!
This seemed like a nice project and I was looking to trying it. That said, it looks like the install instructions might be outaded.
Looking at https://raw.githubusercontent.com/liamg/shox/master/scripts/install.sh
#!/bin/bash
set -e
echo "Determining platform..."
platform=$(uname | tr '[:upper:]' '[:lower:]')
echo "Finding latest release..."
asset=$(curl --silent https://api.github.com/repos/liamg/shox/releases/latest | grep -o "https://github.com/liamg/shox/releases/download/.*/shox-$platform-amd64" | head -n1)
echo "Downloading latest release for your platform..."
curl -s -L -H "Accept: application/octet-stream" "${asset}" --output ./shox
echo "Installing shox..."
chmod +x ./shox
installdir="${HOME}/bin/"
if [ "$EUID" -eq 0 ]; then
installdir="/usr/local/bin/"
fi
mkdir -p $installdir
mv ./shox "${installdir}/shox"
which shox &> /dev/null || (echo "Please add ${installdir} to your PATH to complete installation!" && exit 1)
echo "Installation complete!"
This https://api.github.com/repos/liamg/shox/releases/latest
seems to return
{
"url": "https://api.github.com/repos/liamg/shox/releases/29853635",
"assets_url": "https://api.github.com/repos/liamg/shox/releases/29853635/assets",
"upload_url": "https://uploads.github.com/repos/liamg/shox/releases/29853635/assets{?name,label}",
"html_url": "https://github.com/liamg/shox/releases/tag/v0.0.18",
"id": 29853635,
"node_id": "MDc6UmVsZWFzZTI5ODUzNjM1",
"tag_name": "v0.0.18",
"target_commitish": "master",
"name": "v0.0.18",
"draft": false,
"author": {
"login": "liamg",
"id": 1187060,
"node_id": "MDQ6VXNlcjExODcwNjA=",
"avatar_url": "https://avatars1.githubusercontent.com/u/1187060?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/liamg",
"html_url": "https://github.com/liamg",
"followers_url": "https://api.github.com/users/liamg/followers",
"following_url": "https://api.github.com/users/liamg/following{/other_user}",
"gists_url": "https://api.github.com/users/liamg/gists{/gist_id}",
"starred_url": "https://api.github.com/users/liamg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/liamg/subscriptions",
"organizations_url": "https://api.github.com/users/liamg/orgs",
"repos_url": "https://api.github.com/users/liamg/repos",
"events_url": "https://api.github.com/users/liamg/events{/privacy}",
"received_events_url": "https://api.github.com/users/liamg/received_events",
"type": "User",
"site_admin": false
},
"prerelease": false,
"created_at": "2020-08-19T09:03:07Z",
"published_at": "2020-08-19T09:03:39Z",
"assets": [
],
"tarball_url": "https://api.github.com/repos/liamg/shox/tarball/v0.0.18",
"zipball_url": "https://api.github.com/repos/liamg/shox/zipball/v0.0.18",
"body": "- Fix rendering on OSX and IntelliJ"
}
And this grep -o "https://github.com/liamg/shox/releases/download/.*/shox-$platform-amd64" | head -n1
wont match anything 😢
Hi,
FYI, this use case seems well covered by byobu
, so it would be helpful to compare and contrast them in the readme.
--- shox/scripts ‹master› » bash install.sh 127 ↵
Determining platform...
Finding latest release...
install.sh: line 8: jq: command not found
(23) Failed writing body
In order to be easily by the user. That would be handy! ✨
When multiple {bash}
helpers are in a format string, the output of the first command is repeated for the rest.
This example produces a status bar with three segments, each printing 1
.
format: "{bash: echo 1}|{bash: echo 2}|{bash: echo 3}"
(Neat project!)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.