Added Snippets and cleanup .script/startup.sh

This commit is contained in:
TuDatTr
2020-03-03 18:26:11 +01:00
parent ff8227ac64
commit 4e20234777
16 changed files with 594 additions and 21 deletions

View File

@@ -8,8 +8,8 @@
*.color8: #0c0e14
! red
*.color1: #8b8b8b
*.color9: #e91e63
*.color1: #e84f4f
*.color9: #d23d3d
! green
*.color2: #00ffaf

View File

@@ -7,6 +7,6 @@ l:/home/tuan/Local
c:/home/tuan/Documents/CTF/picoCTF
t:/home/tuan/Templates
w:/home/tuan/workspace_l/Projects
k:/home/tuan/Documents/Protokolle/FSE
k:/home/tuan
q:/home/tuan/.nextcloud/Quick Drop
':/home/tuan/isofiles
':/home/tuan/.dotfiles/vim/.vim

View File

@@ -152,13 +152,8 @@ def proc_exists(proc_name):
proc_content = '{}: {}'.format(counter, proc_content)
if proc_content:
if proc_name in proc_content:
# print(proc_name)
# print(proc_content)
# print(proc_name in proc_content)
if 'xss-lock' not in proc_content:
# print('xss-lock' not in proc_content)
if this_proc not in proc_content:
# print(this_proc not in proc_content)
print('Process Exists: {}'.format(time.time() - proc_check))
return True
except FileNotFoundError:

View File

@@ -1,5 +1,9 @@
#!/bin/bash
lower_battery_threshold=10
KBD="";
oldKBD="";
function kb_routine {
oldKBD="$KBD";
case "$(xset -q | grep -A 0 'LED' | cut -c59-67)" in
@@ -18,14 +22,11 @@ function kb_routine {
function battery_routine {
capacity=$(< /sys/class/power_supply/BAT0/capacity)
if [[ $capacity -lt 5 ]]; then
echo $capacity
if [[ $capacity -lt lower_battery_threshold ]]; then
notify-send "$capacity";
fi
}
KBD="";
oldKBD="";
while :
do
kb_routine

View File

@@ -4,6 +4,12 @@ Host mx
User infra
IdentityFile /mnt/veracrypt1/fse
Host gitlab
HostName 132.252.238.13
Port 22
User infra
IdentityFile /mnt/veracrypt1/fse
Host helios
HostName 132.252.238.17
Port 22