aboutsummaryrefslogtreecommitdiff
path: root/autostart
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2015-11-30 22:49:09 -0300
committerMatias Linares <matiaslina@openmailbox.org>2015-11-30 22:49:09 -0300
commitc6c2b8cb2ed84be823df7ccae058fe27868aa0db (patch)
tree046d1be7f4ea6121aa3c8fb8f2384c936f69b383 /autostart
parentd5e55aab6499a89e9dfaf5b976938bfe3e2f6aee (diff)
downloaddotwm-c6c2b8cb2ed84be823df7ccae058fe27868aa0db.tar.gz
Change one netcat with a more readable way
Diffstat (limited to 'autostart')
-rwxr-xr-xautostart74
1 files changed, 54 insertions, 20 deletions
diff --git a/autostart b/autostart
index 3957d67..0a155db 100755
--- a/autostart
+++ b/autostart
@@ -1,27 +1,61 @@
-#!/bin/mksh
+#!/bin/bash
-netcat -U dotwm.sock <<EOF
-bind Mod4 p exec dmenu_run
-bind Mod4 Return exec xterm
-bind Mod4 f fullscreen
+dot() {
+ # Using BSD netcat
+ printf "%s " $@ | netcat -U dotwm.sock
+}
-bind Mod4 h move-win -10 0
-bind Mod4 j move-win 0 10
-bind Mod4 k move-win 0 -10
-bind Mod4 l move-win 10 0
+dot bind Mod4 p exec dmenu_run
+dot bind Mod4 Return exec xterm
+dot bind Mod4 f fullscreen
-bind Mod4-Control h resize-win -10 0
-bind Mod4-Control j resize-win 0 10
-bind Mod4-Control k resize-win 0 -10
-bind Mod4-Control l resize-win 10 0
+dot bind Mod4-Shift h move-win-sticky left
+dot bind Mod4-Shift j move-win-sticky down
+dot bind Mod4-Shift k move-win-sticky up
+dot bind Mod4-Shift l move-win-sticky right
-bind Mod4-Shift h move-win-sticky left
-bind Mod4-Shift j move-win-sticky down
-bind Mod4-Shift k move-win-sticky up
-bind Mod4-Shift l move-win-sticky right
+dot bind Mod1 h resize-win -10 0
+dot bind Mod1 j resize-win 0 10
+dot bind Mod1 k resize-win 0 -10
+dot bind Mod1 l resize-win 10 0
-bind Mod4-Shift c close-win
+dot bind Mod1-Control h resize-win-sticky left
+dot bind Mod1-Control j resize-win-sticky down
+dot bind Mod1-Control k resize-win-sticky up
+dot bind Mod1-Control l resize-win-sticky right
-bind Mod4 Tab focus-next
+dot bind Mod4 h move-win -10 0
+dot bind Mod4 j move-win 0 10
+dot bind Mod4 k move-win 0 -10
+dot bind Mod4 l move-win 10 0
-EOF
+
+dot bind Mod4-Shift c close-win
+
+dot bind Mod4 Tab focus-next
+
+#netcat -U dotwm.sock <<EOF
+#bind Mod4 p exec dmenu_run
+#bind Mod4 Return exec xterm
+#bind Mod4 f fullscreen
+#
+#bind Mod4 h move-win -10 0
+#bind Mod4 j move-win 0 10
+#bind Mod4 k move-win 0 -10
+#bind Mod4 l move-win 10 0
+#
+#bind Mod4-Shift h move-win-sticky left
+#bind Mod4-Shift j move-win-sticky down
+#bind Mod4-Shift k move-win-sticky up
+#bind Mod4-Shift l move-win-sticky right
+#
+#bind Mod4-Shift-Control h resize-win-sticky left
+#bind Mod4-Shift-Control j resize-win-sticky down
+#bind Mod4-Shift-Control k resize-win-sticky up
+#bind Mod4-Shift-Control l resize-win-sticky right
+#
+#bind Mod4-Shift c close-win
+#
+#bind Mod4 Tab focus-next
+#
+#EOF