Initial commit
This commit is contained in:
20
.gitignore
vendored
20
.gitignore
vendored
@ -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/
|
||||
|
8
bluetooth-off.sh
Executable file
8
bluetooth-off.sh
Executable 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
9
bluetooth-on.sh
Executable 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
12
hide_bar.sh
Executable 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
17
look-busy.py
Normal 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
5
screenshot.sh
Executable 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
9
stopwatch.sh
Executable 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
|
Reference in New Issue
Block a user