implements script to easily ssh connect from fuzzel
This commit is contained in:
parent
68bf60569f
commit
aa9a0fe7f2
3 changed files with 8 additions and 2 deletions
6
modules/wm/fuzzel/scripts/connect-with-ssh.sh
Executable file
6
modules/wm/fuzzel/scripts/connect-with-ssh.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
fish_executable="/run/current-system/sw/bin/fish"
|
||||
selected=$(cat ~/.ssh/config | grep "Host " | cut -d " " -f 2 | sort | tail -n +2 | fuzzel --dmenu --prompt "Connect to: ")
|
||||
|
||||
ghostty -e "$fish_executable" -c "ssh $selected"
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
cliphist list | fuzzel --dmenu --prompt "Copy\t" | cliphist decode | wl-copy
|
||||
cliphist list | fuzzel --dmenu --prompt "Copy: " | cliphist decode | awk '{$1=$1};1' | head -c -1 | wl-copy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue