This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright 2014 Vivien Didelot <[email protected]> | |
# Licensed under the terms of the GNU GPL v3, or any later version. | |
NICK=irccat42 | |
SERVER=irc.freenode.net | |
PORT=6667 | |
CHAN="#irccat" | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# Copyright 2014 Pierre Mavro <[email protected]> | |
# Copyright 2014 Vivien Didelot <[email protected]> | |
# | |
# Licensed under the terms of the GNU GPL v3, or any later version. | |
# | |
# This script is meant to use with i3blocks. It parses the output of the "acpi" | |
# command (often provided by a package of the same name) to read the status of | |
# the battery, and eventually its remaining time (to full charge or discharge). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Upload image(s) to imgur.com | |
# Copyright (C) 2014 Vivien Didelot <[email protected]> | |
# Licensed under GPL version 3, see http://www.gnu.org/licenses/gpl.txt | |
# | |
# Requires "jshon": | |
# http://kmkeen.com/jshon/ | |
# | |
# Alternatives, which suck: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright (C) 2014 Julien Bonjean <[email protected]> | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ruby | |
# | |
# Toggle timezones in i3blocks | |
# Author: Vivien Didelot <[email protected]> | |
# | |
# Fill the ZONES array and define a block like this: | |
# | |
# [timezone] | |
# command=THIS_SCRIPT | |
# interval=5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# i3blocks integration with dunst. | |
# Author: Vivien Didelot <[email protected]> | |
# | |
# dunst caches a notification and signals i3blocks. | |
# i3blocks catches the signal and prints the cached notification. | |
# | |
# Put this rule at the end of your ~/.config/dunst/dunstrc: | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We use the global settings as a shortcut to define our own separator. | |
# Based on the default i3blocks config file. | |
full_text=〉 | |
align=center | |
color=#666666 | |
separator=false | |
separator_block_width=7 | |
[volume] | |
command=/usr/libexec/i3blocks/volume |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fetch last few tweets, unauthenticated. | |
# | |
# I just want the last few tweets of a user, I really don't want to do this: | |
# http://stackoverflow.com/a/15314662 | |
require 'open-uri' | |
require 'cgi' | |
require 'openssl' | |
module Twitter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ToHash | |
def to_loaded_hash | |
fields = properties.select { |p| p.loaded?(self) }.map(&:name) | |
hash = {} | |
fields.each { |f| hash[f] = self[f] } | |
hash | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2ac63f597648408c225ea43a447363f7b913a035 Mon Sep 17 00:00:00 2001 | |
From: Vivien Didelot <[email protected]> | |
Date: Wed, 6 Jun 2012 12:24:47 -0400 | |
Subject: [PATCH] io: use system() if a command contains a pipe | |
Signed-off-by: Vivien Didelot <[email protected]> | |
--- | |
io.c | 4 ++++ | |
1 file changed, 4 insertions(+) |