Comments (16)
I will see about that.
I will lookup how neofetch does it, and implement that here.
I have used dwm and xmonad (on arch linux gui) , fm6000 detected the wms correctly
DESKTOP_SESSION
and XDG_SESSION_DESKTOP
were both setup correctly.
from fetch-master-6000.
xprop can be used too, but i think the best would be checking the running processes for window managers(pfetch uses this method as a fallback to xprop)
from fetch-master-6000.
yeah neofetch does that too ps
and grep
ing.
I will implement that soon.
from fetch-master-6000.
@anhsirk0 Instead of using complicated functions why not just use wmctrl if its giving direct result?
from fetch-master-6000.
@anhsirk0 Instead of using complicated functions why not just use wmctrl if its giving direct result?
It is very easy to add support for wmctrl or xprop but when we can implement it in perl, why should we prefer an external program?
from fetch-master-6000.
@anhsirk0 Instead of using complicated functions why not just use wmctrl if its giving direct result?
It is very easy to add support for wmctrl or xprop but when we can implement it in perl, why should we prefer an external program?
Exactly.
from fetch-master-6000.
Even tho its not minimal? ok doesnt matter.
from fetch-master-6000.
I updated the script. can you confirm?
from fetch-master-6000.
Even tho its not minimal? ok doesnt matter.
we don't want unneccessary dependencies and prefer to do things with the language (perl in this case) rather than using external program. This increases portability (bsd's core util and gnu core utils are not that compatible , for example uptime
gnu's uptime supports uptime -p
while bsd's does not. We are even avoiding to use grep
or awk
for the same reason.
Edit: typos
from fetch-master-6000.
I updated the script. can you confirm?
Yes it shows dwm correctly but in openbox it showing UNKNOWN
from fetch-master-6000.
added openbox to the checks too
from fetch-master-6000.
added openbox to the checks too
So this is how it gonna be? you just add the new wm to array?
Isnt there any functional way to "just detect current wm" using perl?
from fetch-master-6000.
added openbox to the checks too
So this is how it gonna be? you just add the new wm to array? Isnt there any functional way to "just detect current wm" using perl?
Sadly no
Neofetch/pfetch also does it in similar ways
from fetch-master-6000.
I added wmctrl
too.
from fetch-master-6000.
Nice. Sometime we need to improvise even if its add another dependancy. but thats the beauty of perl language we can beautifully integrate unix shell with it.
from fetch-master-6000.
Well I was slightly wrong about external dependencies. Its not like fm6000
won't work without wmctrl
or ps
etc etc.
from fetch-master-6000.
Related Issues (20)
- ls can't access '/var/db/pkg/*/*': The file or directory does not exist HOT 1
- Getting 'command not found' error on Fedora 34 HOT 3
- box distorted on custom ascii art HOT 1
- Packages data name needs to be plura
- Packages Data Title Needs To Be Plural HOT 2
- improve script HOT 3
- sh: line 1: dpkg-query: command not found HOT 2
- Not much to do with the this repository 😁 HOT 6
- I don't use pacman HOT 5
- Issue using script HOT 5
- Number of Packages is unknown (openSUSE) HOT 4
- uptime reporting incorrect HOT 4
- Support for ascii art in random option HOT 6
- Install script error
- How to set a random character? HOT 3
- Uptime is wrong and shows that there is an invalid option HOT 7
- OpenBSD HOT 4
- WM not showing HOT 4
- [Feature Request] Make script a brew formula for easy install HOT 1
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 fetch-master-6000.