Skip to content

Instantly share code, notes, and snippets.

View chrillep's full-sized avatar
🆗
200

Christian Widlund chrillep

🆗
200
View GitHub Profile
@chrillep
chrillep / cec-keypresses.sh
Last active September 29, 2025 14:46 — forked from bahamas10/cec-keypresses.sh
use `cec-client` to fire events when keys are pressed
#!/usr/bin/env bash
#
# react to cec keypresses and inject Wayland key events via wtype
#
# Author: Dave Eddy <[email protected]>
# License: MIT
# Modified: dedup filter + wtype mapping
#
onright() {
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@chrillep
chrillep / tw-wp-post-tags.php
Last active August 29, 2015 14:02 — forked from paulc010/tw-wp-post-tags.php
Font-awsome icons if post has feed tag and "social media" tag
<footer>
<?php
if (get_the_tags()) $posttags = get_the_tags();
if ($posttags) {
$tagging = '';
foreach($posttags as $tag) {
if ($tag->slug != 'feed') {
$tagging = $tagging . '<i class="fa fa-'.$tag->slug.'-square"></i>';
}
}