anhsirk0 / fetch-master-6000 Goto Github PK
View Code? Open in Web Editor NEWSimple Dilbert themed system info-fetching tool
License: GNU General Public License v3.0
Simple Dilbert themed system info-fetching tool
License: GNU General Public License v3.0
when ever i add some file with by custom ASCII art the box get distorted
I used fm6000 in several wms exclusively dwm, xmonad, openbox
and everytime it shows de UNKNOWN
so i have to use -de flag and specify manually which wm i am currently using.
However I did some research and found that wmctrl can be useful to detect current wm.
sub get_de {
my $de = $ENV{DESKTOP_SESSION};
unless ($de) { $de = $ENV{XDG_SESSION_DESKTOP}
}
unless ($de) { $de = $ENV{XDG_CURRENT_DESKTOP}
}
unless ($de) { $de = `wmctrl -m | grep Name | awk '{print $2}' `}
unless ($de) { $de = "Unknown" }
return $de;
}
Here I tried to use it in my noobie way but I unable to get rid of trailing new line it gives at the end.
wmctrl -m | grep Name | awk '{print $2}'
I know implementing wmctrl might add to another dependancy stack but i think its worth it.
I hope you'd find some fix for it.
When I run the script on a Debian based OS getting that message before showing me the info box
ls can't access '/var/db/pkg/*/*': The file or directory does not exist
Line 60 in 44d8a4f
This spits out following error WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
.
I think the solution might be either to redirect the error to /dev/null
or to use dpkg-query
which both neofetch
and pfetch
use.
dpkg-query -f '\n' -W'
or dpkg-query -W -f='${binary:Package}\n'
But there was slight difference between apt list --installed | wc -l
and dpkg-query -f '\n' -W | wc -l
.
I did man apt
and found this, but I can't figure out how to get the apt list --installed
functionality using apt-get
or apt-cache
.
The apt(8) commandline is designed as an end-user tool and it
may change behavior between versions. While it tries not to
break backward compatibility this is not guaranteed either if
a change seems beneficial for interactive use.
All features of apt(8) are available in dedicated APT tools
like apt-get(8) and apt-cache(8) as well. apt(8) just
changes the default value of some options (see apt.conf(5)
and specifically the Binary scope). So you should prefer
using these commands (potentially with some additional
options enabled) in your scripts as they keep backward
compatibility as much as possible.
It would be cool to have this script be a part of the brew core packages so users can simply
brew install fm6000
and remove the manual process of cloning, making executable, and executing.
I can take a crack at it to try to get it done https://docs.brew.sh/Formula-Cookbook
In the list of packages using the command, the name of the title for the amount of packages on your system is called "PACKAGE" when it should be "PACKAGES"
Line 41 in 2f18570
Move this line after line where you install it line 36
I said NO do not install and it says installed to me
nice project by the way
love dilbert
I edited the file so that my $color='random
but would also like to do this for the character displayed.
Could not find how to do this, any idea?
On running the install script. fm6000 is installed correctly but the script prints out some error.
the error:
sh: line 166: return: can only 'return' from a function or sourced script
Hi there, love this script but would it be possible to add support for random colours and/or random character e.g. it picks a random ASCII character and random colours each time you run the script when you pass it a "--random" or "-r" flag or something?
It should be great to be able to provide directory of random ascii art text files and -r flag could randomly shuffle them
Pretty straight forward request: Please add a (FLOSS) license to this repo :)
Had some problems with OpenBSD support (made a fork).
Added following lines to get_uptime seems fixing it...
sub get_uptime { my $seconds; my $now = time(); # macOS if ($os eq "OSX") { my $boot =
sysctl -n kern.boottime; ($boot) = $boot =~ /{ sec = (\d+)/; $seconds = $now - $boot; } elsif ($os eq "OpenBSD") { my $boot =
sysctl -n kern.boottime; $seconds = $now - $boot;
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.