mostly replace wcd with self made script
[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 bindsym $mod+3 exec "abroswer"
11 #bindsym $mod+3 exec "abrowser -no-remote -P sfw"
12 bindsym $mod+4 exec "abrowser -no-remote -P firefox-main-profile"
13 bindsym $mod+5 exec "/usr/local/bin/start-tor-browser"
14 bindsym $mod+6 exec "/a/bin/redshift.sh"
15 # bindsym $mod+equal exec "t s w; t in"
16 # bindsym $mod+Home exec "t out"
17 # #bindsym $mod+End exec "t s x; t in"
18 # bindsym $mod+grave exec "t s lunch; t in; t out -a '45 minutes from now'"
19
20
21 bindsym $mod+equal focus parent
22 # move firefox to current workspace.
23 # https://i3wm.org/docs/userguide.html#keybindings
24 # get class with xprop, example output
25 # WM_CLASS(STRING) = "irssi", "URxvt"
26 # xprop |& grep WM_CLASS
27 bindsym $mod+w [class="abrowser"] move workspace current
28
29 bindsym $mod+e fullscreen toggle
30 bindsym $mod+r exec "/a/bin/ds/xl"
31 # todo, in newer i3, make this toggle split tabbed
32 bindsym $mod+t layout toggle split
33 bindsym $mod+Shift+t move workspace to output right
34 bindsym $mod+g layout tabbed
35
36 # Use Mouse+$mod to drag floating windows to their wanted position
37 floating_modifier $mod
38
39 bindsym $mod+u focus left
40 bindsym $mod+i focus right
41 bindsym $mod+o focus up
42 bindsym $mod+p focus down
43
44 bindsym $mod+Left move left
45 bindsym $mod+Right move right
46 bindsym $mod+Up move up
47 bindsym $mod+Down move down
48
49 # switch to workspace
50 bindsym $mod+Shift+a move container to workspace 4
51 bindsym $mod+a workspace 4
52 # move focused container to workspace
53 bindsym $mod+Shift+s move container to workspace 3
54 bindsym $mod+s workspace 3
55
56 bindsym $mod+Shift+d move container to workspace 2
57 bindsym $mod+d workspace 2
58
59 bindsym $mod+Shift+f move container to workspace 1
60 bindsym $mod+f workspace 1
61
62 bindsym $mod+Shift+z move container to workspace 5
63 bindsym $mod+z workspace 5
64
65 bindsym $mod+Shift+x move container to workspace 6
66 bindsym $mod+x workspace 6
67
68
69 # todo, in newer i3, make this split toggle
70 bindsym $mod+v split vertical
71 bindsym $mod+Shift+v split horizontal
72 # https://faq.i3wm.org/question/7662/reverse-perl-matches-in-criteria-in-i3-config.1.html
73 # I found their regex slightly wrong. This is a hacky way to
74 # ignore my irc emacs instances, their window titles
75 # are irc room names. Another way would be to hack on the
76 # window title, or xprop stuff, but I figure I'm switching
77 # to wayland soon, lets wait and see how things work there.
78 bindsym $mod+b [class="Emacs" title="^(?!#[a-zA-Z][a-zA-Z-]*$)"] move workspace current
79
80 bindsym $mod+c kill
81
82
83 bindsym $mod+Shift+Home move container to workspace 7
84 bindsym $mod+Home workspace 7
85 bindsym $mod+Shift+q move container to workspace 8
86 bindsym $mod+q workspace 8
87
88 bindsym $mod+Shift+8 move container to workspace 9
89 bindsym $mod+8 workspace 9
90 bindsym $mod+Shift+9 move container to workspace 10
91 bindsym $mod+9 workspace 10
92
93
94 # random keybind, feel free to change
95 bindsym $mod+Shift+m border toggle
96
97 # toggle tiling / floating
98 bindcode $mod+Shift+65 floating toggle
99
100 # change focus between tiling / floating windows
101 bindcode $mod+65 focus mode_toggle
102 # Use Mouse+$mod to drag floating windows to their wanted position
103 floating_modifier $mod
104
105 bindsym $mod+j exec emacsclient -c
106 bindsym $mod+k exec konsole
107 bindsym $mod+l exec dmenu_run
108 # note default is 27% on my system76. not sure if these
109 # keybinds will screw up other laptop brightness keys.
110 bindsym XF86MonBrightnessUp exec brightnessctl s +5%
111 bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
112
113 # Font for window titles. Will also be used by the bar unless a different font
114 # is used in the bar {} block below.
115 font pango:monospace 8
116
117 # todo: only available in newer i3n
118 #hide_edge_borders smart
119
120 #exec --no-startup-id /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
121
122 # Start clipster daemon
123 #exec --no-startup-id /a/opt/clipster/clipster -d
124
125
126 # shortcut to selection widget (primary)
127 bindsym $mod+End exec /a/opt/clipster/clipster -sp
128
129 # file:///usr/share/doc/i3-wm/userguide.html#_border_style_for_new_windows
130 new_window none