aboutsummaryrefslogtreecommitdiff
path: root/i3/config
blob: 9b2b38dad81e29c6716d8ee2ad20ad61e2d034bd (plain) (blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
set $mod Mod4
set $ws1 "1:1"
set $ws2 "2:2"
set $ws3 "3:3"
set $ws4 "4:4"
set $wsa "5:a"
set $wss "6:s"
set $wsd "7:d"
set $wsf "8:f"

floating_modifier $mod
font pango:Droid Sans 11
default_border normal 3

workspace $ws1 output primary
workspace $ws2 output primary
workspace $ws3 output primary
workspace $ws4 output primary
workspace $wsa output DP1-1 DP1-2 DP1 primary
workspace $wss output DP1-1 DP1-2 DP1 primary
workspace $wsd output DP1-1 DP1-2 DP1 primary
workspace $wsf output DP1-1 DP1-2 DP1 primary


bindsym $mod+Return exec alacritty
bindsym $mod+space exec --no-startup-id rofi -show drun
bindsym $mod+backslash split h
bindsym $mod+minus split v
#bindsym $mod+s layout stacking
#bindsym $mod+w layout tabbed
bindsym $mod+Tab layout toggle split
bindsym $mod+p focus parent
#bindsym $mod+d focus child
bindsym $mod+r mode "resize"

bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exit
bindsym $mod+Shift+q kill
bindsym $mod+Shift+space floating toggle
bindsym $mod+Shift+Return fullscreen toggle


bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right

bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right

bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right


bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+a workspace $wsa
bindsym $mod+s workspace $wss
bindsym $mod+d workspace $wsd
bindsym $mod+f workspace $wsf

bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+a move container to workspace $wsa
bindsym $mod+Shift+s move container to workspace $wss
bindsym $mod+Shift+d move container to workspace $wsd
bindsym $mod+Shift+f move container to workspace $wsf


mode "resize" {
    bindsym h resize shrink width 10 px or 10 ppt
    bindsym j resize grow height 10 px or 10 ppt
    bindsym k resize shrink height 10 px or 10 ppt
    bindsym l resize grow width 10 px or 10 ppt

    bindsym Left resize shrink width 10 px or 10 ppt
    bindsym Down resize grow height 10 px or 10 ppt
    bindsym Up resize shrink height 10 px or 10 ppt
    bindsym Right resize grow width 10 px or 10 ppt

    bindsym Return mode "default"
    bindsym Escape mode "default"
    bindsym $mod+r mode "default"
}


bar {
    status_command py3status
    tray_output primary
    strip_workspace_numbers yes
    workspace_min_width 40
    font pango:Font Awesome 5 Free, Font Awesome 5 Brands, Droid Sans Mono 12
}


# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork

# picom
exec --no-startup-id picom

# background
exec_always --no-startup-id feh --bg-scale ~/.dotfiles/pictures/bg1.jpg \
                                           ~/.dotfiles/pictures/bg2.jpg

# terminal
exec --no-startup-id alacritty --class scratchpad_term -e tmux new-session -A -s default
for_window [instance="scratchpad_term"] move scratchpad
bindsym F12 [instance="scratchpad_term"] scratchpad show, \
                                         resize set 100 ppt 100 ppt, \
                                         resize shrink height 30 px, \
                                         move position center