diff --git a/.gitignore b/.gitignore index 5d947ca..8cbb2f5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,2 @@ -# Build and Release Folders -bin-debug/ -bin-release/ -[Oo]bj/ -[Bb]in/ - -# Other files and folders -.settings/ - -# Executables -*.swf -*.air -*.ipa -*.apk - -# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties` -# should NOT be excluded as they contain compiler settings and other important -# information for Eclipse / Flash Builder. +xdeb/ +xdg-ninja/ diff --git a/bluetooth-off.sh b/bluetooth-off.sh new file mode 100755 index 0000000..163ca99 --- /dev/null +++ b/bluetooth-off.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Simple script to disable bluetooth on my system. + +echo "Attempting to turn off bluetooth via bluetoothctl" +bluetoothctl power off + +echo "Attempting to remove the symlink to the bluetoothd service in the /var/service/ directory" +sudo rm /var/service/bluetoothd diff --git a/bluetooth-on.sh b/bluetooth-on.sh new file mode 100755 index 0000000..b8fcb74 --- /dev/null +++ b/bluetooth-on.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# Simple script to enable bluetooth on my system + +echo "Attempting to create a symbolic link to the bluetoothd service in /var/service/" +sudo ln -s /etc/sv/bluetoothd /var/service/ + +echo "Attempting to turn on bluetooth via bluetoothctl" +bluetoothctl power on +bluetoothctl diff --git a/hide_bar.sh b/hide_bar.sh new file mode 100755 index 0000000..8a7d27d --- /dev/null +++ b/hide_bar.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# Simple script to hide Polybar. + +if [ -f /tmp/polybarhidden ]; then + bspc config top_padding 45 + polybar-msg cmd show + rm /tmp/polybarhidden +else + polybar-msg cmd hide + bspc config top_padding 0 + touch /tmp/polybarhidden +fi diff --git a/look-busy.py b/look-busy.py new file mode 100644 index 0000000..24e9796 --- /dev/null +++ b/look-busy.py @@ -0,0 +1,17 @@ +from wakepy import keepawake +import pyautogui +import time + +with keepawake(keep_screen_awake=True): + while (True): + pyautogui.moveRel(100,0) + time.sleep(0.1) + + pyautogui.moveRel(0,100) + time.sleep(0.1) + + pyautogui.moveRel(-100,0) + time.sleep(0.1) + + pyautogui.moveRel(0,-100) + time.sleep(0.1) diff --git a/screenshot.sh b/screenshot.sh new file mode 100755 index 0000000..230a575 --- /dev/null +++ b/screenshot.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# Simple screenshot script with selection. + +maim --select --hidecursor | +tee /home/andrew/media/images/screenshots/"$(date +%s)".png | xclip -selection clipboard -target image/png diff --git a/stopwatch.sh b/stopwatch.sh new file mode 100755 index 0000000..f6e62fe --- /dev/null +++ b/stopwatch.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +start=$(date +%s) + +while true; do + time="$(($(date +%s) - $start))" + printf '%s\r' "$(date -u -d "@$time" +%H:%M:%S)" + sleep 1s; +done