diff options
-rw-r--r-- | config | 250 | ||||
-rw-r--r-- | i3status.conf | 73 |
2 files changed, 323 insertions, 0 deletions
@@ -0,0 +1,250 @@ | |||
1 | # This file has been auto-generated by i3-config-wizard(1). | ||
2 | # It will not be overwritten, so edit it as you like. | ||
3 | # | ||
4 | # Should you change your keyboard layout some time, delete | ||
5 | # this file and re-run i3-config-wizard(1). | ||
6 | # | ||
7 | |||
8 | # i3 config file (v4) | ||
9 | # | ||
10 | # Please see http://i3wm.org/docs/userguide.html for a complete reference! | ||
11 | |||
12 | set $mod Mod4 | ||
13 | |||
14 | # Font for window titles. Will also be used by the bar unless a different font | ||
15 | # is used in the bar {} block below | ||
16 | # font pango:monospace 12 | ||
17 | |||
18 | # This font is widely installed, provides lots of unicode glyphs, right-to-left | ||
19 | # text rendering and scalability on retina/hidpi displays (thanks to pango). | ||
20 | font pango:Neris SemiBold 11 | ||
21 | # font pango:DejaVu Sans Mono 12 | ||
22 | |||
23 | # Before i3 v4.8, we used to recommend this one as the default: | ||
24 | # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | ||
25 | # The font above is very space-efficient, that is, it looks good, sharp and | ||
26 | # clear in small sizes. However, its unicode glyph coverage is limited, the old | ||
27 | # X core fonts rendering does not support right-to-left and this being a bitmap | ||
28 | # font, it doesn’t scale on retina/hidpi displays. | ||
29 | |||
30 | # Use Mouse+$mod to drag floating windows to their wanted position | ||
31 | floating_modifier $mod | ||
32 | |||
33 | # start a terminal | ||
34 | # bindsym $mod+Return exec i3-sensible-terminal | ||
35 | bindsym $mod+Return exec xfce4-terminal | ||
36 | bindsym $mod+t exec xfce4-terminal | ||
37 | bindsym $mod+e exec thunar | ||
38 | |||
39 | # kill focused window | ||
40 | bindsym $mod+Shift+q kill | ||
41 | bindsym Mod1+F4 kill | ||
42 | |||
43 | # start dmenu (a program launcher) | ||
44 | # bindsym $mod+d exec dmenu_run | ||
45 | # There also is the (new) i3-dmenu-desktop which only displays applications | ||
46 | # shipping a .desktop file. It is a wrapper around dmenu, so you need that | ||
47 | # installed. | ||
48 | # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop | ||
49 | bindsym $mod+d exec --no-startup-id j4-dmenu-desktop | ||
50 | bindsym Mod1+F2 exec --no-startup-id j4-dmenu-desktop | ||
51 | |||
52 | |||
53 | |||
54 | # alternatively, you can use the cursor keys: | ||
55 | bindsym $mod+Left focus left | ||
56 | bindsym $mod+Down focus down | ||
57 | bindsym $mod+Up focus up | ||
58 | bindsym $mod+Right focus right | ||
59 | |||
60 | |||
61 | # alternatively, you can use the cursor keys: | ||
62 | bindsym $mod+Shift+Left move left | ||
63 | bindsym $mod+Shift+Down move down | ||
64 | bindsym $mod+Shift+Up move up | ||
65 | bindsym $mod+Shift+Right move right | ||
66 | |||
67 | # split in horizontal orientation | ||
68 | # bindsym $mod+h split h | ||
69 | |||
70 | # split in vertical orientation | ||
71 | # bindsym $mod+v split v | ||
72 | |||
73 | # enter fullscreen mode for the focused container | ||
74 | bindsym $mod+f fullscreen toggle | ||
75 | |||
76 | # change container layout (stacked, tabbed, toggle split) | ||
77 | bindsym $mod+s layout stacking | ||
78 | bindsym $mod+w layout tabbed | ||
79 | bindsym $mod+q layout toggle split | ||
80 | |||
81 | # toggle tiling / floating | ||
82 | bindsym $mod+Shift+space floating toggle | ||
83 | |||
84 | # change focus between tiling / floating windows | ||
85 | # bindsym $mod+space focus mode_toggle | ||
86 | |||
87 | # focus the parent container | ||
88 | bindsym $mod+a focus parent | ||
89 | |||
90 | # focus the child container | ||
91 | #bindsym $mod+d focus child | ||
92 | |||
93 | workspace 1 output VGA1 | ||
94 | |||
95 | # switch to workspace | ||
96 | bindsym $mod+1 workspace 1 | ||
97 | bindsym $mod+2 workspace 2 | ||
98 | bindsym $mod+3 workspace 3 | ||
99 | bindsym $mod+4 workspace 4 | ||
100 | bindsym $mod+5 workspace 5 | ||
101 | bindsym $mod+6 workspace 6 | ||
102 | bindsym $mod+7 workspace 7 | ||
103 | bindsym $mod+8 workspace 8 | ||
104 | bindsym $mod+9 workspace 9 | ||
105 | bindsym $mod+0 workspace 10 | ||
106 | |||
107 | # move focused container to workspace | ||
108 | bindsym $mod+Shift+1 move container to workspace 1 | ||
109 | bindsym $mod+Shift+2 move container to workspace 2 | ||
110 | bindsym $mod+Shift+3 move container to workspace 3 | ||
111 | bindsym $mod+Shift+4 move container to workspace 4 | ||
112 | bindsym $mod+Shift+5 move container to workspace 5 | ||
113 | bindsym $mod+Shift+6 move container to workspace 6 | ||
114 | bindsym $mod+Shift+7 move container to workspace 7 | ||
115 | bindsym $mod+Shift+8 move container to workspace 8 | ||
116 | bindsym $mod+Shift+9 move container to workspace 9 | ||
117 | bindsym $mod+Shift+0 move container to workspace 10 | ||
118 | |||
119 | # reload the configuration file | ||
120 | bindsym $mod+Shift+c reload | ||
121 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | ||
122 | bindsym $mod+Shift+r restart | ||
123 | # exit i3 (logs you out of your X session) | ||
124 | 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'" | ||
125 | |||
126 | |||
127 | bindsym $mod+m move scratchpad | ||
128 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center | ||
129 | |||
130 | for_window [class="^.*"] border pixel 8 | ||
131 | # smart_borders on | ||
132 | # gaps inner 8 | ||
133 | # gaps outer 8 | ||
134 | |||
135 | # resize window (you can also use the mouse for that) | ||
136 | # mode "resize" { | ||
137 | # # These bindings trigger as soon as you enter the resize mode | ||
138 | # | ||
139 | # # Pressing left will shrink the window’s width. | ||
140 | # # Pressing right will grow the window’s width. | ||
141 | # # Pressing up will shrink the window’s height. | ||
142 | # # Pressing down will grow the window’s height. | ||
143 | # bindsym j resize shrink width 10 px or 10 ppt | ||
144 | # bindsym k resize grow height 10 px or 10 ppt | ||
145 | # bindsym l resize shrink height 10 px or 10 ppt | ||
146 | # bindsym semicolon resize grow width 10 px or 10 ppt | ||
147 | # | ||
148 | # # same bindings, but for the arrow keys | ||
149 | # bindsym Left resize shrink width 10 px or 10 ppt | ||
150 | # bindsym Down resize grow height 10 px or 10 ppt | ||
151 | # bindsym Up resize shrink height 10 px or 10 ppt | ||
152 | # bindsym Right resize grow width 10 px or 10 ppt | ||
153 | # | ||
154 | # # back to normal: Enter or Escape | ||
155 | # bindsym Return mode "default" | ||
156 | # bindsym Escape mode "default" | ||
157 | # } | ||
158 | |||
159 | bindsym $mod+r mode "resize" | ||
160 | |||
161 | # Start i3bar to display a workspace bar (plus the system information i3status | ||
162 | # finds out, if available) | ||
163 | bar { | ||
164 | status_command i3status --config ~/.config/i3/i3status.conf | ||
165 | colors { | ||
166 | background #061229 | ||
167 | statusline #ffffff | ||
168 | } | ||
169 | # tray_output VGA1 | ||
170 | tray_padding 4 | ||
171 | # font pango:DejaVu Sans Mono 12 | ||
172 | # separator_symbol "┋" | ||
173 | position top | ||
174 | # output VGA1 | ||
175 | binding_mode_indicator yes | ||
176 | } | ||
177 | |||
178 | client.focused #ffffff #061229 #ffffff #5299BF #ffffff | ||
179 | # client.unfocused #000000 #061229 #000000 #ff0000 #000000 | ||
180 | |||
181 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' | ||
182 | bindsym Control+Mod1+Left workspace prev_on_output | ||
183 | bindsym Control+Mod1+Right workspace next_on_output | ||
184 | |||
185 | # change focus | ||
186 | # bindsym $mod+j focus left | ||
187 | # bindsym $mod+k focus down | ||
188 | # bindsym $mod+l focus up | ||
189 | # bindsym $mod+semicolon focus right | ||
190 | # | ||
191 | # move focused window | ||
192 | # bindsym $mod+Shift+j move left | ||
193 | # bindsym $mod+Shift+k move down | ||
194 | # bindsym $mod+Shift+l move up | ||
195 | # bindsym $mod+Shift+semicolon move right | ||
196 | |||
197 | # change focus | ||
198 | bindsym $mod+h focus left | ||
199 | bindsym $mod+j focus down | ||
200 | bindsym $mod+k focus up | ||
201 | bindsym $mod+l focus right | ||
202 | |||
203 | # move focused window | ||
204 | bindsym $mod+Shift+h move left | ||
205 | bindsym $mod+Shift+j move down | ||
206 | bindsym $mod+Shift+k move up | ||
207 | bindsym $mod+Shift+l move right | ||
208 | |||
209 | # split in horizontal orientation | ||
210 | # bindsym $mod+Shift+v split h | ||
211 | |||
212 | # split in vertical orientation | ||
213 | # bindsym $mod+v split v | ||
214 | bindsym $mod+v split toggle | ||
215 | bindsym $mod+space split toggle | ||
216 | |||
217 | |||
218 | # resize window (you can also use the mouse for that) | ||
219 | mode "resize" { | ||
220 | # These bindings trigger as soon as you enter the resize mode | ||
221 | |||
222 | # Pressing left will shrink the window’s width. | ||
223 | # Pressing right will grow the window’s width. | ||
224 | # Pressing up will shrink the window’s height. | ||
225 | # Pressing down will grow the window’s height. | ||
226 | bindsym $mod+h resize shrink width 10 px or 10 ppt | ||
227 | bindsym $mod+j resize grow height 10 px or 10 ppt | ||
228 | bindsym $mod+k resize shrink height 10 px or 10 ppt | ||
229 | bindsym $mod+l resize grow width 10 px or 10 ppt | ||
230 | |||
231 | # same bindings, but for the arrow keys | ||
232 | bindsym Left resize shrink width 10 px or 10 ppt | ||
233 | bindsym Down resize grow height 10 px or 10 ppt | ||
234 | bindsym Up resize shrink height 10 px or 10 ppt | ||
235 | bindsym Right resize grow width 10 px or 10 ppt | ||
236 | |||
237 | # back to normal: Enter or Escape | ||
238 | bindsym Return mode "default" | ||
239 | bindsym Escape mode "default" | ||
240 | } | ||
241 | |||
242 | |||
243 | |||
244 | |||
245 | exec --no-startup-id dbus-launch gnome-settings-daemon | ||
246 | exec --no-startup-id dbus-launch nm-applet | ||
247 | exec --no-startup-id dbus-launch nextcloud | ||
248 | exec --no-startup-id nitrogen --restore | ||
249 | exec --no-startup-id setxkbmap -option caps:escape | ||
250 | exec xset r rate 330 75 | ||
diff --git a/i3status.conf b/i3status.conf new file mode 100644 index 0000000..34a56d9 --- /dev/null +++ b/i3status.conf | |||
@@ -0,0 +1,73 @@ | |||
1 | # i3status configuration file. | ||
2 | # see "man i3status" for documentation. | ||
3 | |||
4 | # It is important that this file is edited as UTF-8. | ||
5 | # The following line should contain a sharp s: | ||
6 | # ß | ||
7 | # If the above line is not correctly displayed, fix your editor first! | ||
8 | |||
9 | general { | ||
10 | colors = true | ||
11 | interval = 5 | ||
12 | } | ||
13 | |||
14 | order += "ipv6" | ||
15 | order += "disk /" | ||
16 | # order += "run_watch VPN" | ||
17 | order += "path_exists VPN" | ||
18 | order += "run_watch DHCP" | ||
19 | # order += "wireless _first_" | ||
20 | order += "ethernet _first_" | ||
21 | order += "ethernet enp7s0" | ||
22 | # order += "battery 0" | ||
23 | order += "load" | ||
24 | order += "tztime local" | ||
25 | |||
26 | wireless _first_ { | ||
27 | format_up = "W: (%quality at %essid) %ip" | ||
28 | format_down = "W: down" | ||
29 | } | ||
30 | |||
31 | ethernet _first_ { | ||
32 | # if you use %speed, i3status requires root privileges | ||
33 | format_up = "E1: %ip (%speed)" | ||
34 | format_down = "E1: down" | ||
35 | } | ||
36 | |||
37 | |||
38 | ethernet enp7s0 { | ||
39 | # if you use %speed, i3status requires root privileges | ||
40 | format_up = "E2: %ip (%speed)" | ||
41 | format_down = "E2: down" | ||
42 | } | ||
43 | |||
44 | |||
45 | battery 0 { | ||
46 | format = "%status %percentage %remaining" | ||
47 | } | ||
48 | |||
49 | run_watch DHCP { | ||
50 | pidfile = "/var/run/dhclient*.pid" | ||
51 | } | ||
52 | |||
53 | |||
54 | path_exists VPN { | ||
55 | # path exists when a VPN tunnel launched by nmcli/nm-applet is active | ||
56 | path = "/proc/sys/net/ipv4/conf/tun0" | ||
57 | } | ||
58 | |||
59 | run_watch VPN { | ||
60 | pidfile = "/var/run/NetworkManager/nm-openvpn-*" | ||
61 | } | ||
62 | |||
63 | tztime local { | ||
64 | format = "%Y-%m-%d %H:%M:%S" | ||
65 | } | ||
66 | |||
67 | load { | ||
68 | format = "%1min" | ||
69 | } | ||
70 | |||
71 | disk "/" { | ||
72 | format = "%avail" | ||
73 | } | ||