mirror of
https://github.com/eRgo35/dots.git
synced 2025-12-16 07:26:12 +01:00
minor script refractor
This commit is contained in:
2
scripts/.local/bin/pasend
Executable file
2
scripts/.local/bin/pasend
Executable file
@@ -0,0 +1,2 @@
|
||||
pactl load-module module-rtp-send source=rtp.monitor destination_ip=192.168.0.11
|
||||
pactl load-module module-null-sink sink_name=rtp sink_properties="device.description='RTP'"
|
||||
17
scripts/.local/bin/rmount
Executable file
17
scripts/.local/bin/rmount
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/zsh
|
||||
|
||||
remote="dummy"
|
||||
|
||||
case $1 in
|
||||
"c2yz.com") remote="c2yz";;
|
||||
"eu.c2yz.com") remote="c2yz-eu";;
|
||||
"thor.c2yz.com" || "192.168.0.11" || "192.168.0.12") remote="thor";;
|
||||
"home.c2yz.com" || "192.168.0.200") remote "home";;
|
||||
*) remote=$(echo $1 | tr -dc '[:alnum:]\n\r' | tr '[:upper:]' '[:lower:]')
|
||||
esac
|
||||
|
||||
echo "Mounting $1 to: $HOME/remotes/$remote";
|
||||
|
||||
mkdir -p $HOME/remotes/$remote;
|
||||
|
||||
sshfs -o idmap=user $USER@$1:/home/$USER $HOME/remotes/$remote
|
||||
15
scripts/.local/bin/urmount
Executable file
15
scripts/.local/bin/urmount
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/zsh
|
||||
|
||||
remote="dummy"
|
||||
|
||||
case $1 in
|
||||
"c2yz.com") remote="c2yz";;
|
||||
"eu.c2yz.com") remote="c2yz-eu";;
|
||||
"thor.c2yz.com" || "192.168.0.11" || "192.168.0.12") remote="thor";;
|
||||
"home.c2yz.com" || "192.168.0.200") remote "home";;
|
||||
*) remote=$(echo $1 | tr -dc '[:alnum:]\n\r' | tr '[:upper:]' '[:lower:]')
|
||||
esac
|
||||
|
||||
echo "Unmounting $1 from: $HOME/remotes/$remote";
|
||||
|
||||
fusermount -u $HOME/remotes/$remote
|
||||
Reference in New Issue
Block a user