Coder Social home page Coder Social logo

xpride's Introduction

xpride

A pride/sexuality/gender flags viewer written in C/xcb

It supports scaling the flag to any resolution and window aspect ratio

Dependencies

You'll need a working X11 server for this program to work, as well as the xcb library

Building and running

Use the provided build script to build the program:

 $ ./build.sh

If you don't have clang on your system, specify another compiler with:

 $ CC=gcc ./build.sh

You can then run it with a flag:

 $ ./xpride res/pride.flag

To avoid typing the full path to the flag each time, you can also copy the flags in res/ to /usr/share/flags/:

 # mkdir -p /usr/share/flags/
 # cp res/* /usr/share/flags/

(make sure to run these commands as root)

Then, you can just specify the flag's name:

 $ ./xpride pride

Debugging, hacking and contributing

You can build a debug version of the program with the following command:

 $ ./build.sh debug

This will add debugging symbols and address sanitization

If you want to submit a patch, make sure you run clang-format before every commit!

 $ clang-format -i src/*

For adding new flags

The flag format is really simple for now, it's a newline-separated list of hexadecimal colors. You can look in res/ for examples!

Submitting patches

You can either create a pull request on the GitHub page, or send it to me (zeGolem) via email. My address is available in the git log.

xpride's People

Contributors

zegolem avatar

Stargazers

 avatar

Watchers

 avatar

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.