a99c8c3dc3ec5256c1f4b016870522fa78f8553c
[distro-setup] / subdir_files / .config / i3 / config
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 "abrowser"
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 bindsym $mod+b [class="Emacs" title="^(?!#[a-zA-Z][a-zA-Z-]*$)"] move workspace current
74
75 bindsym $mod+c kill
76
77
78 bindsym $mod+Shift+Home move container to workspace 7
79 bindsym $mod+Home workspace 7
80 bindsym $mod+Shift+q move container to workspace 8
81 bindsym $mod+q workspace 8
82
83 bindsym $mod+Shift+8 move container to workspace 9
84 bindsym $mod+8 workspace 9
85 bindsym $mod+Shift+9 move container to workspace 10
86 bindsym $mod+9 workspace 10
87
88
89 # random keybind, feel free to change
90 bindsym $mod+Shift+m border toggle
91
92 # toggle tiling / floating
93 bindcode $mod+Shift+65 floating toggle
94
95 # change focus between tiling / floating windows
96 bindcode $mod+65 focus mode_toggle
97 # Use Mouse+$mod to drag floating windows to their wanted position
98 floating_modifier $mod
99
100 bindsym $mod+j exec emacsclient -c
101 bindsym $mod+k exec konsole
102 bindsym $mod+l exec dmenu_run
103 # note default is 27% on my system76. not sure if these
104 # keybinds will screw up other laptop brightness keys.
105 bindsym XF86MonBrightnessUp exec brightnessctl s +5%
106 bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
107
108 # Font for window titles. Will also be used by the bar unless a different font
109 # is used in the bar {} block below.
110 font pango:monospace 8
111
112 # todo: only available in newer i3n
113 #hide_edge_borders smart
114
115 #exec --no-startup-id /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
116
117 # Start clipster daemon
118 #exec --no-startup-id /a/opt/clipster/clipster -d
119
120
121 # shortcut to selection widget (primary)
122 bindsym $mod+End exec /a/opt/clipster/clipster -sp
123
124 # file:///usr/share/doc/i3-wm/userguide.html#_border_style_for_new_windows
125 new_window none
126 # exit i3 (logs you out of your X session)
127 bindsym $mod+Shift+o 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'"
128
129 bindsym $mod+Shift+p restart
130
131 # need this for kde connect
132 # bar {
133 # status_command i3status
134 # # #status_command /usr/local/bin/myi3status
135 # mode hide
136 # # hidden_state hide
137 # # font pango:monospace 14
138 # }
139
140 exec copyq
141 exec /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd