From cc9a7271e205bdc52859e2e1eec464e695dbdeee Mon Sep 17 00:00:00 2001 From: zymon Date: Tue, 11 Jun 2024 12:13:43 +0200 Subject: [PATCH] fssh + setbg --- install.sh | 3 +++ local/bin/fssh | 3 +++ local/bin/setbg | 5 +++++ 3 files changed, 11 insertions(+) create mode 100755 local/bin/fssh create mode 100755 local/bin/setbg diff --git a/install.sh b/install.sh index f203d73..c4b46ce 100755 --- a/install.sh +++ b/install.sh @@ -11,3 +11,6 @@ mkdir -p "${XDG_DATA_HOME}" ln --force --symbolic --no-dereference $BASEDIR/config/x11/ "${XDG_CONFIG_HOME}/x11" ln --force --symbolic --no-dereference $BASEDIR/config/zsh/ "${XDG_CONFIG_HOME}/zsh" + +ln --force --symbolic --no-dereference $BASEDIR/local/bin/fssh "${XDG_BIN_HOME}/fssh" +ln --force --symbolic --no-dereference $BASEDIR/local/bin/setbg "${XDG_BIN_HOME}/setbg" diff --git a/local/bin/fssh b/local/bin/fssh new file mode 100755 index 0000000..64b2831 --- /dev/null +++ b/local/bin/fssh @@ -0,0 +1,3 @@ +#!/bin/sh + +ssh "$(grep '^Host\b' "$HOME"/.ssh/config | awk '{print $2}' | fzf)" diff --git a/local/bin/setbg b/local/bin/setbg new file mode 100755 index 0000000..6c056f9 --- /dev/null +++ b/local/bin/setbg @@ -0,0 +1,5 @@ +#/bin/sh + +wpath="$HOME/i/wallpapers" +img=$(ls $wpath | fzf) +feh --no-fehbg --bg-fill $wpath/$img