diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-23 23:35:59 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-24 12:42:27 -0700 |
commit | c67d4836f4d6d5e6c8ef4e2de38bd21ccb6ee1a1 (patch) | |
tree | fded906652b6bf03c60e0c133a368c5027cd4d1e /bin/develacc-please | |
parent | aa5a315a0876431105f73da75de9ddfa89e907d3 (diff) | |
download | dotfiles-c67d4836f4d6d5e6c8ef4e2de38bd21ccb6ee1a1.tar.gz |
tidy and simplify shell init
Rely on SPWCRONTAB property to set PATH for cronjobs, and otherwise rely on
.profile, .xsessionrc etc. to set PATH, once, at login. Just archive scripts
I haven't used lately which might otherwise need more significant adjustments,
or appear to be broken in other ways.
Diffstat (limited to 'bin/develacc-please')
-rwxr-xr-x | bin/develacc-please | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/bin/develacc-please b/bin/develacc-please deleted file mode 100755 index 63d86ecc..00000000 --- a/bin/develacc-please +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -# Boot or resume develacc and open a VNC viewer. Suspend develacc, -# mainly to save battery power, when the viewer is closed. -# -# This is mainly for when I want to work in develacc for a while, full -# screen, almost as if my laptop was running sid. -# -# For work where I expect to be going back and forth between the VM -# and the bare metal host or other VMs, it might be better to access -# the VM via a normal, non-fullscreened virt-manager window rather -# than full screen virt-viewer. Similarly if I have a large monitor -# available, it might be more convenient not to have the VM viewer -# fullscreened - -set -e - -. $HOME/.shenv - -VIRSH="virsh --connect qemu:///system" -develacc="develacc.$(hostname -f)" - -if wmctrl -l | grep -q "$develacc"; then - wmctrl -a "$develacc" -else - if $VIRSH list | grep -q "$develacc .*paused"; then - $VIRSH resume $develacc - elif ! $VIRSH list | grep -q $develacc; then - $VIRSH start $develacc - fi - - virt-viewer -c qemu:///system --hotkeys=release-cursor=ctrl+alt \ - -a -f -r $develacc # \ - # && $VIRSH suspend $develacc & - until wmctrl -l | grep -q "$develacc"; do - sleep 0.3 - done - i3-fresh-workspace --take-along -fi |