Comments (21)
Hope that this software could be run/install directilly from MacOSX's terminal.
from hollywood.
There is a version for MacOSX (should work for intel and M1)
To install:
brew tap real-aazam/homebrew-aazam
brew install hollywood
To run:
Type hollywood
If you have issues or suggestions for improvements for the Mac version, you can post here:
https://github.com/real-aazam/hollywood
from hollywood.
I made a little progress on this but am going to stop for now. Documenting what I did so far in case someone else wants to pick it up:
- Install homebrew
- Run
brew install tmux
andbrew install coreutils
- Replace
sort -R
withgsort -R
- Run
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
to enable thelocate
command
Here's a patch for the gsort
replacement:
diff --git a/bin/hollywood b/bin/hollywood
index 5d5bcdd..0cd4154 100755
--- a/bin/hollywood
+++ b/bin/hollywood
@@ -40,7 +40,7 @@ while [ ! -z "$1" ]; do
esac
done
-widget1=$(ls "$widget_dir/" | sort -R | head -n1)
+widget1=$(ls "$widget_dir/" | gsort -R | head -n1)
arrangements="main-horizontal main-vertical tiled"
if [ -z "$TMUX" ]; then
@@ -65,7 +65,7 @@ tmux new-window -n $PKG "$widget_dir/$widget1" \; \
split=1
sleep 0.5
-for w in $(ls "$widget_dir" | sort -R); do
+for w in $(ls "$widget_dir" | gsort -R); do
[ "$w" = "$widget1" ] && continue
[ "$dir" = "-v" ] && dir="-h" || dir="-v"
panes=$(tmux lsp -t $PKG)
diff --git a/bin/wallstreet b/bin/wallstreet
index 20b3b43..5e88362 100755
--- a/bin/wallstreet
+++ b/bin/wallstreet
@@ -23,7 +23,7 @@ trap "rm -rf $TMPDIR; pkill -f -9 lib/$PKG/ >/dev/null 2>&1; exit 0" EXIT HUP IN
dir="-v"
widget_dir="$(dirname $0)/../lib/$PKG"
-widget1=$(ls "$widget_dir/" | sort -R | head -n1)
+widget1=$(ls "$widget_dir/" | gsort -R | head -n1)
if [ -n "$1" ]; then
SPLITS="$1"
diff --git a/lib/hollywood/code b/lib/hollywood/code
index e906130..715e9b8 100755
--- a/lib/hollywood/code
+++ b/lib/hollywood/code
@@ -19,7 +19,7 @@ command -v view >/dev/null 2>&1 || exit 1
trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
while true; do
- FILES=$(locate "/usr/*.java" "/usr/*.c" "/usr/*.cpp" | sort -R | head -n 4096) || true
+ FILES=$(locate "/usr/*.java" "/usr/*.c" "/usr/*.cpp" | gsort -R | head -n 4096) || true
for f in $FILES; do
[ -r "$f" ] || continue
[ -s "$f" ] || continue
diff --git a/lib/hollywood/errno b/lib/hollywood/errno
index 9e407a6..fb8d7f2 100755
--- a/lib/hollywood/errno
+++ b/lib/hollywood/errno
@@ -19,6 +19,6 @@ command -v ccze >/dev/null 2>&1 || exit 1
trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
while true; do
- errno --list | sort -R | ccze -A
+ errno --list | gsort -R | ccze -A
sleep 0.6
done
diff --git a/lib/hollywood/hexdump b/lib/hollywood/hexdump
index b535597..8a33137 100755
--- a/lib/hollywood/hexdump
+++ b/lib/hollywood/hexdump
@@ -19,7 +19,7 @@ command -v ccze >/dev/null 2>&1 || exit 1
trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
while true; do
- for f in $(ls /usr/bin/ | sort -R); do
+ for f in $(ls /usr/bin/ | gsort -R); do
head -c 4096 "/usr/bin/$f" | hexdump -C | ccze -A -c default=green -c dir="bold green"
sleep 0.7
done
diff --git a/lib/hollywood/jp2a b/lib/hollywood/jp2a
index 11d2ead..f73d564 100755
--- a/lib/hollywood/jp2a
+++ b/lib/hollywood/jp2a
@@ -19,7 +19,7 @@ command -v jp2a >/dev/null 2>&1 || exit 1
trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
while true; do
- FILES=$(locate "/usr/*jpg" | sort -R | head -n 4096)
+ FILES=$(locate "/usr/*jpg" | gsort -R | head -n 4096)
for f in $FILES; do
[ -r "$f" ] || continue
[ -s "$f" ] || continue
diff --git a/lib/hollywood/man b/lib/hollywood/man
index 5bb7fe8..489aa6b 100755
--- a/lib/hollywood/man
+++ b/lib/hollywood/man
@@ -19,7 +19,7 @@ command -v ccze >/dev/null 2>&1 || exit 1
trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
while true; do
- FILES=$(ls /usr/share/man/man1/ | sort -R | sed "s/\.1\.gz.*$//" | head -n 4096)
+ FILES=$(ls /usr/share/man/man1/ | gsort -R | sed "s/\.1\.gz.*$//" | head -n 4096)
for f in $FILES; do
man "$f" | ccze -A
sleep 0.2
diff --git a/lib/hollywood/stat b/lib/hollywood/stat
index 205d25f..acf3c37 100755
--- a/lib/hollywood/stat
+++ b/lib/hollywood/stat
@@ -19,7 +19,7 @@ command -v ccze >/dev/null 2>&1 || exit 1
trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit" HUP INT QUIT TERM
while true; do
- for f in $(find /sys /dev 2>/dev/null | sort -R | head -n 4096); do
+ for f in $(find /sys /dev 2>/dev/null | gsort -R | head -n 4096); do
stat "$f" | ccze -A -c default=yellow
sleep 0.8
done
from hollywood.
from hollywood.
I tried docker run -it jess/hollywood sh
on MacOSX Terminal, and then ran hollywood
within the container, and all I got was a bottom bar and some flickering.
from hollywood.
docker run --rm -it bcbcarl/hollywood
works for me.
Mac OS Big Sur 11.6
from hollywood.
Found it much easier to run from a container, try https://hub.docker.com/r/jess/hollywood/
from hollywood.
@failathon when i use 'docker run jess/hollywood' to launch it.It shows 'open terminal failed: not a terminal'.Do you got a doc on how to use it.
from hollywood.
I'm having a similar issue to @dxniel7402. Hollywood starts with a connected TTY, shows the byobu terminal, then does nothing for a random amount of time, and then exits (so, the screen is cleared except for [exited]
and the next prompt).
from hollywood.
I faced problems of commentators above (@dmacks @MagnusBrzenk @TangentFoxy ) using jess/hollywood
docker image.
But solved it running fresh ubuntu 21:10 image (docker run -it --rm ubuntu:21.10
) and run apt update && apt upgrade && apt -y install hollywood && hollywood
. ps: --rm
removes container after usage
During installation two packages ask to choose some options, just press 1
everywhere.
If I push the docker image to dockerhub I'll post it here.
from hollywood.
did this command: docker run -it jess/hollywood
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
btw i us mac
from hollywood.
My attempt on OS X 10.13...
Also important to set TMPDIR in shell-env (probably docker does that?) or else replace "/dev/shm" with "/tmp" or other tempdir in various files. With the latest tmux installed and coreutils with the "g" prefix patch, I get as far as MagnusBrzenk, with some horizontal and vertical dividers every few seconds. But no actual modules fill any of the sections.
from hollywood.
@dustinkirkland it works.thanks a lot.
from hollywood.
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
btw i us mac
@J0hsHH that sounds like a Docker issue. Can you try reinstalling Docker; preferably Docker Desktop?
from hollywood.
Hi,
I'm getting following error:
✘ daniel@Daniels-Mac-mini ~/.ssh docker run -it jess/hollywood
user@f0cac04d1ab7:~> /usr/bin/hollywood
[exited]
Can someone help me?
from hollywood.
Are you just trying to run the hollywood app? Just open a terminal and type "hollywood" without the quotes of course...
from hollywood.
@aifans are the graphics being displayed properly for you?
from hollywood.
Are there any version for M1 chip?
from hollywood.
@smartsl As you see in the above comments, there isn't any version for macOS (intel nor m1). So you should use docker solutions written in the above comments.
from hollywood.
docker run --rm -it bcbcarl/hollywood
works for me. Mac OS Big Sur 11.6
Still working in 2024 on Sonoma / Applle Silicon 👍 👍
from hollywood.
from hollywood.
Related Issues (20)
- script doesn't do anything HOT 7
- Usage of hollywood in `Paint it Green - A SUSE Music Parody` HOT 1
- -s and -d keys do not work HOT 5
- Sound doesn't work in Debian testing
- Doesn't kill after closing
- Depends on mplayer, which is not mentioned / installed automatically HOT 2
- macOS pkg HOT 3
- Add option to run without any nice adjustments, to purposefully slow the machine down HOT 1
- Stops Network Manager on Ubuntu 20.04 HOT 1
- soundwave.mp4 broken HOT 2
- Improve readme
- Suggestions for new programs to run in panes HOT 7
- is this maintaind HOT 2
- Hexdump to nms HOT 3
- how to run it as well ,gentoo? HOT 1
- Use github releases for easier packaging HOT 1
- Some links for wallstreet are broken
- Please add support for screen backend (vs tmux) HOT 3
- AttributeError: 'GraphDisplay' object has no attribute 'sizing'
- New PPA's ?
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 hollywood.