linuxShortcuts/start-dashboard

77 lines
2.3 KiB
Plaintext
Raw Normal View History

#!/bin/sh
if [[ $(tmux ls | grep 'dashboard') ]]; then
2023-06-23 13:10:17 +00:00
terminator --title "Dashboard" -x "tmux a -t dashboard" &
echo "Just attaching and exiting..."
exit
fi
echo "Iniciando Dashboard..."
sleep 2
tmux new -d -s dashboard
tmux rename-window -t dashboard "Dashboard"
2023-06-23 13:10:17 +00:00
terminator -T "Dashboard" -x "tmux a -t dashboard" &
sleep 10
tmux splitw -t dashboard
tmux splitw -h -t dashboard:0.0
tmux resize-pane -U -t dashboard:0.2 15
tmux resize-pane -L -t dashboard:0.1 10
sleep 1
# 0 - Dashboard/khal
tmux send -t dashboard:0.0 $'clear;watch --interval $((30 * 60)) --no-title --color screenfetch\n'
2023-06-23 13:10:17 +00:00
tmux send -t dashboard:0.1 $'alias clear="/bin/clear;figlet Dashboard; bdays; khal list --notstarted now --exclude-calendar rotina; echo;"\n'
tmux send -t dashboard:0.2 $'btop\n'
tmux send -t dashboard:0.1 $'clear\n'
2022-04-01 23:21:37 +00:00
tmux send -t dashboard:0.1 $'ikhal\n'
2022-10-07 11:40:50 +00:00
# 1 - Tut - Fosstodon
tmux new-window -t dashboard
sleep 1
2022-10-07 11:40:50 +00:00
tmux send -t dashboard:1.0 $'tut --user brunofontes@fosstodon.org\n'
tmux rename-window -t dashboard:1 "tut - Fosstodon"
tmux setw monitor-activity -t dashboard:1
2023-06-23 13:10:17 +00:00
# 2 - Tut - me@GtS
tmux new-window -t dashboard
sleep 1
2023-06-23 13:10:17 +00:00
#tmux send -t dashboard:2.0 $'tut --user brunofontes@mastodon.social\n'
tmux send -t dashboard:2.0 $'tut --user me@gts.brunofontes.net\n'
#tmux rename-window -t dashboard:2 "tut - MastodonSocial"
tmux rename-window -t dashboard:2 "tut - @me@GtS.brunofontes.net"
2022-10-07 11:40:50 +00:00
tmux setw monitor-activity -t dashboard:2
2022-10-07 11:40:50 +00:00
# 3 - GoMuks
tmux new-window -t dashboard
sleep 1
2022-10-07 11:40:50 +00:00
tmux send -t dashboard:3.0 $'gomuks\n'
tmux rename-window -t dashboard:3 gomuks
2022-10-07 11:40:50 +00:00
# 4 - NeoMutt
tmux new-window -t dashboard
sleep 1
2022-10-07 11:40:50 +00:00
tmux send -t dashboard:4.0 $'neomutt\n'
tmux rename-window -t dashboard:4 neomutt
# 5 - Joplin
tmux new-window -t dashboard
sleep 1
tmux send -t dashboard:5.0 $'joplin\n'
tmux rename-window -t dashboard:5 joplin
2022-04-01 23:21:37 +00:00
# Weechat keeps connecting and disconnecting and I am not reading the messages
# so it was just creating noise in the chat rooms
2023-06-23 13:10:17 +00:00
# 6 - Weechat
2022-04-01 23:21:37 +00:00
tmux new-window -t dashboard
2022-10-07 11:40:50 +00:00
tmux send -t dashboard:6.0 $'weechat\n'
#tmux send -t dashboard:6.0 $'sleep 120; ssh contabo screen -DRS weechat\n'
tmux rename-window -t dashboard:6 weechat
2022-04-01 23:21:37 +00:00
2023-06-23 13:10:17 +00:00
# 7 - Newsboat
tmux new-window -t dashboard
tmux send -t dashboard:7.0 $'newsboat\n'
tmux rename-window -t dashboard:7 Newsboat
2022-04-01 23:21:37 +00:00
# Back to Dashboard
tmux select-window -t dashboard:0
tmux setw monitor-silence -t dashboard:0