diff options
author | Max Christian Pohle | 2020-01-28 19:22:53 +0100 |
---|---|---|
committer | Max Christian Pohle | 2020-01-28 19:22:53 +0100 |
commit | 72821c3fa130753100088177a09a730abe39ba6b (patch) | |
tree | 603a0344afe003320104c71f10ab5a7d767acd79 /config | |
parent | dad9bd662680bb60f58e14ebd79848a4b4bf8f2c (diff) | |
download | sway-72821c3fa130753100088177a09a730abe39ba6b.tar.bz2 sway-72821c3fa130753100088177a09a730abe39ba6b.zip |
Restructed things
Diffstat (limited to 'config')
-rw-r--r-- | config | 108 |
1 files changed, 52 insertions, 56 deletions
@@ -7,22 +7,44 @@ | |||
7 | # ================================================================================ | 7 | # ================================================================================ |
8 | # force_xinerama yes | 8 | # force_xinerama yes |
9 | # fake-outputs 3840x1080+0+0 | 9 | # fake-outputs 3840x1080+0+0 |
10 | include /home/max/.local/share/base16/base16-sway/themes/base16-tomorrow-night.config | ||
11 | include config_exec | ||
10 | 12 | ||
11 | 13 | ||
12 | output DP-2 { | 14 | |
15 | output LVDS-1 { | ||
16 | # pos 0 420 | ||
13 | pos 0 0 | 17 | pos 0 0 |
14 | res 1920x1080 | 18 | # res 1920x1080 |
15 | background ~/.local/share/backgrounds/01-0.jpg fill | 19 | # background ~/.local/share/backgrounds/02-procrastination-hd1080.png center $base01 |
20 | background ~/.local/share/backgrounds/osb3unzg9j941-1280.png stretch $base01 | ||
16 | dpms on | 21 | dpms on |
17 | } | 22 | } |
18 | 23 | ||
19 | output DP-1 { | 24 | |
20 | pos 1920 0 | 25 | input * xkb_layout "us" |
21 | res 1920x1080 | 26 | input * xkb_variant "altgr-intl" |
22 | background ~/.local/share/backgrounds/01-1.jpg fill | 27 | |
23 | # transform 270 | 28 | |
24 | dpms on | 29 | # input * xkb_options "grp:win_space_toggle" |
25 | } | 30 | # input "MANUFACTURER1 Keyboard" xkb_model "pc101" |
31 | |||
32 | # finally keyboard configuration in sway :) | ||
33 | # input 1:1:AT_Translated_Set_2_keyboard { | ||
34 | # xkb_layout us,de | ||
35 | # xkb_variant intl | ||
36 | # # xkb_options grp:alt_shift_toggle | ||
37 | # } | ||
38 | |||
39 | |||
40 | |||
41 | # output DP-1 { | ||
42 | # pos 1920 0 | ||
43 | # res 1920x1080 | ||
44 | # background ~/.local/share/backgrounds/IMG_5625.JPG fill | ||
45 | # # transform 270 | ||
46 | # dpms on | ||
47 | # } | ||
26 | 48 | ||
27 | # ================================================================================ | 49 | # ================================================================================ |
28 | # Workspace settings | 50 | # Workspace settings |
@@ -77,7 +99,7 @@ bindsym Mod4+Shift+9 move container to workspace $WS9 | |||
77 | # with default values from base16-tomorrow-night | 99 | # with default values from base16-tomorrow-night |
78 | # ================================================================================ | 100 | # ================================================================================ |
79 | xwayland enable | 101 | xwayland enable |
80 | hide_edge_borders both | 102 | # hide_edge_borders both |
81 | title_align left | 103 | title_align left |
82 | # gaps inner 6 | 104 | # gaps inner 6 |
83 | # smart_gaps on | 105 | # smart_gaps on |
@@ -87,13 +109,13 @@ title_align left | |||
87 | 109 | ||
88 | # we basically want to configure our font with ~/.config/fontconfig/* and can | 110 | # 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. | 111 | # configure what is called monospace that way. It is more portable that way. |
90 | font pango:monospace 9 | 112 | font pango:sans 9 |
113 | # font pango:FuraCode Nerd Font Mono Medium 11 | ||
114 | # font pango:monospace 9 | ||
91 | # font pango:GoMono Nerd Font 9 | 115 | # font pango:GoMono Nerd Font 9 |
92 | # font pango:FuraCode Nerd Font Mono 9 | 116 | # font pango:FuraCode Nerd Font Mono 9 |
93 | # font pango:Code New Roman Nerd Font 9 | 117 | # font pango:Code New Roman Nerd Font 9 |
94 | 118 | ||
95 | # load xrdb | ||
96 | exec xrdb ~/.Xresources ; swaymsg reload | ||
97 | 119 | ||
98 | include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config | 120 | include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config |
99 | # main variables ssource default | 121 | # main variables ssource default |
@@ -120,7 +142,7 @@ bar { | |||
120 | separator_symbol " " | 142 | separator_symbol " " |
121 | 143 | ||
122 | colors { | 144 | colors { |
123 | background $background | 145 | background #000000cc |
124 | separator $foreground | 146 | separator $foreground |
125 | statusline $foreground | 147 | statusline $foreground |
126 | 148 | ||
@@ -156,13 +178,14 @@ assign [title="(?i)weechat"] $WS0 | |||
156 | # for_window [title="^.*Thunderbird"] border pixel 0 | 178 | # for_window [title="^.*Thunderbird"] border pixel 0 |
157 | # for_window [title="^.*Chromium"] border pixel 0 | 179 | # for_window [title="^.*Chromium"] border pixel 0 |
158 | # for_window [class="Gvim"] border pixel 0 | 180 | # for_window [class="Gvim"] border pixel 0 |
159 | for_window [title="(?i)Evolution"] title_format "📧 %title" | 181 | for_window [title="(?i)Evolution"] title_format "📧 %title" |
160 | for_window [class="(?i)firefox"] title_format " %title" | 182 | for_window [app_id="firefox"] title_format " %title" |
183 | for_window [app_id="firefox"] border pixel 5 | ||
161 | for_window [class="(?i)chromium"] title_format " %title" | 184 | for_window [class="(?i)chromium"] title_format " %title" |
162 | for_window [class="(?i)hexchat"] title_format " %title" | 185 | for_window [class="(?i)hexchat"] title_format " %title" |
163 | for_window [class="(?i)pidgin"] title_format "👥 %title" | 186 | for_window [class="(?i)pidgin"] title_format "👥 %title" |
164 | for_window [class="(?i)thunar"] title_format "🗄️ %title" | 187 | for_window [app_id="thunar"] title_format "🗄️ %title" |
165 | for_window [class="(?i)keepassx?"] title_format "🔑 %title" | 188 | for_window [app_id="keepassxc"] title_format "🔑 %title" |
166 | for_window [class="(?i).*terminal?"] title_format " %title" | 189 | for_window [class="(?i).*terminal?"] title_format " %title" |
167 | for_window [class="(?i).*termite?"] title_format " %title" | 190 | for_window [class="(?i).*termite?"] title_format " %title" |
168 | for_window [class="(?i)xfce4-appfinder"] title_format " %title" | 191 | for_window [class="(?i)xfce4-appfinder"] title_format " %title" |
@@ -171,6 +194,8 @@ for_window [title="(?i)weechat"] title_format " %title" | |||
171 | for_window [title="YouTube"] title_format " %title" | 194 | for_window [title="YouTube"] title_format " %title" |
172 | for_window [title=""] title_format "%title" | 195 | for_window [title=""] title_format "%title" |
173 | for_window [title=" "] title_format "%title" | 196 | for_window [title=" "] title_format "%title" |
197 | for_window [title=" "] border pixel 0 | ||
198 | for_window [app_id=".*terminal"] border pixel 0 | ||
174 | 199 | ||
175 | # for_window [class="(?i)xfce4-terminal"] border pixel 0 | 200 | # for_window [class="(?i)xfce4-terminal"] border pixel 0 |
176 | # for_window [class="(?i)xfce4-appfinder"] border pixel 0 | 201 | # for_window [class="(?i)xfce4-appfinder"] border pixel 0 |
@@ -193,6 +218,8 @@ for_window [title=" "] title_format "%title" | |||
193 | 218 | ||
194 | set $mod Mod4 | 219 | set $mod Mod4 |
195 | bindsym $mod+j "mark --toggle a" | 220 | bindsym $mod+j "mark --toggle a" |
221 | bindsym Pause exec grim -t png "/tmp/$(date '+%Y-%m-%d %H:%M:%S').png" | ||
222 | |||
196 | 223 | ||
197 | # Use Mouse+$mod to drag floating windows to their wanted position | 224 | # Use Mouse+$mod to drag floating windows to their wanted position |
198 | floating_modifier $mod | 225 | floating_modifier $mod |
@@ -215,7 +242,6 @@ bindsym $mod+Shift+j move down | |||
215 | bindsym $mod+Shift+k move up | 242 | bindsym $mod+Shift+k move up |
216 | bindsym $mod+Shift+l move right | 243 | bindsym $mod+Shift+l move right |
217 | 244 | ||
218 | |||
219 | bindsym $mod+Tab focus output right | 245 | bindsym $mod+Tab focus output right |
220 | bindsym $mod+Shift+Tab focus output left | 246 | bindsym $mod+Shift+Tab focus output left |
221 | bindsym mod1+Tab focus right | 247 | bindsym mod1+Tab focus right |
@@ -255,9 +281,11 @@ bindsym $mod+Shift+m scratchpad show ; res | |||
255 | 281 | ||
256 | # start a terminal | 282 | # start a terminal |
257 | # bindsym $mod+Return exec i3-sensible-terminal | 283 | # bindsym $mod+Return exec i3-sensible-terminal |
258 | bindsym $mod+Return exec "killall rofi ; rofi -show drun -show-icons" | 284 | # bindsym $mod+Return exec "killall rofi ; rofi -show drun -show-icons" |
285 | bindsym $mod+Return exec dmenu_run | ||
259 | bindsym Mod1+F2 exec "killall rofi ; rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5" | 286 | bindsym Mod1+F2 exec "killall rofi ; rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5" |
260 | bindsym $mod+t exec alacritty | 287 | bindsym $mod+t exec xfce4-terminal |
288 | bindsym $mod+y exec gnome-terminal | ||
261 | bindsym $mod+e exec thunar | 289 | bindsym $mod+e exec thunar |
262 | bindsym $mod+l exec swaylock -K -f -F -c "#000000" --text-color '#ffffff' --indicator-radius 200 --indicator-thickness 10 | 290 | bindsym $mod+l exec swaylock -K -f -F -c "#000000" --text-color '#ffffff' --indicator-radius 200 --indicator-thickness 10 |
263 | bindsym $mod+d exec i3-dmenu-desktop | 291 | bindsym $mod+d exec i3-dmenu-desktop |
@@ -279,6 +307,8 @@ bindsym XF86AudioMute exec pactl set-sink-m | |||
279 | 307 | ||
280 | # exit i3 (logs you out of your X session) | 308 | # 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'" | 309 | # 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'" |
310 | # bindsym $mod+Shift+e exec "sway-nag 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'" | ||
311 | bindsym $mod+Shift+e exec swaynag --font "monospace 8" --background 000000 --button-background 000000 --button-border-size 1 --border aaaaaa -b yes "swaymsg exit" -s 'no' -m 'Do you really want to quit sway?' | ||
282 | # split in horizontal orientation | 312 | # split in horizontal orientation |
283 | # bindsym $mod+h split h | 313 | # bindsym $mod+h split h |
284 | 314 | ||
@@ -336,9 +366,6 @@ mode "$mode_launcher" { | |||
336 | # bindsym $mod+d exec --no-startup-id j4-dmenu-desktop | 366 | # 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 | 367 | # exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 |
338 | # bindcode 156 | 368 | # 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 | 369 | ||
343 | 370 | ||
344 | 371 | ||
@@ -353,30 +380,6 @@ mode "$mode_launcher" { | |||
353 | # ================================================================================ | 380 | # ================================================================================ |
354 | 381 | ||
355 | 382 | ||
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 | |||
361 | exec 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 | ||
367 | exec mako | ||
368 | bindsym ctrl+space exec makoctl dismiss -a | ||
369 | |||
370 | exec nm-applet | ||
371 | # exec pidgin | ||
372 | exec 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 | 383 | ||
381 | # input 16700:8467:Dell_KB216_Wired_Keyboard_Consumer_Control { | 384 | # input 16700:8467:Dell_KB216_Wired_Keyboard_Consumer_Control { |
382 | # xkb_layout "us" | 385 | # xkb_layout "us" |
@@ -389,11 +392,4 @@ exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e 'match($0,"Exec= | |||
389 | # } | 392 | # } |
390 | 393 | ||
391 | 394 | ||
392 | |||
393 | |||
394 | |||
395 | # exec setsid hexchat -e --minimize=2 | ||
396 | exec termite -e /home/max/.local/bin/weechat | ||
397 | |||
398 | |||
399 | # vim: iskeyword+=\$,\-,\#,(,) nospell ft=tcl | 395 | # vim: iskeyword+=\$,\-,\#,(,) nospell ft=tcl |