Skip to content

Instantly share code, notes, and snippets.

View jpentland's full-sized avatar

Joseph Pentland jpentland

View GitHub Profile
@jpentland
jpentland / tabc.sh
Last active July 11, 2024 04:36
Add or remove windows from suckless' tabbed
#!/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 November 1, 2020 15:13
bspwm scratchpad script
#!/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