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
CC=gcc | |
CFLAGS=-Wall -O2 `pkg-config --cflags x11` | |
LDFLAGS=`pkg-config --libs x11` | |
SOURCES=toggle-decorations.c | |
EXECUTABLE=$(patsubst %.c,%,$(SOURCES)) | |
all: $(EXECUTABLE) | |
clean: $(EXECUTABLE) |
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 | |
# Run as if it was called from cron, that is to say: | |
# * with a modified environment | |
# * with a specific shell, which may or may not be bash | |
# * without an attached input terminal | |
# * in a non-interactive shell | |
function usage(){ | |
echo "$0 - Run a script or a command as it would be in a cron job, then display its output" | |
echo "Usage:" |