Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Dunroamin, Duncarin, Dunlivin.

cirrus cirrusUK

💭
Dunroamin, Duncarin, Dunlivin.
View GitHub Profile
@cirrusUK
cirrusUK / rofi-search
Created Nov 23, 2021
Search teh web with Rofi
View rofi-search
View documentaries.txt
https://www.beyondminds.org/archives/files/Documentaries/- IN-SHADOW - A Modern Odyssey - Animated Short Film.mp4
https://www.beyondminds.org/archives/files/Documentaries/10 Legendary Cities Proven Real-PAGWl0fw_4Q.mp4
https://www.beyondminds.org/archives/files/Documentaries/10 Suspected Conspiracy Theories That Oddly Turned out to Be True.mp4
https://www.beyondminds.org/archives/files/Documentaries/Above Majestic HDRip.mp4
https://www.beyondminds.org/archives/files/Documentaries/Agenda 21, The Plan To Kill You - by David Icke.mp4
https://www.beyondminds.org/archives/files/Documentaries/Alien Contact - Outer Space.mp4
https://www.beyondminds.org/archives/files/Documentaries/Alien Megastructure Bigger Than Jupiter Detected at the Cygnus Constellation-ebMD3W5W8HY.mp4
https://www.beyondminds.org/archives/files/Documentaries/Aliens Genetically Created Us - Overwhelming Evidence-bOheFLpfmck.mp4
https://www.beyondminds.org/archives/files/Documentaries/All Is Self (Documentary).mp4
https://www.beyondminds.org/archiv
View rofi-search
View rf
#!/bin/bash
################################################################
# rf
# open files, cd into directories and stuff
# not the most intuitively written bash script but it werks hehe
# made by theo
################################################################
View connected
#!/usr/bin/env bash
set -eu
declare -A T=(
[red]=$'\e[0;31m' [green]=$'\e[1;32m' [orange]=$'\e[1;33m'
[lightblue]=$'\e[0;34m' [purple]=$'\e[0;35m' [cyan]=$'\e[0;36m'
[lightgray]=$'\e[0;37m' [darkgray]=$'\e[1;30em'
[lightred]=$'\e[1;31m' [lightgreen]=$'\e[0;32m'
[yellow]=$'\e[0;49;93m' [blue]=$'\e[1;34m'
@cirrusUK
cirrusUK / documentaries.txt
Last active Jul 20, 2021
use fzf to list and play documentaries with mpv https://i.imgur.com/BuBwEFY.png
View documentaries.txt
https://www.beyondminds.org/archives/files/Documentaries/- IN-SHADOW - A Modern Odyssey - Animated Short Film.mp4
https://www.beyondminds.org/archives/files/Documentaries/10 Legendary Cities Proven Real-PAGWl0fw_4Q.mp4
https://www.beyondminds.org/archives/files/Documentaries/10 Suspected Conspiracy Theories That Oddly Turned out to Be True.mp4
https://www.beyondminds.org/archives/files/Documentaries/Above Majestic HDRip.mp4
https://www.beyondminds.org/archives/files/Documentaries/Agenda 21, The Plan To Kill You - by David Icke.mp4
https://www.beyondminds.org/archives/files/Documentaries/Alien Contact - Outer Space.mp4
https://www.beyondminds.org/archives/files/Documentaries/Alien Megastructure Bigger Than Jupiter Detected at the Cygnus Constellation-ebMD3W5W8HY.mp4
https://www.beyondminds.org/archives/files/Documentaries/Aliens Genetically Created Us - Overwhelming Evidence-bOheFLpfmck.mp4
https://www.beyondminds.org/archives/files/Documentaries/All Is Self (Documentary).mp4
https://www.beyondminds.org/archiv
@cirrusUK
cirrusUK / feiler
Last active Jul 6, 2021
edited teiler to work with fzf
View feiler
#!/bin/bash
# Menus
promptDelay() {
printf "%s\n" "$@" | fzf --header="Delay:"
}
mainMenu () {
@cirrusUK
cirrusUK / hackersays.sh
Last active Jul 6, 2021
Since ruby 3.0.0 teh hackersays gem has failed to work, so i cobbled this together, show hackersay.com quotes in dunst/libnotify desktop notifications.
View hackersays.sh
#!/bin/bash
#export DISPLAY=":0"
export XDG_RUNTIME_DIR=/run/user/$(id -u)
#export XAUTHORITY=/home/cirrus/.Xauthority
icon="~/.icons/ui-icons_blue.png"
BOOT=$( wget hackersays.com -O - 2>/dev/null | sed -e '/<span>/b' -e d | head -n1 |cut -c7- | grep -Po '.*(?=.......$)' && wget hackersays.com -O - 2>/dev/null | sed -e '/<cite>/b' -e d | head -n1 |cut -c7- | grep -Po '.*(?=.......$)'
)
dunstify -i "$icon" -r 100 "Hackersays" "$BOOT"
exit
@cirrusUK
cirrusUK / hud.sh
Created Jun 14, 2021
Heads Up Display showing realtime RAM & CPU usage in corner of VDU, using osd_cat.
View hud.sh
#!/bin/bash
export DISPLAY=":0"
export XDG_RUNTIME_DIR=/run/user/$(id -u)
while true; do free | grep Mem | awk '{print $3/$2 * 100.0}'; sleep 1; done | osd_cat --align right --pos bottom -o 50 --lines 1 --delay 2 -f '-*-envy code r-*-*-*-*-24-*-*-*-*-*-*-*' -c orange & while true; do top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}'; sleep 1; done | osd_cat --align right --pos bottom --lines 1 --delay 2 -f '-*-envy code r-*-*-*-*-24-*-*-*-*-*-*-*' -o 20 -c orange
View ytfzf
#!/bin/sh
######################################
#> https://github.com/pystardust/ytfzf
######################################
YTFZF_VERSION="1.1.5"
############################
# Defaults #