mostly fixes
[distro-setup] / i3-sway / common.conf
1 ####### DO NOT EDIT LIVE CONFIG. generated from /a/bin/distro-setup/i3-sway/gen #######
2
3 # https://i3wm.org/docs/userguide.html#keybindings
4 #To get the current mapping of your keys, use xmodmap -pke. To
5 #interactively enter a key and see what keysym it is configured to, use
6 #xev.
7 set $mod Mod4
8
9 bindsym $mod+2 exec "pavucontrol"
10 # calling without -no-remote makes this to be the instance that links
11 # will open in from other applications.
12 bindsym $mod+3 exec "abrowser"
13 # calling just abrowser mysteriously stopped working,
14 # so I figured out this is how to get output, but then
15 # it suddenly started working again.
16 #bindsym $mod+3 exec "abrowser 2>&1 >/tmp/l"
17 #bindsym $mod+3 exec "abrowser -no-remote -P sfw"
18 bindsym $mod+4 exec "abrowser -no-remote -P firefox-main-profile"
19 bindsym $mod+5 exec "/a/bin/ds/laptop-xrandr"
20 bindsym $mod+6 exec "/usr/local/bin/start-tor-browser"
21 #bindsym $mod+6 exec "/a/bin/redshift.sh"
22 # bindsym $mod+equal exec "t s w; t in"
23 # bindsym $mod+Home exec "t out"
24 # #bindsym $mod+End exec "t s x; t in"
25 # bindsym $mod+grave exec "t s lunch; t in; t out -a '45 minutes from now'"
26
27
28 bindsym $mod+equal focus parent
29 # move firefox to current workspace.
30 # https://i3wm.org/docs/userguide.html#keybindings
31 # get class with xprop, example output
32 # WM_CLASS(STRING) = "irssi", "URxvt"
33 # xprop |& grep WM_CLASS
34 bindsym $mod+w [class="abrowser"] move workspace current
35
36 bindsym $mod+e fullscreen toggle
37 bindsym $mod+r exec "/a/bin/ds/xl"
38 # todo, in newer i3, make this toggle split tabbed
39 bindsym $mod+t layout toggle split
40 #bindsym $mod+Shift+t move workspace to output up
41 bindsym $mod+Shift+t move workspace to output right
42 bindsym $mod+g layout tabbed
43
44 # Use Mouse+$mod to drag floating windows to their wanted position
45 floating_modifier $mod
46
47 bindsym $mod+u focus left
48 bindsym $mod+i focus right
49 bindsym $mod+o focus up
50 bindsym $mod+p focus down
51
52 bindsym $mod+Left move left
53 bindsym $mod+Right move right
54 bindsym $mod+Up move up
55 bindsym $mod+Down move down
56
57 # switch to workspace
58 bindsym $mod+Shift+a move container to workspace 4
59 bindsym $mod+a workspace 4
60 # move focused container to workspace
61 bindsym $mod+Shift+s move container to workspace 3
62 bindsym $mod+s workspace 3
63
64 bindsym $mod+Shift+d move container to workspace 2
65 bindsym $mod+d workspace 2
66
67 bindsym $mod+Shift+f move container to workspace 1
68 bindsym $mod+f workspace 1
69
70 bindsym $mod+Shift+z move container to workspace 5
71 bindsym $mod+z workspace 5
72
73 bindsym $mod+Shift+x move container to workspace 6
74 bindsym $mod+x workspace 6
75
76
77 # todo, in newer i3, make this split toggle
78 bindsym $mod+v split vertical
79 bindsym $mod+Shift+v split horizontal
80 # https://faq.i3wm.org/question/7662/reverse-perl-matches-in-criteria-in-i3-config.1.html
81 # I found their regex slightly wrong. This is a hacky way to
82 # ignore my irc emacs instances, their window titles
83 # are irc room names. Another way would be to hack on the
84 # window title, or xprop stuff, but I figure I'm switching
85 # to wayland soon, lets wait and see how things work there.
86 bindsym $mod+b [class="Emacs" title="^(?!#[a-zA-Z][a-zA-Z-]*$)"] move workspace current
87
88 bindsym $mod+c kill
89
90
91 bindsym $mod+Shift+Home move container to workspace 7
92 bindsym $mod+Home workspace 7
93 bindsym $mod+Shift+q move container to workspace 8
94 bindsym $mod+q workspace 8
95
96 bindsym $mod+Shift+8 move container to workspace 9
97 bindsym $mod+8 workspace 9
98 bindsym $mod+Shift+9 move container to workspace 10
99 bindsym $mod+9 workspace 10
100
101
102 # random keybind, feel free to change
103 bindsym $mod+Shift+m border toggle
104
105 # 65 = space.
106 # toggle tiling / floating
107 bindcode $mod+Shift+65 floating toggle
108
109 # change focus between tiling / floating windows
110 bindcode $mod+65 focus mode_toggle
111 # Use Mouse+$mod to drag floating windows to their wanted position
112 floating_modifier $mod
113
114 bindsym $mod+j exec emacsclient -c
115 bindsym $mod+k exec konsole
116 bindsym $mod+l exec dmenu_run
117 # note default is 27% on my system76. not sure if these
118 # keybinds will screw up other laptop brightness keys.
119 bindsym XF86MonBrightnessUp exec brightnessctl s +5%
120 bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
121
122 # Font for window titles. Will also be used by the bar unless a different font
123 # is used in the bar {} block below.
124 font pango:monospace 8
125
126 # todo: only available in newer i3n
127 #hide_edge_borders smart
128
129 #exec --no-startup-id /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
130
131 # Start clipster daemon
132 #exec --no-startup-id /a/opt/clipster/clipster -d
133
134
135 # shortcut to selection widget (primary)
136 bindsym $mod+End exec /a/opt/clipster/clipster -sp
137
138 # file:///usr/share/doc/i3-wm/userguide.html#_border_style_for_new_windows
139 new_window none
140
141 # I dont see a way to make processing windows act like normal windows,
142 # this does it.
143 # https://unix.stackexchange.com/questions/450700/opening-a-programme-in-a-floating-window-in-i3
144 #
145 # This is the info for a processing window launched from the ide.
146 # I'm not sure I want it like this, so commenting it out for now.
147 #for_window [class="processing-core-PApplet" instance="processing-core-PApplet"] floating disable
148
149 # this is the processing window for my app named focus.
150 for_window [class="focus" instance="focus"] floating disable