Giter Club home page Giter Club logo

fetch-master-6000's Issues

unable to detect DE or WM

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.

WM not showing

I use "xmonad" but it does not show and instead is blank.

2021-05-03_16:17:06

Number of Packages is unknown (openSUSE)

No matter what I try and add to show the number of packages it always comes up with unknown
Screenshot_20220306_123830
. I am using a custom command for customization in my bashrc.
I was wondering if there was a way to add the package count manually to the command in openSUSE?

Use `dpkg-query` instead of `apt`.

unless($pacs) { $pacs = `apt list --installed`; }

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.

Packages Data Title Needs To Be Plural

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"

improve script

echo "Fetch-master-6000 is succesfully installed"

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

How to set a random character?

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?

Install script error

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

Random colours and characters

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?

Add a license

Pretty straight forward request: Please add a (FLOSS) license to this repo :)

Getting 'command not found' error on Fedora 34

I followed every step as it is and when i run it, i am getting an error message sh: line 1: dpkg-query: command not found along with the fm6000 output. i'm also attaching a screenshot of the error.
fm6000_error_fedora_34

OpenBSD

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;

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.