Initial commit

This commit is contained in:
2023-06-25 00:51:45 +01:00
parent 1121bee3aa
commit 2492d1d1c4
7 changed files with 62 additions and 18 deletions

20
.gitignore vendored
View File

@ -1,18 +1,2 @@
# Build and Release Folders xdeb/
bin-debug/ xdg-ninja/
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.

8
bluetooth-off.sh Executable file
View File

@ -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

9
bluetooth-on.sh Executable file
View File

@ -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

12
hide_bar.sh Executable file
View File

@ -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

17
look-busy.py Normal file
View File

@ -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)

5
screenshot.sh Executable file
View File

@ -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

9
stopwatch.sh Executable file
View File

@ -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