From e434cf34843b42263a7066871f093867b9ee3e73 Mon Sep 17 00:00:00 2001 From: The-Repo-Club Date: Sun, 6 Nov 2022 18:58:01 +0000 Subject: [PATCH] Added sxhkd to Dotfiles --- sxhkd/.config/sxhkd/keybinds.sh | 38 +++++++++++++++++++++++++++++++++ sxhkd/.config/sxhkd/sxhkdrc | 4 ++++ 2 files changed, 42 insertions(+) create mode 100755 sxhkd/.config/sxhkd/keybinds.sh create mode 100644 sxhkd/.config/sxhkd/sxhkdrc diff --git a/sxhkd/.config/sxhkd/keybinds.sh b/sxhkd/.config/sxhkd/keybinds.sh new file mode 100755 index 000000000..6a4f96113 --- /dev/null +++ b/sxhkd/.config/sxhkd/keybinds.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash +# -*-coding:utf-8 -*- +# Auto updated? +# Yes +#File : +# keybinds +#Author: +# The-Repo-Club [wayne6324@gmail.com] +#Github: +# https://github.com/The-Repo-Club/ +# +# Created: +# Wed 10 March 2021, 12:34:47 PM [GMT] +# Modified: +# Sun 06 November 2022, 06:53:30 PM [GMT] +# +# Description: +# +# + +cmd="\grep -A 1 Description $HOME/.config/sxhkd/sxhkdrc | sed -e s/--/\ /g" +case $1 in +fzf) + cmd="$cmd -e s/Description:\ //gI" && eval "$cmd" | sed -e 's/[\\$]//g' | sed -e 's/_b//g' | awk '/^[a-z]/ && last {print last,$0,";"} {last=""} /^#/{last=$0}' | column -t -s ';' | fzf + ;; +yad) + cmd="$cmd -e s/Description:\ //gI" && eval "$cmd" | sed -e 's/[\\$]//g' | sed -e 's/_b//g' | awk '/^[a-z]/ && last {print last,$0,";"} {last=""} /^#/{last=$0}' | column -t -s ';' | yad --text-info --width=800 --height=800 + ;; +dmenu) + cmd="$cmd -e s/Description:\ //gI" && eval "$cmd" | sed -e 's/[\\$]//g' | sed -e 's/_b//g' | awk '/^[a-z]/ && last {print last,$0,";"} {last=""} /^#/{last=$0}' | column -t -s ';' | dmenu -l 10 -p "Search Keybind" + ;; +rofi) + cmd="$cmd -e s/Description:\ //gI" && eval "$cmd" | sed -e 's/[\\$]//g' | sed -e 's/_b//g' | awk '/^[a-z]/ && last {print last,$0,";"} {last=""} /^#/{last=$0}' | column -t -s ';' | rofi -dmenu -i -width 1000 -p "Search Keybind" + ;; +*) + cmd="$cmd -e s/Description:\ //gI" && eval "$cmd" | sed -e 's/[\\$]//g' | sed -e 's/_b//g' | awk '/^[a-z]/ && last {print last,$0,";"} {last=""} /^#/{last=$0}' | column -t -s ';' | yad --text-info --width=800 --height=800 + ;; +esac diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc new file mode 100644 index 000000000..f03637402 --- /dev/null +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -0,0 +1,4 @@ +## Category: Main Keybinds; +# Description: Kill a window; +super + shift + c + bspc node -c \ No newline at end of file