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