Skip to content

Instantly share code, notes, and snippets.

View cirrusUK's full-sized avatar
💭
Dunroamin, Duncarin, Dunlivin.

cirrus cirrusUK

💭
Dunroamin, Duncarin, Dunlivin.
View GitHub Profile
@cirrusUK
cirrusUK / ace.sh
Last active January 19, 2019 23:49
wrapper scripts for playing media via: get_iplayer,acestream,sopcast and peerflix : commonly used in conjunction with the ('open with') https://github.com/darktrojan/openwith browser extension.
#!/usr/bin/env bash
#
## Script used in conjunction with the firefox 'open with' extension
## [https://github.com/darktrojan/openwith], for watching acestreams via right click menu.
## using [https://github.com/jonian/acestream-launcher]
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
@cirrusUK
cirrusUK / fontconfig conf.d 45-input.conf
Last active March 12, 2016 15:49
fontconfig for input font family
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- monospace -->
<alias>
<family>Input Mono</family>
<default>
<family>monospace</family>
@cirrusUK
cirrusUK / piper
Last active September 19, 2022 13:29
custom handlers
#!/usr/bin/env bash
# Simple script to redirect url's opened from termimal.
# set this file as your terminal emulators URL handler/Browser
#you tube and other video URL's will open in mpv, image links .png,jpg etc. will open in feh
#everything else will open in firefox
#author : Veekicks #archlinix-offtopic
# A function containing a case list of options
open() {
case "$1" in
*youtube.com*|*dailymotion.com*|*invidious*|*yewtu.be*|*uktvplay.uktv.co.uk*|*youtu.be*|*vidlox.me*|*vidzi.tv*|*flix555.com*|*.webm*|*.mp4*|*.avi|*.gif|*.gifv|*.mkv) mpv --script=/home/cirrus/.config/mpv/scripts/mynotify.lua --no-osd-bar --ontop --geometry=920x500+185+135 "$1" >/dev/null 2>&1 ;;
#!/bin/sh
DISPLAY=:0.0 feh --bg-scale '/mnt/INT2/pictures/dsomarch.png'
DISPLAY=:1.1 feh --bg-scale '/mnt/INT2/pictures/wallpaper/dwm-linux.jpg'
#xdg-open is part of the xdg-utils package available in the official repositories. It is for use inside a desktop session only, and should not be run as root.
If you run xdg-open without a desktop environment, you should also install perl-file-mimeinfo, or xdg-utils-mimeo(AUR) and mimeo(AUR) from the (AUR) for a faster alternative.
#To change an associated desktop entry, use:
xdg-mime default application.desktop mime/type
#For example set Thunar as the default file browser just run:
xdg-mime default Thunar.desktop inode/directory
.M3U8 audio/x-mpegURL or application/x-mpegURL or vnd.apple.mpegURL
mpv 'https://www.youtube.com/playlist?list=PL7ykCJqlS3T4Z2L8Xxld2OqCZ07B4ntKZ'
mpv 'https://www.youtube.com/playlist?list=PL7ykCJqlS3T4dgZtfNE7dxDDA38G48tCD'
mpv 'https://www.youtube.com/playlist?list=PL7ykCJqlS3T6ZLFVh__IXwg4uACQk2-ax'
mpv 'https://www.youtube.com/playlist?list=PL7ykCJqlS3T4lolVT98aiTpI5VGJMvtf-'
@cirrusUK
cirrusUK / config
Created January 1, 2016 22:05
vimb
set editor-command=nvim-run %s
set spell-checking=true
set minimumfontsize=9.5
set monofontsize=9.5
set fontsize=9.5
set cursivfont=DejaVu Serif 9.5
set defaultfont=DejaVu Sans 9.5
@cirrusUK
cirrusUK / arena.sh
Last active April 27, 2024 06:25
Simple dialouge box for choosing streams, requires sopcast-launcher, acestream-launcher, zenity & mpv
#! /bin/bash
#dialouge box for playing acestream streams, requires acestream launcher & mpv
action=$(zenity --window-icon "/usr/share/zenity/zenity.png" --list \
--column=" 📺 Stream Listing 📺" --text=" 🐧 Pick a stream: ⏬↓📺📺📺📺📺↓⏬ 🐧 " \
"acetv" "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44")
ret=$?
[[ $ret -eq 1 ]] && exit 0
case $action in
Alias "avoice" => "/input insert /msg chanserv VOP #cirrus ADD <NICK>" created ∟
๑•ิ.•ั๑ ๑۩۞۩๑ ♬✿.。.:* ★ ☆ εїз℡❣·۰•●○●ōゃ ♥ ♡๑۩ﺴ ☜ ☞ ☎ ☏♡ ⊙◎ ☺ ☻✖╄ஐﻬ ► ◄ ▧ ▨ ♨ ◐ ◑ ↔ ↕ ▪ ▫ ☼ ♦ ▀ ▄ █▌ ▐░ ▒ ▬♦ ◊ ◦ ☼ ♠♣ ▣ ▤ ▥ ▦ ▩ ◘ ◙ ◈ ♫ ♬ ♪ ♩ ♭ ♪ の ☆ → あ ぃ £ ❤# @ & * ❁ ❀ ✿ ✾ ❃ ✺ ❇ ❈ ❊ ❉ ✱ ✲ ✩ ✫ ✬ ✭ ✮ ✰ ☆ ★ ✪ ¤ ☼ ☀ ☽ ☾ ❤ ♡ ღ☻ ☺ ❂ ◕ ⊕ ☉ Θ o O ♋ ☯ ㊝ ⊙ ◎◑ ◐ ۰ • ● ▪ ▫ 。 ゚ ๑ ☜ ☞ ☂ ♨ ☎ ☏ × ÷ = ≠ ≒ ∞ ˇ ± √ ⊥▶ ▷ ◀ ◁ ☀ ☁ ☂ ☃ ☄ ★ ☆ ☇ ☈ ☉ ☊ ☋ ☌ ☍ ☑ ☒☢ ☸ ☹ ☺ ☻ ☼ ☽ ☾ ♠ ♡ ♢ ♣ ♤ ♥ ♦ ♧ ♨ ♩ ✙ ✈ ✉ ✌ ✁♝ ♞♯♩♪♫♬♭♮ ☎ ☏ ☪ ♈ ♨ ₪ ™ ♂✿ ♥ の ↑ ↓ ← → ↖ ↗ ↙ ↘ ㊣ ◎ ○ ● ⊕ ⊙ ○  △ ▲ ☆ ★ ◇ ◆ ■ □ ▽ ▼ § ¥ 〒 ¢ £ ※ ♀ ♂ &⁂ ℡ ↂ░ ▣ ▤ ▥ ▦ ▧ ✐✌✍✡✓✔✕✖ ♂ ♀ ♥ ♡ ☜ ☞ ☎ ☏ ⊙ ◎ ☺ ☻ ► ◄ ▧ ▨ ♨ ◐ ◑ ↔ ↕ ♥ ♡ ▪ ▫ ☼ ♦ ▀ ▄ █ ▌ ▐ ░ ▒ ▬ ♦ ◊ ◘ ◙ ◦ ☼ ♠ ♣ ▣ ▤ ▥ ▦ ▩ ◘ ◙ ◈ ♫ ♬ ♪ ♩ ♭ ♪ ✄☪☣☢☠░ ▒ ▬ ♦ ◊ ◦ ♠ ♣ ▣ ۰•● ❤ ●•۰► ◄ ▧ ▨ ♨ ◐ ◑ ↔ ↕ ▪ ▫ ☼ ♦♧♡♂♀♠♣♥❤☜☞☎☏⊙◎ ☺☻☼▧▨♨◐◑↔↕▪ ▒ ◊◦▣▤▥ ▦▩◘ ◈◇♬♪♩♭♪の★☆→あぃ£Ю〓§♤♥▶¤๑⊹⊱⋛⋌⋚⊰⊹ ๑۩۩.. ..۩۩๑ ๑۩۞۩๑ ✲ ❈ ✿ ✲ ❈ ➹ ~.~ ◕‿- ❣ ✚ ✪ ✣ ✤ ✥ ✦❉ ❥ ❦ ❧ ❃ ❂ ❁ ❀ ✄ ☪ ☣ ☢ ☠ ☭ღღღ ▶ ▷ ◀ ◁ ☀ ☁ ☂ ☃ ☄ ★ ☆ ☇ ☈ ⊙ ☊ ☋ ☌ ☍ⓛⓞⓥⓔ๑•ิ.•ั๑ ๑۩۞۩๑ ♬✿ ☉♡ ♢ ♣ ♤ ♥ ♦ ♧ ♨ ♩ ✙✈ ✉ ✌ ✁ ✎ ✐ ❀ ✰ ❁ ❤ ❥ ❦❧ ➳ ➽ ε
@cirrusUK
cirrusUK / pmrp
Last active November 18, 2015 20:31
2 x Radio player bash scripts
#!/bin/bash
RED='\e[41m'
BLUE='\e[44m'
NC='\e[0m'
command -v mpg123 >/dev/null 2>&1 || { echo -e "$RED PMRP requires 'mpg123' but it's not installed! Install 'mpg123' to enjoy PMRP. $NC" >&2; exit 1; }
PLAYER="mpg123 --control --utf8 --title --preload 1 --buffer 768 --smooth"