Skip to content

Instantly share code, notes, and snippets.

Avatar

Joseph Pentland jpentland

View GitHub Profile
@jpentland
jpentland / tabc.sh
Last active Sep 20, 2021
Add or remove windows from suckless' tabbed
View tabc.sh
#!/bin/sh
# Usage:
# tabc.sh <tabbed-id> <command>
# Commands:
# add <window-id> - Add window to tabbed
# remove <window-id> - Remove window from tabbed
# list - List all clients of tabbed
#
@jpentland
jpentland / dropdown.sh
Last active Nov 1, 2020
bspwm scratchpad script
View dropdown.sh
#!/bin/sh
# Usage: dropdown.sh [--role <role>] <spawn command> <class> <posx> <posy> <sizex> <sizey>
# All sizes and positions are based on a percentage of the current desktop size
# Checks padding_top of current monitor to avoid status bar.
# Example usage:
# dropdown.sh "st -c dropdown" "dropdown" 0 0 100 30
if [ "$1" == "--role" ]; then
shift