Comments (9)
Please let me know if this is fixed. :)
from screenfetch.
This is very much not fixed, as should be evident by the fragment
"${shotfile} 2>dev/null"
Problems are as follows
- "2>dev/null" is relative and not absolute, so it would only work assuming you have a dev directory in your current working directory and then errors would be redirected into a file called null within that directory. That first slash is quite a devil. However, this problem doesn't even arise because...
- It's in quotes with $shotfile, so if $shotfile is screen.png, screencapture is now trying to create an image called "screen.png 2>dev/null" which errors out because forward slashes can't be in filenames.
And so the line should be
if [ "$distro" == "Mac OS X" ]; then screencapture -x -T 3 "${shotfile}" &> /dev/null
from screenfetch.
Ah, yes. My bad. Check referenced commit.
from screenfetch.
It does take a screenshot now when -s is specified.
Is any text output expected? I'm not sure if scrot outputs anything or not, so I don't know what to add to emulate it.
Edit: scrot's man page says that the -cd3 included in screenfetch's call of scrot should make it display a "countdown"
OS X currently just awkwardly waits for three seconds in silence before taking a screenshot
from screenfetch.
scrot does have a countdown.
It will say "Taking shot in 3.. 2.. 1.. 0"
It starts at n and appends "n-x.. " for every second in the countdown. Screenshot is saved on count 0.
from screenfetch.
Okay, full scrot mimicry should be able to be achieved with the following line
if [ "$distro" == "Mac OS X" ]; then printf "Taking shot in 3.. "; sleep 1; printf "2.. "; sleep 1; printf "1.. "; sleep 1; printf "0.\n"; screencapture -x "${shotfile}" &> /dev/null
Just for the default screenshot action at least, which I think is all that's needed to be provided by screenfetch
from screenfetch.
See commit fe5dc7b and test, please.
from screenfetch.
Works beautifully.
from screenfetch.
Fantastic. Consider this closed.
from screenfetch.
Related Issues (20)
- Feature request: Add graphics driver version to output
- Can't display the correct info and art on KylinSec linux
- awk: can't open file /proc/cpuinfo HOT 2
- Crash - shell level (1000) too high
- BUG: screenfetch -w reports "[[ ! ]] Error: You're missing an argument somewhere. Exiting."
- Invocation causes a warning about stray \ before " in grep
- please support Xubuntu HOT 1
- Proxmox Ram issue/bug
- Bad name: Project does not do what name implies. It implies that it, itself, takes the screenshot. HOT 1
- os shows abnormal in mac osx HOT 2
- Apple Silicon Homebrew Packages location
- macOS 13.3.1 version number not shown
- extra line before RAM HOT 2
- Please create a new release HOT 3
- [Cosmetic] Missing space before the added Windows Subsystem for Linux
- NVIDIA GeForce 210 and Intel HD Graphics 2500 aren't detected
- Screen Resolution is not correct when I attach another screen via HDMI
- Linux Mint 21.2 Cinnamon DE HOT 4
- screenfetch remains locked after "Finding current CPU"
- xprop: unable to open display '172.27.16.69:0.0'
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 screenfetch.