Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# My default archlinux packages
pacman -S autoconf arandr automake bison cava-gui compton conky ecryptfs-utils engrampa epdfview exfat-utils extra-cmake-modules fatsort feh ffmpegthumbnailer filemanager-actions firefox-beta-bin firewalld flex galculator-gtk gcolor2 gettext inkscape gsimplecal htop hydra inetutils iputils john leafclip libunrar licenses lightdm-gtk-greeter-settings linux-lts logrotate lxappearance-obconf lxtask macchanger man-db man-pages masscan metasploit mirage mpd nano network-manager-applet ncmpcpp nmap numlockx obmenu3 pacmatic pacli pcmciautils pkg-config polybar proxychains-ng reaver retroarch rfkill rofi rsync simplescreenrecorder sqlmap sublime-text-dev thunar-extended thunar-dropbox tor transmission-gtk ttf-symbola tuxguitar usbutils vlc wget which whois winff wipe xf86-input-synaptics xf86-video-intel xfce4-terminal xorg-server
#!/usr/bin/env python3
# encoding: utf-8
"""
imguralbum.py - Download a whole imgur album in one go.
Provides both a class and a command line utility in a single script
to download Imgur albums.
MIT License
Copyright Alex Gisby <alex@solution10.com>
#!/bin/sh
TMP=`mktemp -u`
ffmpeg \
-video_size 1366x768 \
-f x11grab -i $DISPLAY \
-vf avgblur=5:15:5 \
-vframes 1 \
-f image2pipe -vcodec png \
erc
res=$(echo "scrotshot|clerk|themes|files|bookmarks|google|randr|move|mpd|network|outputs|" | rofi -sep "|" -dmenu -i -p 'rofi shit: ' "" -auto-select)
function sure {
local res=$(echo "no|yes" | rofi -sep "|" -dmenu -i -p "$1: sure?" -auto-select)
[[ $res = "yes" ]] && exec $2
}
[[ $res = "scrotshot" ]] && teiler
[[ $res = "clerk" ]] && clerk
#!/usr/bin/env bash
#
# Automagically hide/show a window by its name when the cursor is
# within a defined region or you mouse over it.
#
# This script was initially written to imitate gnome-shell's systray
# but should be generic enough to do other things as well.
#
# Requirements:
# bash, xdotool, xwininfo
#!/bin/bash
xdg-open "$(locate home media | rofi -threads 0 -lines 9 -font "Iceberg 13" -dmenu -i -p "Search:")"
#!/bin/bash
rofi -show "clipboard:greenclip print" -lines 9 -font "Iceberg 13"
#!/bin/bash
#BROWSER=google-chrome-stable
surfraw -browser=$BROWSER "$(cat ~/.config/surfraw/bookmarks | sed '/^$/d' | sed '/^#/d' | sed '/^\//d' | sort -n | rofi -lines 9 -font "Iceberg 13" -dmenu -mesg "Add new bookmarks at ~/.config/surfraw/bookmarks" -i -p "rofi-surfraw-bookmarks: ")"
#!/bin/python3.6
"""
A simple desktop wallpaper generator written by Addison Schuhardt.
https://schuhardt.net
Contact: a@schuhardt.net
This script is designed to generate color gradient-pattern desktop wallpaper images.
Information regarding and changes to this script can be found here: https://github.com/aschuhardt/py_wallpaper
"""
import sys
source /home/pringle/antigen.zsh
source $HOME/.dynamic-colors/completions/dynamic-colors.zsh
export PATH="$HOME/.dynamic-colors/bin:$PATH"
export TENDERBLOCKS="~/.local/share/bartender/block"
set -o vi
# Load the oh-my-zsh's library.
antigen use oh-my-zsh