Remove boring joke shortcut
- Author
- Maarten Vangeneugden
- Date
- May 25, 2019, 3:18 p.m.
- Hash
- 7ef2064d11ac09fc5c1bfaac93fa9aac0fa1a311
- Parent
- 8ffaae1ed584b2501ae7318441290cb77c5bff6e
- Modified file
- i3/config
i3/config ¶
0 additions and 3 deletions.
View changes Hide changes
1 |
1 |
set $mod Mod4 |
2 |
2 |
# Home row direction keys, like vim |
3 |
3 |
set $left h |
4 |
4 |
set $down j |
5 |
5 |
set $up k |
6 |
6 |
set $right l |
7 |
7 |
# Your preferred terminal emulator |
8 |
8 |
set $term urxvt |
9 |
9 |
# Your preferred application launcher |
10 |
10 |
set $menu rofi -show run |
11 |
11 |
|
12 |
12 |
|
13 |
13 |
# start a terminal |
14 |
14 |
bindsym $mod+Return exec $term |
15 |
15 |
|
16 |
16 |
# kill focused window |
17 |
17 |
bindsym $mod+Shift+q kill |
18 |
18 |
|
19 |
19 |
# start your launcher |
20 |
20 |
bindsym $mod+d exec $menu |
21 |
21 |
|
22 |
22 |
# Start GNU Emacs |
23 |
23 |
bindsym $mod+m exec emacsclient -nc -s gnuemacs |
24 |
24 |
|
25 |
25 |
# Scream in chicken |
26 |
- | bindsym $mod+p exec mpv ~/Movies/raaaaah.mp4 |
27 |
- | |
28 |
- | # Mouse+$mod to drag floating windows |
29 |
26 |
floating_modifier $mod |
30 |
27 |
|
31 |
28 |
# Lock screen |
32 |
29 |
bindsym $mod+i exec i3lock-wrapper |
33 |
30 |
|
34 |
31 |
# reload the configuration file |
35 |
32 |
bindsym $mod+Shift+c reload |
36 |
33 |
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) |
37 |
34 |
bindsym $mod+Shift+r restart |
38 |
35 |
# exit i3 (logs you out of your X session) |
39 |
36 |
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" |
40 |
37 |
|
41 |
38 |
# SWAY: Managing outputs |
42 |
39 |
#output eDP-1 scale 2 |
43 |
40 |
#output eDP-1 pos 0 0 res 3840x2160 |
44 |
41 |
output eDP-1 pos 0 0 res 1920x1080 |
45 |
42 |
|
46 |
43 |
input 1:1:AT_Translated_Set_2_keyboard { |
47 |
44 |
xkb_layout us |
48 |
45 |
xkb_options caps:swapescape |
49 |
46 |
} |
50 |
47 |
# |
51 |
48 |
# Moving around: |
52 |
49 |
# |
53 |
50 |
# Move your focus around |
54 |
51 |
bindsym $mod+$left focus left |
55 |
52 |
bindsym $mod+$down focus down |
56 |
53 |
bindsym $mod+$up focus up |
57 |
54 |
bindsym $mod+$right focus right |
58 |
55 |
# or use $mod+[up|down|left|right] |
59 |
56 |
bindsym $mod+Left focus left |
60 |
57 |
bindsym $mod+Down focus down |
61 |
58 |
bindsym $mod+Up focus up |
62 |
59 |
bindsym $mod+Right focus right |
63 |
60 |
|
64 |
61 |
# _move_ the focused window with the same, but add Shift |
65 |
62 |
bindsym $mod+Shift+$left move left |
66 |
63 |
bindsym $mod+Shift+$down move down |
67 |
64 |
bindsym $mod+Shift+$up move up |
68 |
65 |
bindsym $mod+Shift+$right move right |
69 |
66 |
# ditto, with arrow keys |
70 |
67 |
bindsym $mod+Shift+Left move left |
71 |
68 |
bindsym $mod+Shift+Down move down |
72 |
69 |
bindsym $mod+Shift+Up move up |
73 |
70 |
bindsym $mod+Shift+Right move right |
74 |
71 |
# |
75 |
72 |
# Workspaces: |
76 |
73 |
# |
77 |
74 |
# switch to workspace |
78 |
75 |
bindsym $mod+1 workspace 1 |
79 |
76 |
bindsym $mod+2 workspace 2 |
80 |
77 |
bindsym $mod+3 workspace 3 |
81 |
78 |
bindsym $mod+4 workspace 4 |
82 |
79 |
bindsym $mod+5 workspace 5 |
83 |
80 |
bindsym $mod+6 workspace 6 |
84 |
81 |
bindsym $mod+7 workspace 7 |
85 |
82 |
bindsym $mod+8 workspace 8 |
86 |
83 |
bindsym $mod+9 workspace 9 |
87 |
84 |
bindsym $mod+0 workspace 10 |
88 |
85 |
# move focused container to workspace |
89 |
86 |
bindsym $mod+Shift+1 move container to workspace 1 |
90 |
87 |
bindsym $mod+Shift+2 move container to workspace 2 |
91 |
88 |
bindsym $mod+Shift+3 move container to workspace 3 |
92 |
89 |
bindsym $mod+Shift+4 move container to workspace 4 |
93 |
90 |
bindsym $mod+Shift+5 move container to workspace 5 |
94 |
91 |
bindsym $mod+Shift+6 move container to workspace 6 |
95 |
92 |
bindsym $mod+Shift+7 move container to workspace 7 |
96 |
93 |
bindsym $mod+Shift+8 move container to workspace 8 |
97 |
94 |
bindsym $mod+Shift+9 move container to workspace 9 |
98 |
95 |
bindsym $mod+Shift+0 move container to workspace 10 |
99 |
96 |
# Note: workspaces can have any name you want, not just numbers. |
100 |
97 |
# We just use 1-10 as the default. |
101 |
98 |
# |
102 |
99 |
# Layout stuff: |
103 |
100 |
# |
104 |
101 |
# You can "split" the current object of your focus with |
105 |
102 |
# $mod+b or $mod+v, for horizontal and vertical splits |
106 |
103 |
# respectively. |
107 |
104 |
bindsym $mod+b split h |
108 |
105 |
bindsym $mod+v split v |
109 |
106 |
|
110 |
107 |
# Switch the current container between different layout styles |
111 |
108 |
bindsym $mod+s layout stacking |
112 |
109 |
bindsym $mod+w layout tabbed |
113 |
110 |
bindsym $mod+e layout toggle split |
114 |
111 |
|
115 |
112 |
# Make the current focus fullscreen |
116 |
113 |
bindsym $mod+f fullscreen toggle |
117 |
114 |
|
118 |
115 |
# Toggle the current focus between tiling and floating mode |
119 |
116 |
bindsym $mod+Shift+space floating toggle |
120 |
117 |
|
121 |
118 |
# Swap focus between the tiling area and the floating area |
122 |
119 |
bindsym $mod+space focus mode_toggle |
123 |
120 |
|
124 |
121 |
# move focus to the parent container |
125 |
122 |
bindsym $mod+a focus parent |
126 |
123 |
|
127 |
124 |
# I don't use scratchpad, so they're commented out |
128 |
125 |
#bindsym $mod+Shift+minus move scratchpad |
129 |
126 |
#bindsym $mod+minus scratchpad show |
130 |
127 |
|
131 |
128 |
# Resizing containers: |
132 |
129 |
# |
133 |
130 |
mode "resize" { |
134 |
131 |
# left will shrink the containers width |
135 |
132 |
# right will grow the containers width |
136 |
133 |
# up will shrink the containers height |
137 |
134 |
# down will grow the containers height |
138 |
135 |
bindsym $left resize shrink width 10 px or 10 ppt |
139 |
136 |
bindsym $down resize grow height 10 px or 10 ppt |
140 |
137 |
bindsym $up resize shrink height 10 px or 10 ppt |
141 |
138 |
bindsym $right resize grow width 10 px or 10 ppt |
142 |
139 |
|
143 |
140 |
# ditto, with arrow keys |
144 |
141 |
bindsym Left resize shrink width 10 px or 10 ppt |
145 |
142 |
bindsym Down resize grow height 10 px or 10 ppt |
146 |
143 |
bindsym Up resize shrink height 10 px or 10 ppt |
147 |
144 |
bindsym Right resize grow width 10 px or 10 ppt |
148 |
145 |
|
149 |
146 |
# return to default mode |
150 |
147 |
bindsym Return mode "default" |
151 |
148 |
bindsym Escape mode "default" |
152 |
149 |
} |
153 |
150 |
bindsym $mod+r mode "resize" |
154 |
151 |
|
155 |
152 |
# --recursive allows subdirectories to contain wallpapers as well, which is nice |
156 |
153 |
# if you want to organize. |
157 |
154 |
# --randomize chooses a different wallpaper for each screen (and of course, |
158 |
155 |
# randomizes during startup) |
159 |
156 |
# --bg-scale scales the wallpaper to fit the screen, so any 16:9 wallpaper is |
160 |
157 |
# scaled to fit, instead of staying oversized. |
161 |
158 |
exec_always feh --recursive --randomize --bg-scale ~/.wallpapers/* |
162 |
159 |
exec compton -b |
163 |
160 |
|
164 |
161 |
bar { |
165 |
162 |
status_command i3status |
166 |
163 |
font pango:Ubunto 10 |
167 |
164 |
tray_padding 5 |
168 |
165 |
colors { |
169 |
166 |
background #444444 |
170 |
167 |
focused_workspace #F98C0E #F98C0E #333333 |
171 |
168 |
active_workspace #19ea12 #19ea12 #FFFFFF |
172 |
169 |
inactive_workspace #232323 #111111 #888888 |
173 |
170 |
urgent_workspace #D50000 #D50000 #FFFFFF |
174 |
171 |
} |
175 |
172 |
} |
176 |
173 |
|
177 |
174 |
|
178 |
175 |
# Makes my FN buttons work properly. |
179 |
176 |
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ unmute |
180 |
177 |
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- unmute |
181 |
178 |
#bindsym XF86AudioToggle exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle |
182 |
179 |
bindsym XF86AudioMute exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle |
183 |
180 |
|
184 |
181 |
bindsym XF86MonBrightnessDown exec light -U 5 |
185 |
182 |
bindsym XF86MonBrightnessUp exec light -A 5 |
186 |
183 |
bindsym Print exec scrot # Printscreen button |
187 |
184 |
bindsym $mod+Print exec scrot -s # scrot, but click for window, or drag for rectangle screenshot. |
188 |
185 |
|
189 |
186 |
|
190 |
187 |
# Font settings |
191 |
188 |
font pango:Ubuntu Regular 11 |
192 |
189 |
|
193 |
190 |
# Border settings |
194 |
191 |
hide_edge_borders smart |
195 |
192 |
default_border normal |
196 |
193 |
|
197 |
194 |
# Color settings |
198 |
195 |
|
199 |
196 |
client.focused #F98C0E #F98C0E #ffffff #F98C0E #F98C0E |
200 |
197 |
client.focused_inactive #f9be7a #f9be7a #FFFFFF #f9be7a #f9be7a |
201 |
198 |
client.unfocused #444444 #444444 #FFFFFF #444444 #444444 |
202 |
199 |
client.urgent #D50000 #D50000 #ffffff #D50000 #D50000 |
203 |
200 |
#client.placeholder |
204 |
201 |
|
205 |
202 |
# Stops the mouse defining what the active window is. |
206 |
203 |
focus_follows_mouse no |
207 |
204 |
|
208 |
205 |
# i3-gaps configuration |
209 |
206 |
# |
210 |
207 |
# i3-gaps can only work properly if title bars are completely disabled, which the |
211 |
208 |
# next line is responsible for. |
212 |
209 |
#for_window [class="^.*"] border pixel 5 |
213 |
210 |
|
214 |
211 |
#gaps inner 15 |
215 |
212 |
#gaps outer 5 |
216 |
213 |
# smart_gaps disables gaps if there is only 1 container on the workspace. |
217 |
214 |
#smart_gaps on |
218 |
215 |
# smart_borders does the same thing. If set to "on", it will always disable the |
219 |
216 |
# border if it's the only container on the workspace. If set to "no-gaps", it |
220 |
217 |
# only disables the border if the gap size to the edge of the screen is 0. |
221 |
218 |
#smart_borders no_gaps |