summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMax Christian Pohle2019-06-23 19:27:15 +0200
committerMax Christian Pohle2019-06-23 19:27:15 +0200
commit8b61bd8926928fa79b43b01f80298951e7cffec2 (patch)
treef8cf8bb927cb214de781e33216023d17cb9300cf /config
downloadsway-8b61bd8926928fa79b43b01f80298951e7cffec2.tar.bz2
sway-8b61bd8926928fa79b43b01f80298951e7cffec2.zip
init
Diffstat (limited to 'config')
-rw-r--r--config380
1 files changed, 380 insertions, 0 deletions
diff --git a/config b/config
new file mode 100644
index 0000000..7dd49f2
--- /dev/null
+++ b/config
@@ -0,0 +1,380 @@
1# i3 config file (v4)
2#
3# Please see http://i3wm.org/docs/userguide.html for a complete reference!
4
5
6output DP-1 {
7 pos 0 0
8 res 1920x1080
9 background ~/.local/share/backgrounds/01-0.jpg center
10}
11
12output DP-2 {
13 pos 1920 0
14 res 1920x1080
15 background ~/.local/share/backgrounds/01-1.jpg center
16}
17
18# load xrdb
19exec xrdb ~/.Xresources ; i3-msg reload
20
21# force_xinerama yes
22# fake-outputs 3840x1080+0+0
23
24# we basically want to configure our font with ~/.config/fontconfig/*
25# font pango:FuraCode Nerd Font Mono Retina 9
26font pango:Monospace 9
27# font pango:Code New Roman Nerd Font 9
28
29hide_edge_borders both
30
31set $mod Mod4
32
33# Use Mouse+$mod to drag floating windows to their wanted position
34floating_modifier $mod
35
36# start a terminal
37# bindsym $mod+Return exec i3-sensible-terminal
38bindsym $mod+Return exec --no-startup-id xfce4-appfinder
39bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff
40bindsym $mod+t exec --no-startup-id xfce4-terminal
41# bindsym $mod+t exec termite
42# bindsym $mod+t exec urxvt
43bindsym $mod+e exec --no-startup-id thunar
44bindsym $mod+l exec --no-startup-id ~/.local/bin/i3lock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png"
45
46bindsym Print exec pactl set-sink-mute 0 toggle
47bindsym Scroll_Lock exec pactl set-sink-volume 0 -5%
48bindsym Pause exec pactl set-sink-volume 0 +5%
49
50# Pulse Audio controls
51bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% # increase sound volume
52bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% # decrease sound volume
53bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound
54
55bindcode 156 exec xrandr --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800
56
57# kill focused window
58bindsym $mod+Shift+q kill
59bindsym Mod1+F4 kill
60
61# start dmenu (a program launcher)
62# bindsym $mod+d exec dmenu_run
63# There also is the (new) i3-dmenu-desktop which only displays applications
64# shipping a .desktop file. It is a wrapper around dmenu, so you need that
65# installed.
66bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
67# bindsym $mod+d exec --no-startup-id j4-dmenu-desktop
68
69
70bindsym $mod+Prior focus parent
71bindsym $mod+Next focus child
72bindsym $mod+Left [workspace="__focused__"] focus left
73bindsym $mod+Right [workspace="__focused__"] focus right
74bindsym $mod+Down [workspace="__focused__"] focus down
75bindsym $mod+Up [workspace="__focused__"] focus up
76bindsym $mod+Tab focus output right
77bindsym $mod+Shift+Tab focus output left
78bindsym mod1+Tab focus right
79bindsym mod1+Shift+Tab focus left
80
81# alternatively, you can use the cursor keys:
82bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks
83bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks
84bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks
85bindsym $mod+Shift+Right move right ; exec pkill -SIGRTMIN+11 i3blocks
86
87# split in horizontal orientation
88# bindsym $mod+h split h
89
90# split in vertical orientation
91# bindsym $mod+v split v
92
93# enter fullscreen mode for the focused container
94bindsym $mod+f fullscreen toggle
95bindsym $mod+g fullscreen toggle global
96
97# change container layout (stacked, tabbed, toggle split)
98bindsym $mod+s layout stacking
99bindsym $mod+w layout tabbed
100bindsym $mod+q layout toggle split
101bindsym $mod+x layout toggle all
102
103# toggle tiling / floating
104bindsym $mod+Shift+space floating toggle
105
106# change focus between tiling / floating windows
107# bindsym $mod+space focus mode_toggle
108
109# focus the parent container
110bindsym $mod+a focus parent
111
112# focus the child container
113#bindsym $mod+d focus child
114
115workspace 1 output VGA1
116workspace_layout tabbed
117
118# customize workspace names
119set $WS1 1:1⃣
120set $WS2 2:2⃣
121set $WS3 3:3⃣
122set $WS4 4:4⃣
123set $WS5 5:5⃣
124set $WS6 6:6⃣
125set $WS7 7:7⃣
126set $WS8 8:8⃣
127set $WS9 9:9⃣
128set $WS10 10:0⃣
129
130assign [class="^Thunderbird$"] → $WS10
131assign [class="^evolution"] → output right
132assign [class="(?i)pidgin"] → output right
133
134# switch to workspace
135bindsym Mod4+1 workspace $WS1
136bindsym Mod4+2 workspace $WS2
137bindsym Mod4+3 workspace $WS3
138bindsym Mod4+4 workspace $WS4
139bindsym Mod4+5 workspace $WS5
140bindsym Mod4+6 workspace $WS6
141bindsym Mod4+7 workspace $WS7
142bindsym Mod4+8 workspace $WS8
143bindsym Mod4+9 workspace $WS9
144bindsym Mod4+0 workspace $WS10
145
146# move focused container to workspace
147bindsym Mod4+Shift+1 move container to workspace $WS1
148bindsym Mod4+Shift+2 move container to workspace $WS2
149bindsym Mod4+Shift+3 move container to workspace $WS3
150bindsym Mod4+Shift+4 move container to workspace $WS4
151bindsym Mod4+Shift+5 move container to workspace $WS5
152bindsym Mod4+Shift+6 move container to workspace $WS6
153bindsym Mod4+Shift+7 move container to workspace $WS7
154bindsym Mod4+Shift+8 move container to workspace $WS8
155bindsym Mod4+Shift+9 move container to workspace $WS9
156bindsym Mod4+Shift+0 move container to workspace $WS10
157
158workspace 1 output DP-1
159workspace 2 output DP-1
160workspace 3 output DP-1
161workspace 4 output DP-1
162workspace 5 output HDMI-1
163workspace 6 output HDMI-1
164workspace 7 output HDMI-1
165workspace 8 output HDMI-1
166workspace "music" output HDMI-1
167workspace "background" output HDMI-1
168
169# reload the configuration file
170bindsym $mod+Shift+c reload
171# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
172bindsym $mod+Shift+r restart
173# exit i3 (logs you out of your X session)
174bindsym $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'"
175
176
177bindsym $mod+m move scratchpad
178bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center
179
180
181
182bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
183bindsym Control+Mod1+Left workspace prev_on_output
184bindsym Control+Mod1+Right workspace next_on_output
185
186# move focused window
187bindsym $mod+Shift+h move left
188bindsym $mod+Shift+j move down
189bindsym $mod+Shift+k move up
190bindsym $mod+Shift+l move right
191
192# split in horizontal orientation
193# bindsym $mod+Shift+v split h
194
195# split in vertical orientation
196# bindsym $mod+v split v
197bindsym $mod+v split toggle
198bindsym $mod+space split toggle
199
200
201
202bindsym $mod+r mode "resize"
203# resize window (you can also use the mouse for that)
204mode "resize" {
205 # These bindings trigger as soon as you enter the resize mode
206
207 # Pressing left will shrink the window’s width.
208 # Pressing right will grow the window’s width.
209 # Pressing up will shrink the window’s height.
210 # Pressing down will grow the window’s height.
211 bindsym $mod+h resize shrink width 4 px or 4 ppt
212 bindsym $mod+j resize grow height 4 px or 4 ppt
213 bindsym $mod+k resize shrink height 4 px or 4 ppt
214 bindsym $mod+l resize grow width 4 px or 4 ppt
215
216 # same bindings, but for the arrow keys
217 bindsym Left resize shrink width 4 px or 4 ppt
218 bindsym Up resize grow height 4 px or 4 ppt
219 bindsym Down resize shrink height 4 px or 4 ppt
220 bindsym Right resize grow width 4 px or 4 ppt
221
222 # back to normal: Enter or Escape
223 bindsym Return mode "default"
224 bindsym Escape mode "default"
225}
226
227
228set $mode_brightness "display brightness 🔅 🔆"
229bindsym $mod+b mode $mode_brightness
230mode $mode_brightness {
231 bindsym Up exec xrandr-brightness .1
232 bindsym Down exec xrandr-brightness -.1
233 bindsym Return mode "default"
234 bindsym Escape mode "default"
235}
236
237
238
239
240
241#! exec: execute when starting
242#! exec_always: execute when starting or restarting
243
244
245
246# exec xrandr --output HDMI-1 --right-of DP-1
247# exec xrandr --output HDMI-1 --right-of VGA-1
248# exec /usr/bin/xrandr-reset.sh
249# exec setxkbmap -option caps:escape
250exec xset r rate 330 40
251exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1
252exec setsid xautolock -locker i3lock
253
254exec --no-startup-id /usr/lib/gnome-settings-daemon/gsd-xsettings
255exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
256exec --no-startup-id gnome-keyring-daemon --start --components=secrets
257# start compositor...
258exec --no-startup-id compton -b --config ~/.config/i3/compton.conf
259exec --no-startup-id nitrogen --restore
260exec --no-startup-id nm-applet
261
262exec --no-startup-id ln -sf /dev/shm/recently-used.xbel $HOME/.local/share/recently-used.xbel
263
264
265
266
267
268exec setsid hexchat -e --minimize=2
269
270
271# ==============================================
272# base16 Xressource depenend color configuration
273# with default values from base16-tomorrow-night
274# ==============================================
275
276set $base00 #1d1f21
277set $base01 #282a2e
278set $base02 #373b41
279set $base03 #969896
280set $base04 #b4b7b4
281set $base05 #c5c8c6
282set $base06 #e0e0e0
283set $base07 #ffffff
284set $base08 #cc6666
285set $base09 #de935f
286set $base0A #f0c674
287set $base0B #b5bd68
288set $base0C #8abeb7
289set $base0D #81a2be
290set $base0E #b294bb
291set $base0F #a3685a
292# d variable default
293set $cursorColor $base05
294set $background $base00
295set $foreground $base05
296set $foreground $base05
297#
298
299# Basic bar configuration using the Base16 variables.
300bar {
301 # status_command i3status --config ~/.config/i3/i3status.conf
302 status_command i3status --config ~/.config/i3/i3status.conf
303 # status_command /home/max/src/i3status/i3status --config ~/.config/i3/i3status.conf
304
305 tray_padding 2
306 mode dock
307 strip_workspace_numbers yes
308 # separator_symbol "│"
309 separator_symbol " "
310
311 colors {
312 background $background
313 separator $foreground
314 statusline $foreground
315
316 focused_workspace $background $background $base05
317 active_workspace $background $background $cursorColor
318 inactive_workspace $background $background $base03
319 urgent_workspace $background $background $base08
320 binding_mode $background $background $foreground
321}
322}
323
324# Basic color configuration using the Base16 variables for windows and borders.
325# Property Name Border BG Text Indicator Child Border
326client.focused $base05 $base0D $base00 $base0D $base0D
327client.focused_inactive $base01 $base01 $base05 $base03 $base01
328client.unfocused $base01 $base00 $base05 $base01 $base01
329client.urgent $base08 $base08 $base00 $base08 $base08
330client.placeholder $base00 $base00 $base05 $base00 $base00
331client.background $background
332
333
334for_window [class="(?i)evolution"] title_format "📧 %title"
335for_window [class="(?i)thunderbird"] title_format "📧 %title"
336for_window [class="(?i)firefox"] title_format " %title"
337for_window [class="(?i)chromium"] title_format " %title"
338for_window [class="(?i)hexchat"] title_format " %title"
339for_window [class="(?i)pidgin"] title_format "👥 %title"
340for_window [class="(?i)thunar"] title_format "🗄️ %title"
341for_window [class="(?i)keepassx?"] title_format "🔑 %title"
342for_window [class="(?i).*terminal?"] title_format " %title"
343for_window [class="(?i)xfce4-appfinder"] title_format " %title"
344for_window [title="YouTube"] title_format " %title"
345for_window [title="SoundCloud"] title_format " %title"
346for_window [title=""] title_format "%title"
347for_window [title=" "] title_format "%title"
348
349
350# for_window [class="^.*"] border normal 3
351# for_window [title="^.*Thunderbird"] border pixel 0
352# for_window [title="^.*Chromium"] border pixel 0
353# for_window [class="Gvim"] border pixel 0
354# for_window [class="(?i)xfce4-terminal"] border pixel 0
355# for_window [class="(?i)xfce4-appfinder"] border pixel 0
356# # for_window [title="^.*\|"] border pixel 4
357
358# for_window [title="^HexChat.*"] border pixel 0
359# for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks
360# for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks
361# for_window [title="cairo-dock"] floating enable ; border none
362# for_window[class="Plank"] floating enable,move absolute center
363# for_window [class=".*"] title_format "┋ %title"
364# for_window [con_id="__focused__"] title_format "<u>%title</u>"
365
366# Press $mod+o followed by either f, t, Escape or Return to launch firefox,
367# thunderbird or return to the default mode, respectively.
368set $mode_launcher Launch: [f]irefox [t]hunderbird
369bindsym $mod+o mode "$mode_launcher"
370
371mode "$mode_launcher" {
372 bindsym f exec firefox
373 bindsym t exec thunderbird
374
375 bindsym Escape mode "default"
376 bindsym Return mode "default"
377}
378
379
380# vim: iskeyword+=\$,\-,\# nospell ft=tcl
..