dotfiles/.custom_bash_scripts
2020-10-11 13:26:39 +08:00

36 lines
623 B
Bash

#!/bin/bash
#screenshots using scrot
scrot_dir=$HOME/screenshots/
date_format='%Y-%m-%d_%H-%M-%S'
s_scrot() {
name=$(date +${date_format}_sel.png)
path="${scrot_dir}${name}"
scrot -s $path
}
f_scrot() {
name=$(date +${date_format}_full.png)
path="${scrot_dir}${name}"
scrot $path
}
#cd into config dir
cfdir()
{
cd $HOME/.config/$1
}
#sshfs into newnumyspace
nnms_fs()
{
dir_name="newnumyspace"
if [ ! -d $PWD/$dir_name ]
then
mkdir $dir_name
echo "Created new directory $dir_name at ${PWD}"
fi
sshfs unn_w19014537@newnumyspace.co.uk:/home/unn_w19014537/ $dir_name/
echo "Mounted at $PWD/$dir_name."
}