GithubHelp home page GithubHelp logo

liamg / shox Goto Github PK

View Code? Open in Web Editor NEW
700.0 8.0 20.0 10.6 MB

🍫 A customisable, universally compatible terminal status bar

License: The Unlicense

Go 96.31% Makefile 0.37% Shell 3.32%
status-bar terminal customization customisation

shox's Issues

Theme of shell in the screenshot

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!

Flickers on Simple Terminal (st)

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.

100% CPU usage

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.

image

weather plugin not working ?

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}

Scrollback often times ends up being unusable. The nature of the tool, or is there possibly a way to minimize it?

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

Current running program or window name

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.

Event System

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.

Current install instructions seem to be broken.

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 😢

Comparison with byobu

Hi,

FYI, this use case seems well covered by byobu, so it would be helpful to compare and contrast them in the readme.

ANSI escape sequence visible after running clear

After running clear I can see an ANSI character sequence printed to my terminal which I presume should be getting interpreted properly, also my prompt appears half way down the screen, this behaviour occurred in kitty and urxvt.

1582790167_Feb27_18:26:07

max one bash helper supported

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!)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.