dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 22a4e2dd482b5d0fb725c41a1a816dc4f1693e77
parent dc9a5fd6c488b13c797e37b7411104c371d8649e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  4 Oct 2019 14:31:09 +0200

Refresh dwm status from keyboard layout script, delete unused session scripts

Diffstat:
D.local/bin/irc.sh | 8--------
M.local/bin/keyboard-layout-switch.sh | 4++++
D.local/bin/tmux-irc.sh | 15---------------
D.local/bin/tmux-mutt.sh | 14--------------
D.local/bin/tmux-newsboat.sh | 14--------------
D.local/bin/tmux-utility.sh | 42------------------------------------------
6 files changed, 4 insertions(+), 93 deletions(-)

diff --git a/.local/bin/irc.sh b/.local/bin/irc.sh @@ -1,8 +0,0 @@ -#!/bin/sh -set -e - -USER=irc -HOST=adamsgaard.dk -PORT=22 -POSTCMD="tmux a" -mosh --ssh="ssh -p $PORT" $USER@$HOST "$POSTCMD" diff --git a/.local/bin/keyboard-layout-switch.sh b/.local/bin/keyboard-layout-switch.sh @@ -32,3 +32,7 @@ if [ "$currlang" = "$lang1" ]; then else set_language "$lang1" fi + +if type dwmstatus-refresh >/dev/null 2>&1; then + dwmstatus-refresh +fi diff --git a/.local/bin/tmux-irc.sh b/.local/bin/tmux-irc.sh @@ -1,15 +0,0 @@ -#!/bin/bash -SESSION=irc -echo "starting $SESSION tmux session" -export PATH=/usr/local/bin:$PATH - -if ! tmux has-session -t "$SESSION" -then - - # Create new session, name it, name the window, detach - tmux new-session -s "$SESSION" -d - tmux send-keys -t "$SESSION" "weechat; exit" C-m - tmux select-pane -t "$SESSION":1.1 - -fi -tmux attach -t "$SESSION" diff --git a/.local/bin/tmux-mutt.sh b/.local/bin/tmux-mutt.sh @@ -1,14 +0,0 @@ -#!/bin/bash -SESSION=mail -echo "starting $SESSION tmux session" - -if ! tmux has-session -t "$SESSION" -then - - # Create new session, name it, name the window, detach - tmux new-session -s "$SESSION" -d - tmux send-keys -t "$SESSION" "mutt; exit" C-m - tmux select-pane -t "$SESSION":1.1 - -fi -tmux attach -t "$SESSION" diff --git a/.local/bin/tmux-newsboat.sh b/.local/bin/tmux-newsboat.sh @@ -1,14 +0,0 @@ -#!/bin/bash -SESSION=rss -echo "starting $SESSION tmux session" - -if ! tmux has-session -t "$SESSION" -then - - # Create new session, name it, name the window, detach - tmux new-session -s "$SESSION" -d - tmux send-keys -t "$SESSION" "cd ~/tmp && newsboat; exit" C-m - tmux select-pane -t "$SESSION":1.1 - -fi -tmux attach -t "$SESSION" diff --git a/.local/bin/tmux-utility.sh b/.local/bin/tmux-utility.sh @@ -1,42 +0,0 @@ -#!/bin/sh -SESSION=utility -echo "starting $SESSION tmux session" - -if ! tmux has-session -t "$SESSION" -then - # Start services - mpd ~/.mpd/mpd.conf - eval "$(gpg-agent)" - GPG_TTY=$(tty) - export GPG_TTY - eval "$(ssh-agent)" - # Add ssh key if not already added - if [ "$(uname)" = "Darwin" ]; then - ssh-add -l | grep -q '\.ssh/id_rsa' || ssh-add -K - else - ssh-add -l | grep -q '\.ssh/id_rsa' || ssh-add - fi - - # Create new session, name it, name the window, detach - tmux new-session -s "$SESSION" -n misc -d - - tmux send-keys -t "$SESSION" "echo $PWD" C-m - tmux send-keys -t "$SESSION" "mutt" C-m - - tmux select-pane -t "$SESSION":1.1 - tmux split-window -p 33 -v -t "$SESSION" - tmux send-keys -t "$SESSION" "fortune" C-m - - tmux new-window -t "$SESSION" -n "board" - tmux select-pane -t "$SESSION":2.1 - tmux send-keys -t "$SESSION" "board $HOME" C-m - - tmux new-window -t "$SESSION" -n "mpc" - tmux select-pane -t "$SESSION":3.1 - tmux send-keys -t "$SESSION" "ncmpcpp" C-m - - #tmux select-layout tiled - tmux select-pane -t "$SESSION":1.1 - -fi -tmux attach -t "$SESSION"