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