Added sxhkd to Dotfiles

This commit is contained in:
The-Repo-Club 2022-11-06 18:58:01 +00:00
parent 9ea56b89e8
commit e434cf3484
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
2 changed files with 42 additions and 0 deletions

38
sxhkd/.config/sxhkd/keybinds.sh Executable file
View File

@ -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:
# <Todo>
#
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

View File

@ -0,0 +1,4 @@
## Category: Main Keybinds;
# Description: Kill a window;
super + shift + c
bspc node -c