This file contains 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/bash | |
# sets a random background image with a resolution | |
# that matches each connected display | |
# Query connected displays | |
echo "Attempting to randomize wallpapers ..." | |
wallpapers="/usr/share/wallpapers" | |
# get a list of connected displays and their respective resolutions | |
displays=$(xrandr --prop | egrep '\sconnected' | awk '{print $1" " $3}' | cut -d '+' -f-1 ) |
This file contains 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/env sh | |
# returns a unique list of directories used by the provided packages | |
if [[ -z "$1" ]]; then echo "Please provide at least one package name to query"; exit 1; fi | |
excludes="doc/ | |
man/ | |
themes/ | |
locale/ |
This file contains 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
total_bugs = $$('td#bz_show_bug_column_1.bz_show_bug_column > table > tbody > tr:nth-child(21) > td > a') | |
closed_bugs = $$('td#bz_show_bug_column_1.bz_show_bug_column > table > tbody > tr:nth-child(21) > td > a[class*="bz_closed"]') | |
remaining_bugs = total_bugs.length - closed_bugs.length | |
console.log(`Total bugs: ${total_bugs.length}\nClosed: ${closed_bugs.length}\nRemaining: ${remaining_bugs}`) |
NewerOlder