summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2019-09-12 18:43:48 +0200
committerMax Christian Pohle2019-09-13 00:47:02 +0200
commitdad9bd662680bb60f58e14ebd79848a4b4bf8f2c (patch)
tree20058be5fe20ac26fc8e2eab09c9f7e9a1bd985d
parentadfc34fa5c61014abcda8aca745296ed2c21bd6d (diff)
downloadsway-dad9bd662680bb60f58e14ebd79848a4b4bf8f2c.tar.bz2
sway-dad9bd662680bb60f58e14ebd79848a4b4bf8f2c.zip
Refactored a lot
-rw-r--r--config551
1 files changed, 281 insertions, 270 deletions
diff --git a/config b/config
index 6488365..d17f275 100644
--- a/config
+++ b/config
@@ -1,18 +1,22 @@
1# i3 config file (v4) 1# sway configuration file
2# 2# man sway(5)
3# Please see http://i3wm.org/docs/userguide.html for a complete reference!
4 3
5# load xrdb 4# ================================================================================
6exec xrdb ~/.Xresources ; i3-msg reload 5# output device configuration
6# man sway-output(5)
7# ================================================================================
8# force_xinerama yes
9# fake-outputs 3840x1080+0+0
7 10
8output DP-1 { 11
12output DP-2 {
9 pos 0 0 13 pos 0 0
10 res 1920x1080 14 res 1920x1080
11 background ~/.local/share/backgrounds/01-0.jpg fill 15 background ~/.local/share/backgrounds/01-0.jpg fill
12 dpms on 16 dpms on
13} 17}
14 18
15output DP-2 { 19output DP-1 {
16 pos 1920 0 20 pos 1920 0
17 res 1920x1080 21 res 1920x1080
18 background ~/.local/share/backgrounds/01-1.jpg fill 22 background ~/.local/share/backgrounds/01-1.jpg fill
@@ -20,140 +24,32 @@ output DP-2 {
20 dpms on 24 dpms on
21} 25}
22 26
23 27# ================================================================================
24xwayland enable 28# Workspace settings
25gaps inner 0 29# ================================================================================
26gaps outer 0
27smart_gaps on
28smart_borders no_gaps
29
30# force_xinerama yes
31# fake-outputs 3840x1080+0+0
32
33# we basically want to configure our font with ~/.config/fontconfig/*
34# font pango:GoMono Nerd Font 9
35# font pango:FuraCode Nerd Font Mono 9
36# font pango:Code New Roman Nerd Font 9
37font pango:monospace 9
38
39hide_edge_borders both
40title_align left
41# focus_follows_mouse no
42# mouse_warping none
43
44set $mod Mod4
45
46bindsym $mod+j "mark --toggle a"
47
48# Use Mouse+$mod to drag floating windows to their wanted position
49floating_modifier $mod
50
51# start a terminal
52# bindsym $mod+Return exec i3-sensible-terminal
53bindsym $mod+Return exec rofi -show drun -show-icons
54bindsym Mod1+F2 exec rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5
55bindsym $mod+t exec termite
56# bindsym $mod+t exec termite
57# bindsym $mod+t exec urxvt
58bindsym $mod+e exec thunar
59bindsym $mod+l exec swaylock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png"
60
61bindsym $mod+F10 exec pactl set-sink-mute 0 toggle
62bindsym $mod+F11 exec pactl set-sink-volume 0 -5%
63bindsym $mod+F12 exec pactl set-sink-volume 0 +5%
64
65# Pulse Audio controls
66bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% # increase sound volume
67bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% # decrease sound volume
68bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound
69
70# exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800
71# bindcode 156
72# exec xrandr --output DP-1 --rotate left --pos 1920x-420
73# exec xrandr --output DP1 --rotate left --right-of HDMI1
74# exec xrandr --output DP1 --rotate left --pos 1920x-420
75
76# kill focused window
77bindsym $mod+Shift+q kill
78bindsym Mod1+F4 kill
79
80# start dmenu (a program launcher)
81# bindsym $mod+d exec dmenu_run
82# There also is the (new) i3-dmenu-desktop which only displays applications
83# shipping a .desktop file. It is a wrapper around dmenu, so you need that
84# installed.
85bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
86# bindsym $mod+d exec --no-startup-id j4-dmenu-desktop
87
88
89bindsym $mod+Prior focus parent
90bindsym $mod+Next focus child
91bindsym $mod+Left focus left
92bindsym $mod+Right focus right
93bindsym $mod+Down focus down
94bindsym $mod+Up focus up
95bindsym $mod+Tab focus output right
96bindsym $mod+Shift+Tab focus output left
97bindsym mod1+Tab focus right
98bindsym mod1+Shift+Tab focus left
99
100# alternatively, you can use the cursor keys:
101bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks
102bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks
103bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks
104bindsym $mod+Shift+Right move right ; exec pkill -SIGRTMIN+11 i3blocks
105
106# split in horizontal orientation
107# bindsym $mod+h split h
108
109# split in vertical orientation
110# bindsym $mod+v split v
111
112# enter fullscreen mode for the focused container
113bindsym $mod+f fullscreen toggle
114bindsym $mod+g fullscreen toggle global
115
116# change container layout (stacked, tabbed, toggle split)
117bindsym $mod+s layout stacking
118bindsym $mod+w layout tabbed
119bindsym $mod+q layout toggle split
120bindsym $mod+x layout toggle all
121
122# toggle tiling / floating
123bindsym $mod+Shift+space floating toggle
124
125# change focus between tiling / floating windows
126# bindsym $mod+space focus mode_toggle
127
128# focus the parent container
129bindsym $mod+a focus parent
130
131# focus the child container
132#bindsym $mod+d focus child
133
134workspace 1 output VGA1 30workspace 1 output VGA1
135workspace_layout tabbed 31workspace_layout tabbed
136 32
137# customize workspace names 33# customize workspace names
138set $WS1 1:1⃣ 34set $WS0 0:🄌
139set $WS2 2:2⃣ 35set $WS1 1:➊
140set $WS3 3:3⃣ 36set $WS2 2:➋
141set $WS4 4:4⃣ 37set $WS3 3:➌
142set $WS5 5:5⃣ 38set $WS4 4:➍
143set $WS6 6:6⃣ 39set $WS5 5:➎
144set $WS7 7:7⃣ 40set $WS6 6:➏
145set $WS8 8:8⃣ 41set $WS7 7:➐
146set $WS9 9:9⃣ 42set $WS8 8:➑
147set $WS10 10:0⃣ 43set $WS9 9:➒
148 44
149assign [class="^Thunderbird$"] → $WS10 45workspace $WS0 output XWAYLAND1 HDMI-1 DP-1 VGA-1
150assign [class="^Pidgin"] → $WS10 46workspace $WS1 output primary
151assign [class="^Hexchat"] → $WS10 47workspace $WS9 output XWAYLAND1 HDMI-1 DP-1 VGA-1
152assign [class="(?i)pidgin"] → $WS10
153 48
154bindsym Mod4+BackSpace exec i3-msg move workspace to output right 49bindsym Mod4+BackSpace exec i3-msg move workspace to output right
155 50
156# switch to workspace 51# switch to workspace
52bindsym Mod4+0 workspace $WS0
157bindsym Mod4+1 workspace $WS1 53bindsym Mod4+1 workspace $WS1
158bindsym Mod4+2 workspace $WS2 54bindsym Mod4+2 workspace $WS2
159bindsym Mod4+3 workspace $WS3 55bindsym Mod4+3 workspace $WS3
@@ -163,9 +59,9 @@ bindsym Mod4+6 workspace $WS6
163bindsym Mod4+7 workspace $WS7 59bindsym Mod4+7 workspace $WS7
164bindsym Mod4+8 workspace $WS8 60bindsym Mod4+8 workspace $WS8
165bindsym Mod4+9 workspace $WS9 61bindsym Mod4+9 workspace $WS9
166bindsym Mod4+0 workspace $WS10
167 62
168# move focused container to workspace 63# move focused container to workspace
64bindsym Mod4+Shift+0 move container to workspace $WS0
169bindsym Mod4+Shift+1 move container to workspace $WS1 65bindsym Mod4+Shift+1 move container to workspace $WS1
170bindsym Mod4+Shift+2 move container to workspace $WS2 66bindsym Mod4+Shift+2 move container to workspace $WS2
171bindsym Mod4+Shift+3 move container to workspace $WS3 67bindsym Mod4+Shift+3 move container to workspace $WS3
@@ -175,132 +71,36 @@ bindsym Mod4+Shift+6 move container to workspace $WS6
175bindsym Mod4+Shift+7 move container to workspace $WS7 71bindsym Mod4+Shift+7 move container to workspace $WS7
176bindsym Mod4+Shift+8 move container to workspace $WS8 72bindsym Mod4+Shift+8 move container to workspace $WS8
177bindsym Mod4+Shift+9 move container to workspace $WS9 73bindsym Mod4+Shift+9 move container to workspace $WS9
178bindsym Mod4+Shift+0 move container to workspace $WS10
179
180# workspace 1 output DP-1
181# workspace 2 output DP-1
182# workspace 3 output DP-1
183# workspace 4 output DP-1
184# workspace 5 output HDMI-1
185# workspace 6 output HDMI-1
186# workspace 7 output HDMI-1
187# workspace 8 output HDMI-1
188# workspace "music" output HDMI-1
189# workspace "background" output HDMI-1
190
191# reload the configuration file
192bindsym $mod+Shift+c reload
193# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
194bindsym $mod+Shift+r restart
195# exit i3 (logs you out of your X session)
196bindsym $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'"
197
198
199bindsym $mod+m move scratchpad
200bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center
201
202
203
204bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
205bindsym Control+Mod1+Left workspace prev_on_output
206bindsym Control+Mod1+Right workspace next_on_output
207
208# move focused window
209bindsym $mod+Shift+h move left
210bindsym $mod+Shift+j move down
211bindsym $mod+Shift+k move up
212bindsym $mod+Shift+l move right
213
214# split in horizontal orientation
215# bindsym $mod+Shift+v split h
216
217# split in vertical orientation
218# bindsym $mod+v split v
219bindsym $mod+v split toggle
220bindsym $mod+space split toggle
221
222
223
224bindsym $mod+r mode "resize"
225# resize window (you can also use the mouse for that)
226mode "resize" {
227 # These bindings trigger as soon as you enter the resize mode
228
229 # Pressing left will shrink the window’s width.
230 # Pressing right will grow the window’s width.
231 # Pressing up will shrink the window’s height.
232 # Pressing down will grow the window’s height.
233 bindsym $mod+h resize shrink width 4 px or 4 ppt
234 bindsym $mod+j resize grow height 4 px or 4 ppt
235 bindsym $mod+k resize shrink height 4 px or 4 ppt
236 bindsym $mod+l resize grow width 4 px or 4 ppt
237
238 # same bindings, but for the arrow keys
239 bindsym Left resize shrink width 4 px or 4 ppt
240 bindsym Up resize grow height 4 px or 4 ppt
241 bindsym Down resize shrink height 4 px or 4 ppt
242 bindsym Right resize grow width 4 px or 4 ppt
243
244 # back to normal: Enter or Escape
245 bindsym Return mode "default"
246 bindsym Escape mode "default"
247}
248
249
250set $mode_brightness "display brightness 🔅 🔆"
251bindsym $mod+b mode $mode_brightness
252mode $mode_brightness {
253 bindsym Up exec xrandr-brightness .1
254 bindsym Down exec xrandr-brightness -.1
255 bindsym Return mode "default"
256 bindsym Escape mode "default"
257}
258
259
260
261
262
263#! exec: execute when starting
264#! exec_always: execute when starting or restarting
265
266# exec xrandr --output HDMI-1 --right-of DP-1
267# exec xrandr --output HDMI-1 --right-of VGA-1
268# exec /usr/bin/xrandr-reset.sh
269exec xset r rate 330 40
270exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1
271# exec setsid xautolock -locker swaylock
272
273exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000'
274
275# exec gnome-keyring-daemon --start --components=secrets
276# start compositor...
277# exec compton -b --config ~/.config/i3/compton.conf
278# exec nitrogen --restore
279exec setsid mako
280exec nm-applet
281exec pidgin
282exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e 'match($0,"Exec=(.*)",q){ gsub(/ %.+/, "", q[1]); system("setsid -f " q[1])};' $d; done'
283exec_always setxkbmap de,us -device evdev -model pc105 -option "" -option keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp -v 1 -print
284# exec setxkbmap -option caps:escape
285
286 74
287 75# ================================================================================
288
289
290exec setsid hexchat -e --minimize=2
291
292
293# ==============================================
294# base16 Xressource depenend color configuration 76# base16 Xressource depenend color configuration
295# with default values from base16-tomorrow-night 77# with default values from base16-tomorrow-night
296# ============================================== 78# ================================================================================
79xwayland enable
80hide_edge_borders both
81title_align left
82# gaps inner 6
83# smart_gaps on
84# smart_borders no_gaps
85# focus_follows_mouse no
86# mouse_warping none
87
88# we basically want to configure our font with ~/.config/fontconfig/* and can
89# configure what is called monospace that way. It is more portable that way.
90font pango:monospace 9
91# font pango:GoMono Nerd Font 9
92# font pango:FuraCode Nerd Font Mono 9
93# font pango:Code New Roman Nerd Font 9
94
95# load xrdb
96exec xrdb ~/.Xresources ; swaymsg reload
297 97
298include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config 98include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config
299# main variables ssource default 99# main variables ssource default
300# d variable default 100# d variable default
301set $background $base01 101set $background $base01
302set $foreground $base05 102set $foreground $base05
303set $cursorColor #00ff00 103set $cursorColor $foreground
304 104
305# set_from_resource $foreground base16.cursor $cursorColor 105# set_from_resource $foreground base16.cursor $cursorColor
306# set_from_resource $foreground base16.cursor $base05 106# set_from_resource $foreground base16.cursor $base05
@@ -342,24 +142,36 @@ client.placeholder $base00 $base00 $base05 $base00 $base00
342client.background $background 142client.background $background
343 143
344 144
345# for_window [class="^.*"] border normal 3 145
346# for_window [title="^.*Thunderbird"] border pixel 0 146
347# for_window [title="^.*Chromium"] border pixel 0 147# ================================================================================
348# for_window [class="Gvim"] border pixel 0 148# windows assignments and special treatment, e.g. icons
349for_window [class="(?i)evolution"] title_format "📧 %title" 149# ================================================================================
350for_window [class="(?i)thunderbird"] title_format " %title" 150assign [class="^Pidgin"] $WS0
351for_window [class="(?i)firefox"] title_format " %title" 151assign [class="^Hexchat"] $WS0
352for_window [class="(?i)chromium"] title_format " %title" 152assign [class="(?i)pidgin"] $WS0
353for_window [class="(?i)hexchat"] title_format " %title" 153assign [class="^Thunderbird$"] $WS0
354for_window [class="(?i)pidgin"] title_format "👥 %title" 154assign [title="(?i)weechat"] $WS0
355for_window [class="(?i)thunar"] title_format "🗄️ %title" 155# for_window [class="^.*"] border normal 3
356for_window [class="(?i)keepassx?"] title_format "🔑 %title" 156# for_window [title="^.*Thunderbird"] border pixel 0
357for_window [class="(?i).*terminal?"] title_format " %title" 157# for_window [title="^.*Chromium"] border pixel 0
358for_window [class="(?i).*termite?"] title_format " %title" 158# for_window [class="Gvim"] border pixel 0
359for_window [class="(?i)xfce4-appfinder"] title_format " %title" 159for_window [title="(?i)Evolution"] title_format "📧 %title"
360for_window [title="YouTube"] title_format " %title" 160for_window [class="(?i)firefox"] title_format " %title"
361for_window [title=""] title_format "%title" 161for_window [class="(?i)chromium"] title_format " %title"
362for_window [title=" "] title_format "%title" 162for_window [class="(?i)hexchat"] title_format " %title"
163for_window [class="(?i)pidgin"] title_format "👥 %title"
164for_window [class="(?i)thunar"] title_format "🗄️ %title"
165for_window [class="(?i)keepassx?"] title_format "🔑 %title"
166for_window [class="(?i).*terminal?"] title_format " %title"
167for_window [class="(?i).*termite?"] title_format " %title"
168for_window [class="(?i)xfce4-appfinder"] title_format " %title"
169for_window [class="(?i)thunderbird"] title_format " %title"
170for_window [title="(?i)weechat"] title_format " %title"
171for_window [title="YouTube"] title_format " %title"
172for_window [title=""] title_format "%title"
173for_window [title=" "] title_format "%title"
174
363# for_window [class="(?i)xfce4-terminal"] border pixel 0 175# for_window [class="(?i)xfce4-terminal"] border pixel 0
364# for_window [class="(?i)xfce4-appfinder"] border pixel 0 176# for_window [class="(?i)xfce4-appfinder"] border pixel 0
365# for_window [title="^.*\|"] border pixel 4 177# for_window [title="^.*\|"] border pixel 4
@@ -371,6 +183,144 @@ for_window [title=" "] title_format "%title"
371# for_window [class=".*"] title_format "┋ %title" 183# for_window [class=".*"] title_format "┋ %title"
372# for_window [con_id="__focused__"] title_format "<u>%title</u>" 184# for_window [con_id="__focused__"] title_format "<u>%title</u>"
373 185
186
187
188# ================================================================================
189# Keyboard mappings
190# Mod1 ctrl
191# Mod4 windows key
192# ================================================================================
193
194set $mod Mod4
195bindsym $mod+j "mark --toggle a"
196
197# Use Mouse+$mod to drag floating windows to their wanted position
198floating_modifier $mod
199
200# restart sway or reload config
201bindsym $mod+Shift+c reload
202bindsym $mod+Shift+r restart
203
204# kill focused window
205bindsym $mod+Shift+q kill
206bindsym Mod1+F4 kill
207
208bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
209bindsym Control+Mod1+Left workspace prev_on_output
210bindsym Control+Mod1+Right workspace next_on_output
211
212# move focused window
213bindsym $mod+Shift+h move left
214bindsym $mod+Shift+j move down
215bindsym $mod+Shift+k move up
216bindsym $mod+Shift+l move right
217
218
219bindsym $mod+Tab focus output right
220bindsym $mod+Shift+Tab focus output left
221bindsym mod1+Tab focus right
222bindsym mod1+Shift+Tab focus left
223bindsym $mod+Next focus child
224bindsym $mod+Left focus left
225bindsym $mod+Right focus right
226bindsym $mod+Down focus down
227bindsym $mod+Up focus up
228bindsym $mod+Prior focus parent
229bindsym $mod+a focus parent
230
231# alternatively, you can use the cursor keys:
232bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks
233bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks
234bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks
235bindsym $mod+Shift+Right move right ; exec pkill -SIGRTMIN+11 i3blocks
236
237
238# change container layout (stacked, tabbed, toggle split)
239bindsym $mod+s layout stacking
240bindsym $mod+w layout tabbed
241bindsym $mod+q layout toggle split
242bindsym $mod+x layout toggle all
243
244bindsym $mod+v split toggle
245bindsym $mod+space split toggle
246
247# enter fullscreen mode for the focused container
248bindsym $mod+f fullscreen toggle
249bindsym $mod+g fullscreen toggle global
250
251# toggle tiling / floating
252bindsym $mod+Shift+space floating toggle
253bindsym $mod+m move scratchpad
254bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center
255
256# start a terminal
257# bindsym $mod+Return exec i3-sensible-terminal
258bindsym $mod+Return exec "killall rofi ; rofi -show drun -show-icons"
259bindsym Mod1+F2 exec "killall rofi ; rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5"
260bindsym $mod+t exec alacritty
261bindsym $mod+e exec thunar
262bindsym $mod+l exec swaylock -K -f -F -c "#000000" --text-color '#ffffff' --indicator-radius 200 --indicator-thickness 10
263bindsym $mod+d exec i3-dmenu-desktop
264# Pulse Audio controls
265bindsym $mod+F10 exec pactl set-sink-mute @DEFAULT_SINK@ toggle
266bindsym $mod+F11 exec pactl set-sink-volume @DEFAULT_SINK@ -5%
267bindsym $mod+F12 exec pactl set-sink-volume @DEFAULT_SINK@ +5%
268bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
269bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
270bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
271
272
273
274# change focus between tiling / floating windows
275# bindsym $mod+space focus mode_toggle
276
277# focus the child container
278#bindsym $mod+d focus child
279
280# exit i3 (logs you out of your X session)
281# 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'"
282# split in horizontal orientation
283# bindsym $mod+h split h
284
285# split in vertical orientation
286# bindsym $mod+v split v
287
288# resize window (you can also use the mouse for that)
289bindsym $mod+r mode "resize"
290mode "resize" {
291 # These bindings trigger as soon as you enter the resize mode
292
293 # Pressing left will shrink the window’s width.
294 # Pressing right will grow the window’s width.
295 # Pressing up will shrink the window’s height.
296 # Pressing down will grow the window’s height.
297 bindsym $mod+h resize shrink width 4 px or 4 ppt
298 bindsym $mod+j resize grow height 4 px or 4 ppt
299 bindsym $mod+k resize shrink height 4 px or 4 ppt
300 bindsym $mod+l resize grow width 4 px or 4 ppt
301
302 # same bindings, but for the arrow keys
303 bindsym Left resize shrink width 4 px or 4 ppt
304 bindsym Up resize grow height 4 px or 4 ppt
305 bindsym Down resize shrink height 4 px or 4 ppt
306 bindsym Right resize grow width 4 px or 4 ppt
307
308 # back to normal: Enter or Escape
309 bindsym Return mode "default"
310 bindsym Escape mode "default"
311}
312
313
314set $mode_brightness "display brightness 🔅 🔆"
315bindsym $mod+b mode $mode_brightness
316mode $mode_brightness {
317 bindsym Up exec xrandr-brightness .1
318 bindsym Down exec xrandr-brightness -.1
319 bindsym Return mode "default"
320 bindsym Escape mode "default"
321}
322
323
374# Press $mod+o followed by either f, t, Escape or Return to launch firefox, 324# Press $mod+o followed by either f, t, Escape or Return to launch firefox,
375# thunderbird or return to the default mode, respectively. 325# thunderbird or return to the default mode, respectively.
376set $mode_launcher Launch: [f]irefox [t]hunderbird 326set $mode_launcher Launch: [f]irefox [t]hunderbird
@@ -383,6 +333,67 @@ mode "$mode_launcher" {
383 bindsym Escape mode "default" 333 bindsym Escape mode "default"
384 bindsym Return mode "default" 334 bindsym Return mode "default"
385} 335}
336# bindsym $mod+d exec --no-startup-id j4-dmenu-desktop
337# exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800
338# bindcode 156
339# exec xrandr --output DP-1 --rotate left --pos 1920x-420
340# exec xrandr --output DP1 --rotate left --right-of HDMI1
341# exec xrandr --output DP1 --rotate left --pos 1920x-420
342
343
344
345
346
347
348# ================================================================================
349# Execute (autostart) further applications
350
351#! exec: execute when starting
352#! exec_always: execute when starting or restarting
353# ================================================================================
354
355
356# exec xrandr --output HDMI-1 --right-of DP-1
357# exec xrandr --output HDMI-1 --right-of VGA-1
358# exec /usr/bin/xrandr-reset.sh
359# exec setsid xautolock -locker swaylock
360
361exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000'
362
363# exec gnome-keyring-daemon --start --components=secrets
364# start compositor...
365# exec compton -b --config ~/.config/i3/compton.conf
366# exec nitrogen --restore
367exec mako
368bindsym ctrl+space exec makoctl dismiss -a
369
370exec nm-applet
371# exec pidgin
372exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e 'match($0,"Exec=(.*)",q){ gsub(/ %.+/, "", q[1]); system("setsid -f " q[1])};' $d; done'
373
374# exec setxkbmap de,us -device evdev -model pc105 -option "" -option keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp -v 1 -print
375# exec xset r rate 330 40
376# exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1
377# exec setxkbmap -option caps:escape
378
379
380
381# input 16700:8467:Dell_KB216_Wired_Keyboard_Consumer_Control {
382# xkb_layout "us"
383# xkb_variant "altgr-intl,nodeadkeys"
384# xkb_options "keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp"
385# xkb_model "pc105"
386# xkb_numlock "enable"
387# repeat_delay 100
388# repeat_rate 330
389# }
390
391
392
393
394
395# exec setsid hexchat -e --minimize=2
396exec termite -e /home/max/.local/bin/weechat
386 397
387 398
388# vim: iskeyword+=\$,\-,\# nospell ft=tcl 399# vim: iskeyword+=\$,\-,\#,(,) nospell ft=tcl
..