diff options
author | Yigit Sever | 2021-10-07 23:57:39 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-07 23:57:39 +0300 |
commit | e65be8525e54eb0329c8a8736f556b03d8d71291 (patch) | |
tree | 2f4546e81ddb82ee3331e593177c7bbbfced33d7 /.config/i3/config##h.maus | |
parent | dc6b0668ed8862185ccae82ee57d6a7fffd72870 (diff) | |
download | dotfiles-e65be8525e54eb0329c8a8736f556b03d8d71291.tar.gz dotfiles-e65be8525e54eb0329c8a8736f556b03d8d71291.tar.bz2 dotfiles-e65be8525e54eb0329c8a8736f556b03d8d71291.zip |
i3: remove class string
Diffstat (limited to '.config/i3/config##h.maus')
-rw-r--r-- | .config/i3/config##h.maus | 216 |
1 files changed, 216 insertions, 0 deletions
diff --git a/.config/i3/config##h.maus b/.config/i3/config##h.maus new file mode 100644 index 0000000..c6c06f3 --- /dev/null +++ b/.config/i3/config##h.maus | |||
@@ -0,0 +1,216 @@ | |||
1 | # vim: filetype=i3config | ||
2 | # https://i3wm.org/docs/userguide.html | ||
3 | |||
4 | # set modifiers | ||
5 | set $mod Mod4 | ||
6 | set $alt Mod1 | ||
7 | |||
8 | # use mouse+$mod to drag floating windows to their wanted position | ||
9 | floating_modifier $alt | ||
10 | |||
11 | ## autostart | ||
12 | exec --no-startup-id xsettingsd & | ||
13 | exec --no-startup-id picom -b | ||
14 | exec --no-startup-id flashfocus & | ||
15 | exec --no-startup-id nextcloud & | ||
16 | exec --no-startup-id copyq & | ||
17 | exec --no-startup-id redshift-gtk & | ||
18 | exec --no-startup-id nm-applet & | ||
19 | exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify & | ||
20 | exec --no-startup-id /usr/lib/pam_kwallet_init | ||
21 | exec --no-startup-id remind -z -k'dunstify -i "calendar" "⏰ reminder!" "%s" &' ~/.reminders & | ||
22 | exec --no-startup-id /home/yigit/.local/bin/pulse-volume-watcher.py | xob -m 80 & | ||
23 | exec --no-startup-id $HOME/.config/polybar/launch.sh & | ||
24 | |||
25 | # swap caps lock and escape, set keyboard layout | ||
26 | exec --no-startup-id setxkbmap -model pc105 -layout us -variant colemak -option caps:backspace | ||
27 | |||
28 | # tap ctrl to esc, hold ctrl to ctrl | ||
29 | exec --no-startup-id xcape -e 'Control_L=Escape' | ||
30 | |||
31 | # launch conky windows | ||
32 | exec --no-startup-id conky --daemonize -c ~/.config/conky/conky.conf | ||
33 | # exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf | ||
34 | |||
35 | # set the wallpaper (hopefully after xrandr) | ||
36 | exec --no-startup-id ~/.fehbg | ||
37 | |||
38 | # font for window titles | ||
39 | font pango:Iosevka 11 | ||
40 | |||
41 | ## bindings | ||
42 | # done, {task,time}warrior control suite | ||
43 | bindcode $mod+42 exec --no-startup-id ~/.local/bin/done | ||
44 | |||
45 | # type the contents of the clipboard with mod+p | ||
46 | bindcode --release $mod+27 exec --no-startup-id ~/.local/bin/type_clipboard.sh | ||
47 | |||
48 | # launch emoji picker with mod+c | ||
49 | bindcode $mod+54 exec --no-startup-id rofimoji --skin-tone neutral | ||
50 | |||
51 | # get the mouse out of the way with mod+y | ||
52 | bindcode $mod+32 exec --no-startup-id xdotool mousemove 1087 1101 | ||
53 | |||
54 | # bookmark from clipboard with mod+l | ||
55 | bindcode $mod+30 exec --no-startup-id ~/.local/bin/bukuadd_c | ||
56 | |||
57 | # swap caps lock and escape, set keyboard layout with mod+] | ||
58 | bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,us,tr -variant ,colemak, -option grp:alt_shift_toggle,caps:backspace" | ||
59 | |||
60 | # use flameshot with print screen | ||
61 | bindsym Print exec flameshot gui | ||
62 | |||
63 | # media keys | ||
64 | bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+" | ||
65 | bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%-" | ||
66 | bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle" | ||
67 | bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify | ||
68 | bindsym XF86AudioPrev exec --no-startup-id playerctl previous | ||
69 | bindsym XF86AudioNext exec --no-startup-id playerctl next | ||
70 | bindsym XF86Tools exec --no-startup-id mpc toggle # for mpd/ncmpcpp | ||
71 | |||
72 | # make the currently focused window a scratchpad | ||
73 | bindcode $mod+Shift+20 move scratchpad | ||
74 | |||
75 | # show the first scratchpad window | ||
76 | bindcode $mod+20 scratchpad show | ||
77 | |||
78 | # pause notifications for a while with mod+shift+y | ||
79 | bindcode $mod+Shift+32 exec ~/.local/bin/toggle_notifications.sh | ||
80 | |||
81 | ## shortcuts for frequent programs | ||
82 | |||
83 | # zotero on mod+shift+z | ||
84 | bindcode $mod+Shift+52 exec zotero | ||
85 | # thunar on mod+shift+t | ||
86 | bindcode $mod+Shift+41 exec thunar | ||
87 | # start a terminal | ||
88 | bindsym $mod+Return exec kitty | ||
89 | # start rofi with mod+s | ||
90 | bindcode $mod+40 exec rofi -show combi | ||
91 | # launch the poweroff menu | ||
92 | bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh | ||
93 | |||
94 | # kill focused window | ||
95 | bindcode $mod+Shift+24 kill | ||
96 | bindsym --whole-window $mod+button2 kill | ||
97 | |||
98 | # change focus on mod+hnei (qwerty hjkl) | ||
99 | bindcode $mod+43 focus left | ||
100 | bindcode $mod+44 focus down | ||
101 | bindcode $mod+45 focus up | ||
102 | bindcode $mod+46 focus right | ||
103 | |||
104 | # move focused window on mod+shift+hnei | ||
105 | bindcode $mod+Shift+43 move left | ||
106 | bindcode $mod+Shift+44 move down | ||
107 | bindcode $mod+Shift+45 move up | ||
108 | bindcode $mod+Shift+46 move right | ||
109 | |||
110 | # split in horizontal orientation with mod+b | ||
111 | bindcode $mod+56 split h | ||
112 | |||
113 | # split in vertical orientation with mod+v | ||
114 | bindcode $mod+55 split v | ||
115 | |||
116 | # enter fullscreen mode for the focused container with mod+t | ||
117 | bindcode $mod+41 fullscreen toggle | ||
118 | |||
119 | # change container layout (stacked, tabbed, toggle split) | ||
120 | bindcode $mod+39 layout stacking | ||
121 | bindcode $mod+25 layout tabbed | ||
122 | bindcode $mod+26 layout toggle split | ||
123 | |||
124 | # toggle tiling / floating | ||
125 | bindsym $mod+Shift+space floating toggle | ||
126 | |||
127 | # toggle sticky floating window with mod+a | ||
128 | bindcode $mod+38 sticky toggle | ||
129 | |||
130 | # change focus between tiling / floating windows | ||
131 | bindsym $mod+space focus mode_toggle | ||
132 | |||
133 | # Define names for default workspaces for which we configure key bindings later on. | ||
134 | # We use variables to avoid repeating the names in multiple places. | ||
135 | # Workspace icons are added at polybar | ||
136 | set $ws1 "1" | ||
137 | set $ws2 "2" | ||
138 | set $ws3 "3" | ||
139 | set $ws4 "4" | ||
140 | set $ws5 "5" | ||
141 | set $ws6 "6" | ||
142 | set $ws7 "7" | ||
143 | set $ws8 "8" | ||
144 | set $ws9 "9" | ||
145 | set $ws10 "0" | ||
146 | set $wsmusic "music" | ||
147 | set $wszotero "zotero" | ||
148 | set $wsdesktop "desktop" | ||
149 | set $wsbrowser "browser" | ||
150 | set $wssteam "steam" | ||
151 | |||
152 | # switch to workspace | ||
153 | bindsym $mod+1 workspace $ws1 | ||
154 | bindsym $mod+2 workspace $ws2 | ||
155 | bindsym $mod+3 workspace $ws3 | ||
156 | bindsym $mod+4 workspace $ws4 | ||
157 | bindsym $mod+5 workspace $ws5 | ||
158 | bindsym $mod+6 workspace $ws6 | ||
159 | bindsym $mod+7 workspace $ws7 | ||
160 | bindsym $mod+8 workspace $ws8 | ||
161 | bindsym $mod+9 workspace $wssteam | ||
162 | bindsym $mod+0 workspace $ws10 | ||
163 | bindsym $mod+m workspace $wsmusic | ||
164 | bindcode $mod+49 workspace $wszotero | ||
165 | bindcode $mod+60 workspace $wsdesktop | ||
166 | bindcode $mod+21 workspace $wsbrowser | ||
167 | |||
168 | # move focused container to workspace | ||
169 | bindsym $mod+Shift+1 move container to workspace $ws1 | ||
170 | bindsym $mod+Shift+2 move container to workspace $ws2 | ||
171 | bindsym $mod+Shift+3 move container to workspace $ws3 | ||
172 | bindsym $mod+Shift+4 move container to workspace $ws4 | ||
173 | bindsym $mod+Shift+5 move container to workspace $ws5 | ||
174 | bindsym $mod+Shift+6 move container to workspace $ws6 | ||
175 | bindsym $mod+Shift+7 move container to workspace $ws7 | ||
176 | bindsym $mod+Shift+8 move container to workspace $ws8 | ||
177 | bindsym $mod+Shift+9 move container to workspace $wssteam | ||
178 | bindsym $mod+Shift+0 move container to workspace $ws10 | ||
179 | bindsym $mod+Shift+m move container to workspace $wsmusic | ||
180 | bindcode $mod+Shift+49 move container to workspace $wszotero | ||
181 | bindcode $mod+Shift+60 move container to workspace $wsdesktop | ||
182 | bindcode $mod+Shift+21 move container to workspace $wsbrowser | ||
183 | |||
184 | bindcode $mod+52 move container to output right | ||
185 | |||
186 | # reload the configuration file | ||
187 | bindcode $mod+Shift+54 reload | ||
188 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | ||
189 | bindcode $mod+Shift+27 restart | ||
190 | |||
191 | default_border pixel 2 | ||
192 | for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable | ||
193 | for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable | ||
194 | for_window [class="zoom" title="Chat"] floating enable | ||
195 | for_window [class="Dia" window_role="toolbox_window"] floating enable | ||
196 | for_window [class="Pavucontrol" title="Volume Control"] floating enable | ||
197 | |||
198 | assign [class="^Steam$"] $wssteam | ||
199 | assign [class="^Brave-browser$"] $wsbrowser | ||
200 | assign [class="^Zotero$"] $wszotero | ||
201 | for_window [class="Spotify"] move --no-auto-back-and-forth container to workspace $wsmusic | ||
202 | |||
203 | # class border background text indicator child_border | ||
204 | client.focused #ae81ff #080808 #85dc85 #ff5454 #ae81ff | ||
205 | client.focused_inactive #ae81ff #9e9e9e #080808 #ff5454 #5f676a | ||
206 | client.unfocused #ae81ff #323437 #b2b2b2 #ff5454 #222222 | ||
207 | client.urgent #ae81ff #900000 #b2b2b2 #ff5454 #900000 | ||
208 | client.placeholder #ae81ff #0c0c0c #b2b2b2 #ff5454 #0c0c0c | ||
209 | |||
210 | client.background #ffffff | ||
211 | |||
212 | # config | ||
213 | hide_edge_borders none | ||
214 | workspace_auto_back_and_forth yes | ||
215 | focus_follows_mouse no | ||
216 | mouse_warping none | ||