Skip to content

Instantly share code, notes, and snippets.

View NuckChorris's full-sized avatar

Peter Lejeck NuckChorris

View GitHub Profile
local tags = { }
local statusbar = { }
local promptbox = { }
local taglist = { }
local layoutbox = { }
local settings = { }
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
flags = [
'-Wall',
'-Wextra',
'-Werror',
'-fexceptions',
'-DNDEBUG',
'-DUSE_CLANG_COMPLETER',
'-pthread',
'-I/usr/include/gtk-3.0',
'-I/usr/include/at-spi2-atk/2.0',
#include <gtk/gtk.h>
#include "main.h"
GtkWidget *window, *grid, *drawing_area, *spn_percent, *chk_critical, *chk_charging;
gboolean toggle_callback (GtkWidget *widget, gpointer data)
{
(void)(data);
(void)(widget);
SUBSYSTEM=="backlight", GROUP="video", MODE="0664"
KERNEL=="smc::kbd_backlight", GROUP="video", MODE="0664"
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=430245ab-7a2f-4169-8444-0be8fa8131d3 / ext4 defaults 0 0
UUID=f5d3cd6c-16fb-3c75-9eee-a7908e274dce /boot hfsplus defaults,rw,force 0 0
UUID=2687e8f9-1427-4510-8ec8-ce14a4514964 /home ext4 defaults,x-systemd.automount 0 0
UUID=daf73876-e3bb-3be8-b7fe-1cb54a5d88ac /media/Shared hfsplus defaults,rw,force,x-systemd.automount 0 0
UUID=d0f798bb-f6ad-3f4f-8781-6cc0b1cf79ae /media/Mac hfsplus defaults,x-systemd.automount 0 0
#!/usr/bin/env zsh
[[ -z "$ZILSH_VERBOSITY" ]] && ZILSH_VERBOSITY=3
_zilsh_error () {
if (( $ZILSH_VERBOSITY >= 1 )); then
printf "${fg_bold[red]}[Zilsh Error]${reset_color} $1\n" 1>&2
fi
}
GtkWindow login_window
+- GtkOverlay
+- GtkVBox
| +- GtkHBox
| | +- GtkLabel username_label
| | +- GtkInput username_input (hidden)
| | +- GtkButton detail_expando_button
| | +- GtkArrow
| +- GtkBox detail_expando_box (hidden)
| | +- GtkComboBox session_combo_box
GtkWindow login_window
+- GtkOverlay
+- GtkVBox
| +- GtkHBox
| | +- GtkLabel username_label
| | +- GtkInput username_input (hidden)
| | +- GtkButton detail_expando_button
| | +- GtkArrow
| +- GtkBox detail_expando_box (hidden)
| | +- GtkComboBox session_combo_box
#include "main.h"
//#include "utils.h"
//#include "acpi.h"
struct options {
char output[32][16],
char battery[]
};
int main
(function(){
var uploader = $('#upload-btn').pomf('#upload-form')
var progressTotal = $('#upload-progress-total')
var progressFile = $('#upload-progress-file')
var uploadPreview = $('#upload-preview')
var uploadInfo = $('span', uploadPreview)
var previews = $('li', uploadPreview)
var getFileIcon = function () {