mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2025-04-19 18:47:50 +00:00
Compare commits
10 Commits
f2471555fd
...
7757a806c1
Author | SHA1 | Date | |
---|---|---|---|
7757a806c1 | |||
ddcc1c4d40 | |||
edef2eb7f0 | |||
a7f1deb2de | |||
3e7e6d3289 | |||
a7fbe54d02 | |||
f82448f44b | |||
17f5a53374 | |||
4ef0f2c542 | |||
e8ba3582c2 |
@ -54,7 +54,7 @@ function checkBackup() {
|
|||||||
|
|
||||||
function pruneBackup() {
|
function pruneBackup() {
|
||||||
echo -e "${blue} `date +%r` - Prune old backups...${reset}"
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2
|
1
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
/home/bruno/node_modules
|
/home/bruno/node_modules
|
||||||
/home/bruno/shared/
|
/home/bruno/shared/
|
||||||
/run/media/bruno/Multimedia/Localização/Ccaps/Projetos/@Delivered
|
/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/Ccaps/TEMP
|
||||||
/run/media/bruno/Multimedia/Localização/FONTES
|
/run/media/bruno/Multimedia/Localização/FONTES
|
||||||
/run/media/bruno/Multimedia/MyDocuments/Camtasia Studio
|
/run/media/bruno/Multimedia/MyDocuments/Camtasia Studio
|
||||||
|
21
KDE/OXO.sh
21
KDE/OXO.sh
@ -1,3 +1,20 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
kactivities-cli --stop-activity `kactivities-cli --list-activities | grep "Main" | cut -d' ' -f2`
|
sleep 30s
|
||||||
notify-send --icon=`kactivities-cli --list-activities | grep "OXO" | cut -d' ' -f4` -a "OXO Innovation" "Main profile closed"
|
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
10
KDE/lockOXO.sh
Executable 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
|
@ -20,7 +20,7 @@ set -e
|
|||||||
|
|
||||||
s -v
|
s -v
|
||||||
bold "Updating..."
|
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..."
|
bold "Cleaning stuff..."
|
||||||
s -v
|
s -v
|
||||||
|
@ -3,5 +3,6 @@ Description=Backup contabo daily
|
|||||||
OnFailure=logErrors@%n.service
|
OnFailure=logErrors@%n.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
User=bruno
|
||||||
ExecStart=/home/bruno/Backups/Contabo/backup-contabo.sh
|
ExecStart=/home/bruno/Backups/Contabo/backup-contabo.sh
|
||||||
EnvironmentFile=/home/bruno/Apps/linuxShortcuts/Services/backup-contabo.env
|
EnvironmentFile=/home/bruno/Apps/linuxShortcuts/Services/backup-contabo.env
|
||||||
|
3
Services/backupGiteaTest.sh
Executable file
3
Services/backupGiteaTest.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
# Backup Gitea
|
||||||
|
/bin/rsync --archive --backup --rsh=ssh bkpgitea:~/ttt/* ~/Backups/gitea/
|
24
mostUsedURLs
Normal file
24
mostUsedURLs
Normal 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
|
@ -5,7 +5,7 @@ key="$1"
|
|||||||
|
|
||||||
case $key in
|
case $key in
|
||||||
-h|--hdmi)
|
-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
|
shift
|
||||||
;;
|
;;
|
||||||
-a|--analog)
|
-a|--analog)
|
||||||
|
@ -18,9 +18,10 @@ sleep 1
|
|||||||
|
|
||||||
# 0 - Dashboard/khal
|
# 0 - Dashboard/khal
|
||||||
tmux send -t dashboard:0.0 $'clear;watch --interval $((30 * 60)) --no-title --color screenfetch\n'
|
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.2 $'btop\n'
|
||||||
tmux send -t dashboard:0.1 $'clear\n'
|
tmux send -t dashboard:0.1 $'clear\n'
|
||||||
|
tmux send -t dashboard:0.1 $'ikhal\n'
|
||||||
|
|
||||||
# 1 - Tut
|
# 1 - Tut
|
||||||
tmux new-window -t dashboard
|
tmux new-window -t dashboard
|
||||||
@ -47,5 +48,14 @@ sleep 1
|
|||||||
tmux send -t dashboard:4.0 $'joplin\n'
|
tmux send -t dashboard:4.0 $'joplin\n'
|
||||||
tmux rename-window -t dashboard:4 joplin
|
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 select-window -t dashboard:0
|
||||||
tmux setw monitor-silence -t dashboard:0
|
tmux setw monitor-silence -t dashboard:0
|
||||||
|
3
start-oxo.sh
Executable file
3
start-oxo.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/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