Victor Franzi - Git Sources dotfiles / 0f7ae06
sway: clean config + TODO: pass launcher Victor Franzi 5 years ago
1 changed file(s) with 34 addition(s) and 52 deletion(s). Raw diff Collapse all Expand all
0 # i3 config file (v4)
1 #
2 # Please see http://i3wm.org/docs/userguide.html for a complete reference!
0 # Sway config
31
42 set $mod Mod4
3 floating_modifier $mod
54 set $browser qutebrowser
65 set $term termite
7 set $editor termite -e 'nvim'
8 set $mail thunderbird
6 set $editor termite -e "bash -c 'sleep 0.1 && nvim'"
7 set $mail termite -e 'neomutt'
98
109 exec "$HOME/bin/bat.notify.sh"
1110
11 bindsym $mod+Return exec $term
12 bindsym $mod+Shift+Return exec $browser
13 bindsym $mod+u exec $editor
14 bindsym $mod+Shift+u exec $mail
15 bindsym $mod+Shift+X kill
16
17 # rofi-style
1218 set $menu termite -e "bash -c 'compgen -c | sort -u | fzf --reverse | xargs -r swaymsg -t command exec'" -t "launcher"
1319 bindsym $mod+r exec $menu
1420 for_window [app_id="termite" title="launcher"] floating enable, border pixel 3
1521
22 # FIXME pass integration (rofi-pass not available on wayland)
23 set $pass termite -e "bash -c 'find $HOME/.password-store -type f | fzf --reverse | cut -d\'/\' -f5- | sed \'s/.gpg//\' | xargs -r pass -c'"
24 bindsym $mod+Shift+r exec $pass
25 for_window [app_id="termite" title="pass"] floating enable, border pixel 3
26
27 # media keys
1628 bindsym $mod+a exec pavucontrol
1729 bindsym $mod+Shift+a exec blueman-applet
1830 bindsym XF86MonBrightnessDown exec "$HOME/bin/stm bl down"
3042 outer 0
3143 }
3244
33 # cursor (wayland specific)
45 # cursor
3446 seat * hide_cursor 5000
3547
36 # background (wayland specific)
48 # background + screens
3749 output * bg "#000000" solid_color
3850
39 # input configs
40 # keyboard
51 # keyboard + touchpad
4152 input * {
53 tap enabled
4254 xkb_layout fr
4355 xkb_model oss
4456 xkb_options compose:rctrl
4557 repeat_delay 200
46 repeat_rate 25
47 }
48 # trackpad
49 input * tap enabled
50
51 # clear notifications
58 repeat_rate 20
59 }
60
61 # notifications
5262 bindsym Ctrl+Space exec "makoctl dismiss"
5363 bindsym Ctrl+Shift+Space exec "makoctl dismiss -a"
5464
6373
6474 # can be useful
6575 focus_follows_mouse yes
66
67 # Use Mouse+$mod to drag floating windows to their wanted position
68 floating_modifier $mod
69
70 # start a terminal
71 bindsym $mod+Return exec $term
72 # start browser
73 bindsym $mod+Shift+Return exec $browser
74 # start editor/mail
75 bindsym $mod+u exec $editor
76 bindsym $mod+Shift+u exec $mail
77
78 # kill focused window
79 bindsym $mod+Shift+X kill
8076
8177 # change focus
8278 bindsym $mod+h focus left
8379 bindsym $mod+j focus down
8480 bindsym $mod+k focus up
8581 bindsym $mod+l focus right
86
8782 bindsym $mod+Left focus left
8883 bindsym $mod+Down focus down
8984 bindsym $mod+Up focus up
9489 bindsym $mod+Shift+j move down
9590 bindsym $mod+Shift+k move up
9691 bindsym $mod+Shift+l move right
97
98 # alternatively, you can use the cursor keys:
9992 bindsym $mod+Shift+Left move left
10093 bindsym $mod+Shift+Down move down
10194 bindsym $mod+Shift+Up move up
109102 # q s d
110103 # | |
111104 # w-----x-----c
112
105 #
113106 # corner
114107 # <border> <window> <gap>
115108 # ± 1920 ± (1920 / 5) ± (1920 / 20)
166159 # change focus between tiling / floating windows
167160 bindsym $mod+space focus mode_toggle
168161
169
162 # workspaces
170163 set $workspace1 "1"
171164 set $workspace2 "2"
172165 set $workspace3 "3"
203196 bindsym $mod+0 move container to workspace $workspace10
204197
205198 # move workspace between screens
206 bindsym $mod+v exec i3-msg move workspace to output left
207 bindsym $mod+b exec i3-msg move workspace to output right
199 bindsym $mod+v move workspace to output left
200 bindsym $mod+b move workspace to output right
208201
209202 # reload the configuration file
210203 bindsym $mod+Shift+c reload
213206 # exit i3 (logs you out of your X session)
214207 bindsym $mod+Shift+q exit
215208
209 for_window [class=".*"] split h
210
216211 # specefics floating windows
217212 # for_window[class=".*"] border pixel 1
218213 for_window [class="mpv"] floating enable
219214 for_window [class="feh"] floating enable
220 for_window [class=".*"] split h
221 for_window [instance="sun-awt-X11-XFramePeer"] floating enable # Java windows
215 for_window [class="sxiv"] floating enable
222216 #for_window [class="Adl"] floating enable # Dofus
223217 for_window [window_role="pop-up"] floating enable
224218 for_window [window_role="task_dialog"] floating enable
230224 for_window [class="Minecraft .*"] floating enable
231225 for_window [class="Matplotlib"] floating enable
232226
233 assign [class="discord"] $workspace1
234 assign [class="Hexchat"] $workspace1
235 assign [class="Caprine"] $workspace1
236 assign [title="neomutt"] $workspace1
237 assign [class="Thunderbird"] $workspace1
238
239 assign [class="Firefox"] $workspace2
240227 assign [class="qutebrowser"] $workspace2
241
242 assign [class="code"] $workspace3
243 assign [class="Code"] $workspace3
244228 assign [class="Gummi"] $workspace3
245
246 assign [class="VMWare"] $workspace4
247229
248230
249231 # resize window (you can also use the mouse for that)
287269 modifier Mod4
288270 workspace_buttons no
289271 font pango:Input Mono Condensed 8
290 status_command bumblebee-status -m arch-update nic cpu memory battery date time pasink pasource -p timeout=1 time.format="%R" date.format="%B %d %Y" -t default
291 }
272 status_command bumblebee-status -m arch-update vault nic cpu memory battery date time pasink pasource -p timeout=1 time.format="%R" date.format="%B %d %Y" vault.text="<pass>" -t default
273 }