2020-06-25 06:00:58 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#screenshots using scrot
|
|
|
|
scrot_dir=$HOME/screenshots/
|
2020-06-29 08:38:46 +08:00
|
|
|
date_format='%Y-%m-%d_%H-%M-%S'
|
2020-06-25 06:00:58 +08:00
|
|
|
s_scrot() {
|
2020-06-29 08:38:46 +08:00
|
|
|
name=$(date +${date_format}_sel.png)
|
2020-06-25 06:00:58 +08:00
|
|
|
path="${scrot_dir}${name}"
|
|
|
|
scrot -s $path
|
|
|
|
}
|
|
|
|
|
|
|
|
f_scrot() {
|
2020-06-29 08:38:46 +08:00
|
|
|
name=$(date +${date_format}_full.png)
|
2020-06-25 06:00:58 +08:00
|
|
|
path="${scrot_dir}${name}"
|
|
|
|
scrot $path
|
|
|
|
}
|
2020-06-29 08:38:46 +08:00
|
|
|
|
|
|
|
#cd into config dir
|
|
|
|
cfdir()
|
|
|
|
{
|
|
|
|
cd $HOME/.config/$1
|
|
|
|
}
|
2020-10-08 21:36:08 +08:00
|
|
|
|
|
|
|
#sshfs into newnumyspace
|
|
|
|
nnms_fs()
|
|
|
|
{
|
|
|
|
dir_name="newnumyspace"
|
2020-10-11 13:26:39 +08:00
|
|
|
if [ ! -d $PWD/$dir_name ]
|
2020-10-08 21:36:08 +08:00
|
|
|
then
|
2020-10-11 13:26:39 +08:00
|
|
|
mkdir $dir_name
|
|
|
|
echo "Created new directory $dir_name at ${PWD}"
|
2020-10-08 21:36:08 +08:00
|
|
|
fi
|
2020-10-11 13:26:39 +08:00
|
|
|
sshfs unn_w19014537@newnumyspace.co.uk:/home/unn_w19014537/ $dir_name/
|
|
|
|
echo "Mounted at $PWD/$dir_name."
|
2020-10-08 21:36:08 +08:00
|
|
|
}
|
2020-11-05 01:11:52 +08:00
|
|
|
|
|
|
|
#pacman list sizes
|
|
|
|
pacsizes()
|
|
|
|
{
|
|
|
|
pacman -Qi $1 | awk '/^Name/{name=$3} /^Installed Size/{size=$4$5; print size, name;}' | sort -h
|
|
|
|
}
|