aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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