Coder Social home page Coder Social logo

hypr's Introduction

Cybersnake223


  • ๐Ÿ”ญ I'm a Linux Enthusiast who likes to play around with Computers and stuff.
  • ๐ŸŒฑ Iโ€™m currently in college (Ik it sucks) and learning how to code properly while trying to be completely sane during the process. ๐Ÿ˜‚
  • ๐Ÿค– Casually Scripting for fun.
  • ๐Ÿ‘€ Also do Ricing for fun. ๐Ÿ˜๐Ÿ˜

Top Langs

Cybersnakes Github Activity Graph

๐Ÿ’ป Operating System: 
    Cybersnake Customs ( I use Arch BTW!!! )

๐ŸชŸ Window Manager:
    Vicious Viper ( Hyprland )

๐Ÿ“ Editor:
    Neovim ( Anyday Everyday FOREVER )

hypr's People

Contributors

cybersnake223 avatar jux1n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hypr's Issues

music player append

i use random players so i made this patch

tested with vlc, rhythmn box.

thanks from reddit.


/waybar/bin/playerinfo

cd Down 
#!/bin/sh

# Get list of active players
players=$(playerctl -l)

# Check if any player is active
if [ -n "$players" ]; then
    # Iterate through each player
    for player in $players; do
        # Get player's status
        status=$(playerctl -p "$player" status 2>/dev/null)

        # Check if player is playing
        if [ "$status" = "Playing" ]; then
            # Get metadata for the player
            metadata=$(playerctl -p "$player" metadata --format {{'title'}} 2>/dev/null)

            if [ -n "$metadata" ]; then
                # Print filtered metadata
                echo "$player":"$metadata" | sed -E 's/[[:space:]]+/-/g' 
            else
                echo "No artist or title found for $player"
            fi
        fi
    done
#if a player is paused or w/e still displayed on playerctl -l
    echo "No audio player is active"
else 
#all other isntances
    echo "No audio player is active"
fi

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.