aboutsummaryrefslogtreecommitdiff
path: root/i3wm/.i3/config
blob: 6725ae09de17d2abecec3cdfec3c11a335f9c765 (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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
set $mod Mod4
set $alt Mod1

font pango:Iosevka Medium 14px
hide_edge_borders both

client.focused          #909737 #909737 #222222
client.focused_inactive #222222 #222222 #999999
client.unfocused        #222222 #222222 #999999
client.urgent           #a5a5a5 #a5a5a5 #2e3436
client.background       #161616

bar {
	status_command ~/.conky.sh
	workspace_buttons yes
	tray_output LVDS1

	font pango:Iosevka Medium 14px

	colors {
		background #161616
		statusline #605c5a

		focused_workspace  #909737  #909737  #161616
		urgent_workspace   #909737  #909737  #161616
		active_workspace   #909737  #909737  #161616
		inactive_workspace #161616  #161616  #909737
	}
}

bindsym $mod+Shift+Q kill
bindsym $mod+Shift+C reload
bindsym $mod+Shift+R restart
bindsym $mod+Shift+E exit

bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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+y split h
bindsym $mod+x split v
bindsym $mod+f fullscreen

bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout default

bindsym Mod1+s sticky toggle, exec --no-startup-id notify-send "sticky mode toggle.";

bindsym $mod+a focus parent
bindsym $mod+d focus child

floating_modifier $mod
bindsym $mod+Shift+space floating toggle

bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 0

bindsym Control+Mod1+Right workspace next_on_output
bindsym Control+Mod1+l     workspace next_on_output
bindsym Control+Mod1+Left  workspace prev_on_output
bindsym Control+Mod1+h     workspace prev_on_output
bindsym Control+Mod1+Down  move workspace to output right

bindsym $mod+Shift+exclam     move container to workspace 1
bindsym $mod+Shift+quotedbl   move container to workspace 2
bindsym $mod+Shift+section    move container to workspace 3
bindsym $mod+Shift+dollar     move container to workspace 4
bindsym $mod+Shift+percent    move container to workspace 5
bindsym $mod+Shift+ampersand  move container to workspace 6
bindsym $mod+Shift+slash      move container to workspace 7
bindsym $mod+Shift+parenleft  move container to workspace 8
bindsym $mod+Shift+parenright move container to workspace 9
bindsym $mod+Shift+equal      move container to workspace 0

bindsym Control+Return exec urxvtc -title "Chicken Scheme REPL" -e csi -q
bindsym $mod+Return    exec urxvtc
bindsym $alt+Return    exec gvim

bindsym Control+space  exec rofi_dict
bindsym $mod+space     exec "rofi -modi run,ssh,window -show combi"
bindsym $alt+space     exec passman submitform

bindsym Print exec xfce4-screenshooter

bindsym         Mod1+l exec --no-startup-id i3lock -c 000000
bindsym Control+Mod1+m exec --no-startup-id ~/.screenlayout/mobile.sh
bindsym Control+Mod1+d exec --no-startup-id ~/.screenlayout/docked.sh
bindsym Control+Mod1+v exec --no-startup-id ~/.screenlayout/docked_vertical.sh
bindsym Control+Mod1+t exec --no-startup-id ~/.screenlayout/docked_tv_mode.sh

bindsym $mod+c exec =
bindsym $mod+t exec ~/.i3/apply_layout.sh
bindsym Mod1+n exec rofi_wiki

bindsym $mod+z [title="^.*- Zeal$"]      scratchpad show
bindsym $mod+n [title="VimWiki"]         scratchpad show
bindsym Menu   [instance="DropDownTerm"] scratchpad show

bindsym $mod+r mode "resize"

mode "resize" {
	bindsym h resize shrink width   5 px or  5 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   5 px or  5 ppt

	bindsym 113 resize shrink width  10 px or 10 ppt
	bindsym 116 resize grow   height 10 px or 10 ppt
	bindsym 111 resize shrink height 10 px or 10 ppt
	bindsym 114 resize grow   width  10 px or 10 ppt

	bindsym Return mode "default"
	bindsym Escape mode "default"
}

bindsym $mod+g mode "gaps"

mode "gaps" {
	bindsym plus  gaps inner current plus 5
	bindsym minus gaps inner current minus 5

	bindsym Shift+plus  gaps inner all plus 5
	bindsym Shift+minus gaps inner all minus 5

	bindsym Return mode "default"
	bindsym Escape mode "default"
}

bindsym XF86AudioMute        exec --no-startup-id pactl set-sink-mute 0 1
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-mute 0 0 && pactl set-sink-volume 0 +10%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-mute 0 0 && pactl set-sink-volume 0 -10%

for_window [class="^.*"]             border pixel 4;
for_window [title="^dictionary$"]    border pixel 8, floating enable;
for_window [title="VimWiki"]         border pixel 8, floating enable, move to scratchpad;
for_window [title="^.*- Zeal$"]      border pixel 8, floating enable, move position 160px 46px, move to scratchpad;
for_window [instance="DropDownTerm"] border pixel 8, move to scratchpad, move position 183px -8px, resize set 1000px 600px, move to scratchpad;
for_window [title="pinentry"]        border pixel 8, floating enable;

exec --no-startup-id export $(gnome-keyring-daemon)
exec --no-startup-id urxvtd
exec --no-startup-id twmnd
exec --no-startup-id nm-applet
exec --no-startup-id pasystray
exec --no-startup-id feh --bg-center ~/.background.jpg
exec --no-startup-id gvim -geometry 120x35 --servername VIMWIKI -c ":set title titlestring=VimWiki" -c ":set autowriteall" -c ":set noswapfile"  ~/wiki/0.wiki
exec --no-startup-id zeal
exec --no-startup-id urxvt -name DropDownTerm
exec --no-startup-id xautolock -time 5 -locker "i3lock -c 000000"
exec --no-startup-id ~/.cabal/bin/arbtt-capture