Added VIM tools, and help pages to all scripts missing one

This commit is contained in:
ville rantanen
2015-04-02 12:07:42 +03:00
parent 85928b7326
commit 029e2f5ad0
15 changed files with 85 additions and 18 deletions

View File

@@ -140,6 +140,10 @@ def initialize():
return entries
def main():
if (len(sys.argv)>1):
if (sys.argv[1]=="-h"):
print("Start within a VNC session to select different screen resolutions")
sys.exit(0)
entries=initialize()
print(entries)
ch=getch()

View File

@@ -1,5 +1,11 @@
#!/bin/bash
function helpexit() {
echo "Kill your current VNC session"
exit
}
[[ "$1" = "-h" ]] && helpexit
dn=$( echo $UID | sed 's/.*\(....\)$/\1/' )
vncserver -kill :$dn

View File

@@ -1,5 +1,11 @@
#!/bin/bash
function helpexit() {
echo "start a VNC session"
exit
}
[[ "$1" = "-h" ]] && helpexit
dn=$( echo $UID | sed 's/.*\(....\)$/\1/' )
vncserver :$dn -depth 24 \