Browse Source

update scripts in ~/bin

master
cinnaboot 4 years ago
parent
commit
35be9108f7
  1. 23
      bash_scripts/dev.sh
  2. 0
      bin/countdown_timer.sh
  3. 39
      bin/dev.sh
  4. 0
      bin/get_bat.sh
  5. 0
      bin/hide_panel.sh
  6. 10
      bin/iommu.sh
  7. 0
      bin/monitors_off.sh
  8. 4
      bin/wmresize.sh
  9. 11
      sync.sh

23
bash_scripts/dev.sh

@ -1,23 +0,0 @@
#!/usr/bin/env sh
wmctrl -r :ACTIVE: -e 0,615,0,1938,1378
SESSION='dev'
if [ ! -n "$TMUX_PANE" ]; then
tmux -2 new -s $SESSION -d
tmux rename-window -t $SESSION dev
tmux splitw -h -t $SESSION
tmux send-keys -t $SESSION "vim" Enter
tmux selectp -t 0
tmux resizep -x 80 -t $SESSION
tmux splitw -v -l 24 -t $SESSION
tmux selectp -t 2
tmux send-keys -t $SESSION ":80vs" Enter
tmux attach -t $SESSION
else
echo "don't run in tmux session"
fi

0
bash_scripts/countdown_timer.sh → bin/countdown_timer.sh

39
bin/dev.sh

@ -0,0 +1,39 @@
#!/usr/bin/env sh
wmctrl -r :ACTIVE: -e 0,1265,0,1290,1379
SESSION='dev'
if [ ! -n "$TMUX_PANE" ]; then
tmux -2 new -s $SESSION -d
# tmux rename-window -t $SESSION dev
# tmux splitw -v -l 60 -t $SESSION
# tmux send-keys -t $SESSION "vim" Enter
# tmux send-keys -t $SESSION ":80vs" Enter
# tmux attach -t $SESSION
else
echo "don't run in tmux session"
fi
#wmctrl -r :ACTIVE: -e 0,615,0,1938,1378
#
#SESSION='dev'
#
#if [ ! -n "$TMUX_PANE" ]; then
# tmux -2 new -s $SESSION -d
#
# tmux rename-window -t $SESSION dev
# tmux splitw -h -t $SESSION
# tmux send-keys -t $SESSION "vim" Enter
# tmux selectp -t 0
# tmux resizep -x 80 -t $SESSION
# tmux splitw -v -l 24 -t $SESSION
# tmux selectp -t 2
#
# tmux send-keys -t $SESSION ":80vs" Enter
# tmux attach -t $SESSION
#else
# echo "don't run in tmux session"
#fi

0
bash_scripts/get_bat.sh → bin/get_bat.sh

0
bash_scripts/hide_panel.sh → bin/hide_panel.sh

10
bin/iommu.sh

@ -0,0 +1,10 @@
#!/bin/bash
shopt -s nullglob
for g in /sys/kernel/iommu_groups/*; do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*; do
echo -e "\t$(lspci -nns ${d##*/})"
done;
done;

0
bash_scripts/monitors_off.sh → bin/monitors_off.sh

4
bin/wmresize.sh

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# resize firefox to desired geometry
wmctrl -r Firefox -e 0,0,0,1280,1024

11
sync.sh

@ -16,17 +16,20 @@ GDB_FILES="
$HOME/.gdbinit
$HOME/.gdbinit.d"
BASH_SCRIPTS="
SCRIPTS="
$HOME/bin/countdown_timer.sh \
$HOME/bin/dev.sh \
$HOME/bin/get_bat.sh \
$HOME/bin/hide_panel.sh \
$HOME/bin/iommu.sh \
$HOME/bin/monitors_off.sh \
$HOME/bin/countdown_timer.sh \
$HOME/bin/get_bat.sh"
$HOME/bin/wmresize.sh \
"
rsync -avP ${DOT_FILES} ./dot
rsync -avP ${VIM_FILES} ./vim
rsync -avP ${GDB_FILES} ./gdb
rsync -avP ${BASH_SCRIPTS} ./bash_scripts
rsync -avP ${SCRIPTS} ./bin
APP_CONFIGS="
$HOME/.config/firejail"

Loading…
Cancel
Save