This file contains hidden or 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 php | |
<?php | |
################################## | |
# CONFIGURATION - Edit this part # | |
################################## | |
$min_width = 1920; //Minimum width for images | |
$min_height = 1080; //Minimum height for images | |
$subreddits = "earthporn+skyporn+waterporn"; //Subreddits to pull from. Seperate each with a plus sign. |
This file contains hidden or 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 | |
################################################### | |
# Makes panel opaque when a window is "Maximized" # | |
################################################### | |
KEEPTRUE=1 | |
while [ $KEEPTRUE -eq 1 ]; do | |
if [ $(bspc query -d $DESKTOP_SEL -T | grep "0,0,0,0 M" | wc -l) -eq 1 ] && [ $(bspc query -d $DESKTOP_SEL -W | wc -l) -ge 1 ] | |
then |
This file contains hidden or 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
<?php | |
/***********************************************************************/ | |
/* Changes workspace names to dots. */ | |
/* Uses https://mail.xfce.org/pipermail/xfce/2009-December/026489.html */ | |
/***********************************************************************/ | |
$id = time(); | |
file_put_contents("/home/james/.config/workspace_names_start_time", $id); |
This file contains hidden or 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 | |
#################################################################### | |
# This script increases window padding when there are less windows # | |
#################################################################### | |
KEEPTRUE=1 | |
while [ $KEEPTRUE -eq 1 ]; do | |
VAR=$(expr $(bspc query -d $DESKTOP_SEL -W | grep -c "0x") - $(bspc query -d $DESKTOP_SEL -T | grep " f" | wc -l)) | |
for w in $(bspc query -W -d); do bspc config -w $w window_gap $(expr 75 / $VAR ); done |