Compare commits

...

10 Commits

12 changed files with 76 additions and 7 deletions

View File

@ -54,7 +54,7 @@ function checkBackup() {
function pruneBackup() {
echo -e "${blue} `date +%r` - Prune old backups...${reset}"
borg prune --keep-within=1y --keep-daily=30 --keep-weekly=12 --keep-monthly=24 --keep-yearly=3 $1
borg prune --keep-weekly=12 --keep-monthly=24 --keep-yearly=3 $1
}

View File

@ -1 +1 @@
2
1

View File

@ -23,6 +23,7 @@
/home/bruno/node_modules
/home/bruno/shared/
/run/media/bruno/Multimedia/Localização/Ccaps/Projetos/@Delivered
/run/media/bruno/Multimedia/Localização/Ccaps/Projetos/MasterClass
/run/media/bruno/Multimedia/Localização/Ccaps/TEMP
/run/media/bruno/Multimedia/Localização/FONTES
/run/media/bruno/Multimedia/MyDocuments/Camtasia Studio

View File

@ -1,3 +1,20 @@
#!/bin/sh
kactivities-cli --stop-activity `kactivities-cli --list-activities | grep "Main" | cut -d' ' -f2`
notify-send --icon=`kactivities-cli --list-activities | grep "OXO" | cut -d' ' -f4` -a "OXO Innovation" "Main profile closed"
sleep 30s
while [ 1 = 1 ]; do
sleep 30s
if [ `kactivities-cli --current-activity | grep "Main" | wc -l` -gt 0 ]; then
exit 0
fi
tomato=`ps -aux | grep tomatoshell | wc -l`
# If there are less than 2 instances of tomato, it means it is just grep and not tomato itself
if [ $tomato -lt 2 ]; then
kactivities-cli --set-current-activity `kactivities-cli --list-activities | grep "Main" | cut -d' ' -f2`
notify-send --icon=`kactivities-cli --list-activities | grep "OXO" | cut -d' ' -f4` -a "OXO Innovation" "Start a pomodoro to Work"
fi
done
# kactivities-cli --stop-activity `kactivities-cli --list-activities | grep "Main" | cut -d' ' -f2`
# notify-send --icon=`kactivities-cli --list-activities | grep "OXO" | cut -d' ' -f4` -a "OXO Innovation" "Main profile closed"

10
KDE/lockOXO.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
sleep 5s
while [ 1 = 1 ]; do
current=`kactivities-cli --current-activity | grep "Main"`
if [[ $current ]]; then
kactivities-cli --stop-activity `kactivities-cli --list-activities | grep "Main" | cut -d' ' -f2`
notify-send --icon=`kactivities-cli --list-activities | grep "OXO" | cut -d' ' -f4` -a "OXO Innovation" "Main profile closed"
fi
sleep 20s
done

View File

@ -20,7 +20,7 @@ set -e
s -v
bold "Updating..."
yay -Syu --sudoloop --answerclean none --answerdiff all --answerupgrade none --noremovemake --nobatchinstall --cleanafter]]
yay -Syu --sudoloop --answerclean none --answerdiff all --answerupgrade all --noremovemake --nobatchinstall --cleanafter
bold "Cleaning stuff..."
s -v

View File

@ -3,5 +3,6 @@ Description=Backup contabo daily
OnFailure=logErrors@%n.service
[Service]
User=bruno
ExecStart=/home/bruno/Backups/Contabo/backup-contabo.sh
EnvironmentFile=/home/bruno/Apps/linuxShortcuts/Services/backup-contabo.env

3
Services/backupGiteaTest.sh Executable file
View File

@ -0,0 +1,3 @@
#! /bin/bash
# Backup Gitea
/bin/rsync --archive --backup --rsh=ssh bkpgitea:~/ttt/* ~/Backups/gitea/

24
mostUsedURLs Normal file
View File

@ -0,0 +1,24 @@
oxo.plunet.com
helpdesk.plunet.com
github.com
metager.org
brunofontes.net
matrix.brunofontes.net
google.com
gstatic.com
gmail.com
mail.google.com
docs.google.com
sheets.google.com
ticktick.com
linkedin.com
licdn.com
wikipedia.com
time.is
memsource.com
cloud.memsource.com
oxo.egnyte.com
sbt.com.br
globoplay.globo.com
www.band.uol.com.br
hcaptcha.com

View File

@ -5,7 +5,7 @@ key="$1"
case $key in
-h|--hdmi)
pacmd set-card-profile alsa_card.pci-0000_00_1f.3 output:hdmi-stereo && echo "HDMI profile is active" && kdialog --passivepopup "Audio output changed to HDMI" --title="Audio profile changed" 2
pacmd set-card-profile alsa_card.pci-0000_00_1f.3 output:hdmi-stereo-extra1 && echo "HDMI profile is active" && kdialog --passivepopup "Audio output changed to HDMI" --title="Audio profile changed" 2
shift
;;
-a|--analog)

View File

@ -18,9 +18,10 @@ sleep 1
# 0 - Dashboard/khal
tmux send -t dashboard:0.0 $'clear;watch --interval $((30 * 60)) --no-title --color screenfetch\n'
tmux send -t dashboard:0.1 $'alias clear="clear;figlet Dashboard; echo -n Khal:\ ; khal list; echo;"\n'
tmux send -t dashboard:0.1 $'alias clear="clear;figlet Dashboard; echo -n Khal:\ ; khal list --exclude-calendar rotina; echo;"\n'
tmux send -t dashboard:0.2 $'btop\n'
tmux send -t dashboard:0.1 $'clear\n'
tmux send -t dashboard:0.1 $'ikhal\n'
# 1 - Tut
tmux new-window -t dashboard
@ -47,5 +48,14 @@ sleep 1
tmux send -t dashboard:4.0 $'joplin\n'
tmux rename-window -t dashboard:4 joplin
# Weechat keeps connecting and disconnecting and I am not reading the messages
# so it was just creating noise in the chat rooms
5 - Weechat
tmux new-window -t dashboard
tmux send -t dashboard:5.0 $'sleep 120; ssh contabo screen -DRS weechat\n'
tmux rename-window -t dashboard:5 weechat
# Back to Dashboard
tmux select-window -t dashboard:0
tmux setw monitor-silence -t dashboard:0

3
start-oxo.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/bin/teams >/dev/null 2>&1 &
/usr/lib/firefox/firefox -P OXO >/dev/null 2>&1 &