9 changed files with 60 additions and 27 deletions
@ -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,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,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,0 +1,4 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
# resize firefox to desired geometry |
||||||
|
|
||||||
|
wmctrl -r Firefox -e 0,0,0,1280,1024 |
||||||
Loading…
Reference in new issue