Comments (3)
Use #!/bin/bash
Looks like sh does not know -n option for echo:
From man echo:
Most notably, the builtin echo in sh(1) does not accept the -n option.
On Fri, Mar 13, 2015 at 2:04 AM Jonathan Lane [email protected]
wrote:
When I try to use anybar from a shell script, I can't seem to get it to
change the icon to anything but "question". I'm sure that it's something
I'm doing wrong. It is actually changing the icon, but it's like the colour
isn't getting sent through properly? I've tried using single quotes,
escaping the quotes -- what am I doing wrong?#!/bin/shecho -n "black" | nc -4u -w0 localhost 1738
—
Reply to this email directly or view it on GitHub
#17.
from anybar.
Thank you. That did the trick!
from anybar.
Same problem here. Won't run from within a script, even after trying this:
#!/bin/bash
echo -n "black" | nc -4u -w0 localhost 1738
Any ideas?
from anybar.
Related Issues (20)
- Icons support
- nc: invalid option -- 4 HOT 3
- [Security] Path Traversal HOT 2
- How to prevent anybar from stealing my current window focus? HOT 2
- Support XDG Base Directory Specification for custom image folder HOT 1
- Mojave: shell command with nc exiting with nc error HOT 2
- emoji HOT 1
- Flashing Icon Feature Req HOT 2
- The executable in AnyBar-0.2.0.zip has version number 0.1.4 HOT 2
- Feature Request: arbitrary message HOT 2
- Pass starting color to AnyBar? HOT 4
- Error on trying to open the app HOT 2
- Big Sur dynamically switches between black and white icons depending on desktop background HOT 6
- Alfred workflow link broken HOT 1
- Can't open on Mac OS 10.15.7 HOT 2
- 0.2.3 opening old style dots on 10.15.7 HOT 4
- bash' network redirection preferred over nc HOT 4
- Would it be possible to not display a warning AnyBar icon in the menu bar when the port is already taken? HOT 5
- Start automatically on traffic HOT 2
- "_alt" images for dark system appearance setting not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anybar.