Giter VIP home page Giter VIP logo

arch-wiki-dmenu's Introduction

Hey there!

I am a rust developer making cool software as a hobby.

arch-wiki-dmenu's People

Contributors

kirottu avatar magnus-isu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

magnus-isu

arch-wiki-dmenu's Issues

Doesn't work on wayland.

You could fix this by changing the script to the following:

#!/bin/bash

dmenu=dmenu
wayland=`loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}'`
[[ $wayland = wayland ]] && dmenu="fuzzel -d"

opener=xdg-open
type $opener >/dev/null || opener=surf

WIKI_PATH=/usr/share/doc/arch-wiki/html/en

WIKI_SEARCH=$(du -a $WIKI_PATH | cut -f2 | cut -d/ -f8 | sed 's/.html//g' | $dmenu -i)
WIKI="$WIKI_PATH/$WIKI_SEARCH.html"

if [ -n "$WIKI_SEARCH" ]; then
        $opener $WIKI
fi

Then you need to have fuzzel installed for wayland support.

I see you maintain it on the AUR as well. It would be awesome if you could add this there and add a dependency for xdg-utils rather than surf since xdg-open will work for anyone.

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.