aboutsummaryrefslogtreecommitdiff
path: root/autostart
blob: 359934d6d2ea3a8f7af99f763876d60f1d8b287c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash

dot() {
    # Using BSD netcat
    printf "%s " $@ | netcat -U dotwm.sock
}

# nitrogen --restore &

dot bind Mod4 p exec dmenu_run 
dot bind Mod4 Return exec xterm
dot bind Mod4 f fullscreen

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

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

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

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

dot bind Mod4-Shift c close-win
dot bind Mod4 Tab focus-next

dot bind Mod4 1 change-desktop 0
dot bind Mod4 2 change-desktop 1

dot bind-button Mod4 button1 move-win-drag