mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 05:24:56 +00:00
Compare commits
No commits in common. "7757a806c1d55d7ce6941a2ce496d52fcc9d6a7c" and "f2471555fd1ac4192249d35fc8d04a92fb41ebfe" have entirely different histories.
7757a806c1
...
f2471555fd
@ -54,7 +54,7 @@ function checkBackup() {
|
||||
|
||||
function pruneBackup() {
|
||||
echo -e "${blue} `date +%r` - Prune old backups...${reset}"
|
||||
borg prune --keep-weekly=12 --keep-monthly=24 --keep-yearly=3 $1
|
||||
borg prune --keep-within=1y --keep-daily=30 --keep-weekly=12 --keep-monthly=24 --keep-yearly=3 $1
|
||||
}
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
1
|
||||
2
|
||||
|
@ -23,7 +23,6 @@
|
||||
/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
|
||||
|
21
KDE/OXO.sh
21
KDE/OXO.sh
@ -1,20 +1,3 @@
|
||||
#!/bin/sh
|
||||
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"
|
||||
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"
|
||||
|
@ -1,10 +0,0 @@
|
||||
#!/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
|
@ -20,7 +20,7 @@ set -e
|
||||
|
||||
s -v
|
||||
bold "Updating..."
|
||||
yay -Syu --sudoloop --answerclean none --answerdiff all --answerupgrade all --noremovemake --nobatchinstall --cleanafter
|
||||
yay -Syu --sudoloop --answerclean none --answerdiff all --answerupgrade none --noremovemake --nobatchinstall --cleanafter]]
|
||||
|
||||
bold "Cleaning stuff..."
|
||||
s -v
|
||||
|
@ -3,6 +3,5 @@ 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
|
||||
|
@ -1,3 +0,0 @@
|
||||
#! /bin/bash
|
||||
# Backup Gitea
|
||||
/bin/rsync --archive --backup --rsh=ssh bkpgitea:~/ttt/* ~/Backups/gitea/
|
24
mostUsedURLs
24
mostUsedURLs
@ -1,24 +0,0 @@
|
||||
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
|
@ -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-extra1 && 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 && echo "HDMI profile is active" && kdialog --passivepopup "Audio output changed to HDMI" --title="Audio profile changed" 2
|
||||
shift
|
||||
;;
|
||||
-a|--analog)
|
||||
|
@ -18,10 +18,9 @@ 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 --exclude-calendar rotina; echo;"\n'
|
||||
tmux send -t dashboard:0.1 $'alias clear="clear;figlet Dashboard; echo -n Khal:\ ; khal list; 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
|
||||
@ -48,14 +47,5 @@ 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
|
||||
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
/bin/teams >/dev/null 2>&1 &
|
||||
/usr/lib/firefox/firefox -P OXO >/dev/null 2>&1 &
|
Loading…
Reference in New Issue
Block a user