aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-02-25 21:34:23 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-02-25 21:34:23 +1300
commit3d6829b47722828aa336b7644555ddbc5239cc39 (patch)
tree001600bf51ed4767682d5e206aec192a8bce7f10
parentAdd basic ex/vi settings (diff)
downloaddotfiles-3d6829b47722828aa336b7644555ddbc5239cc39.tar.gz
dotfiles-3d6829b47722828aa336b7644555ddbc5239cc39.zip
Switch from xbindkeys to sxhkd
Smaller, easier
-rw-r--r--IDEAS.markdown1
-rw-r--r--Makefile3
-rw-r--r--X/sxhkdrc44
-rw-r--r--X/xbindkeysrc44
-rw-r--r--X/xinitrc.d/sxhkd.sh3
-rw-r--r--X/xinitrc.d/xbindkeys.sh3
-rw-r--r--man/man1/br.1df3
7 files changed, 49 insertions, 52 deletions
diff --git a/IDEAS.markdown b/IDEAS.markdown
index d787947d..67283ce2 100644
--- a/IDEAS.markdown
+++ b/IDEAS.markdown
@@ -3,7 +3,6 @@ Ideas
* I can probably share my psql() completions/shortcuts after sanitizing them
a bit
-* sxhkd(1) might be nicer than xbindkeys; it's in Debian Testing now
* Wouldn't be too hard to add some HTTP BASIC auth to ix(1df) to make pastes
manageable
* Have eds(1df) accept stdin with the "starting content" for the script
diff --git a/Makefile b/Makefile
index ca2f8583..80c91721 100644
--- a/Makefile
+++ b/Makefile
@@ -362,10 +362,11 @@ install-vim-pathogen : install-vim-plugins
install-x :
mkdir -p -- \
"$(HOME)"/.config \
+ "$(HOME)"/.config/sxhkdrc \
"$(HOME)"/.xinitrc.d \
"$(HOME)"/.Xresources.d
cp -p -- X/redshift.conf "$(HOME)"/.config/redshift.conf
- cp -p -- X/xbindkeysrc "$(HOME)"/.xbindkeysrc
+ cp -p -- X/sxhkdrc "$(HOME)"/.config/sxhkd/sxhkdrc
cp -p -- X/xinitrc "$(HOME)"/.xinitrc
cp -p -- X/xinitrc.d/* "$(HOME)"/.xinitrc.d
cp -p -- X/Xresources "$(HOME)"/.Xresources
diff --git a/X/sxhkdrc b/X/sxhkdrc
new file mode 100644
index 00000000..5a75f1df
--- /dev/null
+++ b/X/sxhkdrc
@@ -0,0 +1,44 @@
+super + Return
+ urxvtcd
+
+super + control + Return
+ urxvtcd -e sh
+
+super + shift + Return
+ urxvtcd -e ksh
+
+super + alt + Return
+ urxvtcd -e zsh
+
+super + b
+ br
+
+super + d
+ dmenu_run
+
+super + g
+ xgoc
+
+super + i
+ gimp
+
+super + m
+ urxvtcd -e tm
+
+super + p
+ dmp
+
+super + slash
+ i3lock --color=#000000 --image ~/.i3/lock.png --nofork
+
+XF86AudioMute
+ amixer -q sset Master toggle
+
+XF86AudioRaiseVolume
+ amixer -q sset Master 5%+ unmute
+
+XF86AudioLowerVolume
+ amixer -q sset Master 5%- unmute
+
+XF86Calculator
+ urxvtcd -e bcq
diff --git a/X/xbindkeysrc b/X/xbindkeysrc
deleted file mode 100644
index 16ae5b14..00000000
--- a/X/xbindkeysrc
+++ /dev/null
@@ -1,44 +0,0 @@
-"exec urxvtcd"
- Mod4 + Return
-
-"exec urxvtcd -e sh"
- Mod4 + Control + Return
-
-"exec urxvtcd -e ksh"
- Mod4 + Shift + Return
-
-"exec urxvtcd -e zsh"
- Mod4 + Alt + Return
-
-"exec br"
- Mod4 + b
-
-"exec dmenu_run"
- Mod4 + d
-
-"exec xgoc"
- Mod4 + g
-
-"exec gimp"
- Mod4 + i
-
-"exec urxvtcd -e tm"
- Mod4 + m
-
-"exec dmp"
- Mod4 + p
-
-"exec i3lock --color=#000000 --image ~/.i3/lock.png --nofork"
- Mod4 + slash
-
-"exec amixer -q sset Master toggle"
- XF86AudioMute
-
-"exec amixer -q sset Master 5%+ unmute"
- XF86AudioRaiseVolume
-
-"exec amixer -q sset Master 5%- unmute"
- XF86AudioLowerVolume
-
-"exec urxvtcd -e bcq"
- XF86Calculator
diff --git a/X/xinitrc.d/sxhkd.sh b/X/xinitrc.d/sxhkd.sh
new file mode 100644
index 00000000..132d8f8a
--- /dev/null
+++ b/X/xinitrc.d/sxhkd.sh
@@ -0,0 +1,3 @@
+# Start sxhkd(1)
+command -v sxhkd >/dev/null 2>&1 || return
+sxhkd &
diff --git a/X/xinitrc.d/xbindkeys.sh b/X/xinitrc.d/xbindkeys.sh
deleted file mode 100644
index b76aebdd..00000000
--- a/X/xinitrc.d/xbindkeys.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-# Start xbindkeys(1)
-command -v xbindkeys >/dev/null 2>&1 || return
-(cd -- "$HOME" && xbindkeys -n) &
diff --git a/man/man1/br.1df b/man/man1/br.1df
index af9645fb..05d662bc 100644
--- a/man/man1/br.1df
+++ b/man/man1/br.1df
@@ -14,9 +14,6 @@ BROWSER=firefox
.B br
just execs the program in the $BROWSER environment variable with the given
arguments. That's it.
-.P
-It was written to have a clean way to launch $BROWSER from ~/.xbindkeysrc. It
-has no other reason to exist.
.SH SEE ALSO
bp(1df), xgo(1df), xgoc(1df)
.SH AUTHOR