From ae0b14d9625e524c154962e2567f7a84325f903f Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Fri, 9 Oct 2020 18:06:52 +0200 Subject: [PATCH] [bin] Add pumopm to startup, new sshbind, deprecate polybar-launch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds PumoPM back to the autostart script. Its transition to a systemd unit isn’t complete yet. `sshbind' has been added as a shorthand for an `ssh' command. Since I do not use polybar anymore, `polybar-launch' has been deprecated. --- org/config/bin.org | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/org/config/bin.org b/org/config/bin.org index ce626b6..f92671d 100644 --- a/org/config/bin.org +++ b/org/config/bin.org @@ -96,6 +96,7 @@ #+NAME: autostart-table | Command | Arguments | Run once? | |----------------------------+-----------------------------------------------------------------+-----------| + | ~pumopm~ | | yes | | ~xfce-polkit~ | | yes | | ~picom~ | ~--experimental-backends~ | yes | | ~xidlehook~ | ~--not-when-audio --not-when-fullscreen --timer 3600 i3lock ''~ | yes | @@ -412,7 +413,7 @@ :END: ~pinfo~ is a utility that shows system information -* Polybar-launch +* Polybar-launch (Deprecated) :PROPERTIES: :HEADER-ARGS: :shebang "#!/usr/bin/env fish" :mkdirp yes :tangle ~/.local/bin/polybar-launch :CUSTOM_ID: Polybar-launch-36789edc @@ -1178,6 +1179,19 @@ end #+END_SRC +* sshbind + :PROPERTIES: + :HEADER-ARGS: :shebang "#!/usr/bin/env fish" :mkdirp yes :tangle ~/.local/bin/sshbind + :CUSTOM_ID: sshbind-756fabb1 + :END: + Something that I did not know for quite some time but that is actually crazy + useful about SSH is its ability to bind locally the port of a remote machine, + and vice versa. The syntax is actually very simple, but I prefer a more + intuitive way of writing it. Its usage is ~sshbind PORT FROMHOST TOHOST~. + #+BEGIN_SRC fish + ssh -L $argv[1]:$argv[3]:$argv[1] $argv[2] -N + #+END_SRC + * Starwars :PROPERTIES: :HEADER-ARGS: :shebang "#!/usr/bin/env fish" :mkdirp yes :tangle ~/.local/bin/starwars