diff options
author | Yigit Sever | 2020-09-18 00:45:23 +0300 |
---|---|---|
committer | Yigit Sever | 2020-09-18 00:45:23 +0300 |
commit | 887c500c6b93afb978d770338048f917ed4091a7 (patch) | |
tree | 57e7baf556c84a63037484742cab3c7a86540157 /.config/i3/config##c.desktop,h.maus | |
parent | 3a6003cee585dbdabec939940c4de421dbd122fb (diff) | |
download | dotfiles-887c500c6b93afb978d770338048f917ed4091a7.tar.gz dotfiles-887c500c6b93afb978d770338048f917ed4091a7.tar.bz2 dotfiles-887c500c6b93afb978d770338048f917ed4091a7.zip |
Rename & remove
Diffstat (limited to '.config/i3/config##c.desktop,h.maus')
-rw-r--r-- | .config/i3/config##c.desktop,h.maus | 299 |
1 files changed, 299 insertions, 0 deletions
diff --git a/.config/i3/config##c.desktop,h.maus b/.config/i3/config##c.desktop,h.maus new file mode 100644 index 0000000..bc36b81 --- /dev/null +++ b/.config/i3/config##c.desktop,h.maus | |||
@@ -0,0 +1,299 @@ | |||
1 | # vim: filetype=i3config | ||
2 | # i3 config file (v4) | ||
3 | # Please see https://i3wm.org/docs/userguide.html for a complete reference! | ||
4 | |||
5 | # set modifiers | ||
6 | set $mod Mod4 | ||
7 | set $alt Mod1 | ||
8 | |||
9 | # launch polybar | ||
10 | exec --no-startup-id $HOME/.config/polybar/launch.sh & | ||
11 | |||
12 | # start the screensaver, '' at the end is not a typo | ||
13 | exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'i3lock -i ~/Dropbox/Wallpapers/pots.jpg --clock --time-font="FuraCode Nerd Font" --timesize=144 --datestr="" --timecolor=fefefeee --timestr="%H:%M" --radius=45 --timepos="ix:iy-250"' '' | ||
14 | |||
15 | #autostart | ||
16 | exec --no-startup-id xsettingsd & | ||
17 | exec --no-startup-id picom -b | ||
18 | exec --no-startup-id flashfocus & | ||
19 | exec --no-startup-id nextcloud & | ||
20 | exec --no-startup-id copyq & | ||
21 | exec --no-startup-id redshift-gtk & | ||
22 | exec --no-startup-id nm-applet & | ||
23 | exec --no-startup-id xrandr --output DVI-D-0 --off --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate left --output DVI-I-1 --primary --mode 1920x1080 --pos 1132x608 --rotate normal --output DVI-I-0 --off --output DP-1 --off --output DP-0 --off & | ||
24 | exec --no-startup-id xdotool key --clearmodifiers Num_Lock | ||
25 | exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify & | ||
26 | |||
27 | # swap caps lock and escape, set keyboard layout | ||
28 | exec --no-startup-id setxkbmap -model pc105 -layout tr,us -variant ,colemak -option grp:alt_shift_toggle,caps:backspace | ||
29 | |||
30 | # and ctrl to escape | ||
31 | exec --no-startup-id xcape -e 'Control_L=Escape' | ||
32 | |||
33 | #launch conky windows | ||
34 | exec --no-startup-id conky --daemonize -c ~/.config/conky/conky.conf | ||
35 | exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf | ||
36 | |||
37 | # set the wallpaper last (hopefully after xrandr) | ||
38 | exec --no-startup-id ~/.fehbg | ||
39 | |||
40 | # Font for window titles | ||
41 | font pango:Lato 11 | ||
42 | |||
43 | # Use Mouse+$mod to drag floating windows to their wanted position | ||
44 | floating_modifier $alt | ||
45 | |||
46 | ############## | ||
47 | # bindings # | ||
48 | ############## | ||
49 | |||
50 | # i switched back to firefox can you tell | ||
51 | bindsym Ctrl+q exec --no-startup-id true | ||
52 | |||
53 | bindsym $mod+c exec --no-startup-id rofimoji --skin-tone neutral --insert-with-clipboard | ||
54 | |||
55 | # get the mouse out of the way | ||
56 | bindsym $mod+o exec --no-startup-id xdotool mousemove 1087 1101 | ||
57 | |||
58 | # bookmark from clipboard | ||
59 | bindsym $mod+u exec --no-startup-id ~/.local/bin/bukuadd_c | ||
60 | |||
61 | # swap caps lock and escape, set keyboard layout, 35 is ]/ü (layout agnostic) | ||
62 | bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,us,tr -variant ,colemak, -option grp:alt_shift_toggle,caps:backspace" # ] on colemak ü on turkish | ||
63 | |||
64 | # use flameshot with print screen | ||
65 | bindsym Print exec flameshot gui | ||
66 | |||
67 | # media keys | ||
68 | # bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" | ||
69 | # bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" | ||
70 | bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && amixer get Master | grep -Po '[0-9]+(?=%)' | head -1 > /tmp/xobpipe" | ||
71 | bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && amixer get Master | grep -Po '[0-9]+(?=%)' | head -1 > /tmp/xobpipe" | ||
72 | bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" | ||
73 | bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify | ||
74 | bindsym XF86AudioPrev exec --no-startup-id playerctl previous | ||
75 | bindsym XF86AudioNext exec --no-startup-id playerctl next | ||
76 | bindsym XF86Tools exec --no-startup-id mpc toggle # for mpd/ncmpcpp | ||
77 | |||
78 | # # media keys for "regular" keyboards | ||
79 | # bindsym $mod+Up exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" | ||
80 | # bindsym $mod+Down exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" | ||
81 | # bindsym $mod+m exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" | ||
82 | # bindsym $mod+q exec --no-startup-id playerctl play-pause | ||
83 | # bindsym $mod+Left exec --no-startup-id playerctl previous | ||
84 | # bindsym $mod+Right exec --no-startup-id playerctl next | ||
85 | |||
86 | # Make the currently focused window a scratchpad | ||
87 | bindsym $mod+Shift+minus move scratchpad | ||
88 | |||
89 | # Show the first scratchpad window | ||
90 | bindsym $mod+minus scratchpad show | ||
91 | |||
92 | # shortcuts for frequent programs | ||
93 | bindsym $mod+Shift+z exec zotero | ||
94 | bindcode $mod+Shift+41 exec thunar # t on colemak f on turkish | ||
95 | |||
96 | # start a terminal | ||
97 | bindsym $mod+Return exec kitty | ||
98 | |||
99 | # kill focused window | ||
100 | bindsym $mod+Shift+q kill | ||
101 | bindsym --whole-window $mod+button2 kill | ||
102 | |||
103 | # start rofi (a program launcher) | ||
104 | bindsym $mod+d exec rofi -show combi | ||
105 | |||
106 | # change focus | ||
107 | bindsym $mod+h focus left | ||
108 | bindsym $mod+j focus down | ||
109 | bindsym $mod+k focus up | ||
110 | bindsym $mod+l focus right | ||
111 | |||
112 | # move focused window | ||
113 | bindsym $mod+Shift+h move left | ||
114 | bindsym $mod+Shift+j move down | ||
115 | bindsym $mod+Shift+k move up | ||
116 | bindsym $mod+Shift+l move right | ||
117 | |||
118 | # split in horizontal orientation | ||
119 | bindsym $mod+b split h | ||
120 | |||
121 | # split in vertical orientation | ||
122 | bindsym $mod+v split v | ||
123 | |||
124 | # enter fullscreen mode for the focused container | ||
125 | bindsym $mod+f fullscreen toggle | ||
126 | |||
127 | # change container layout (stacked, tabbed, toggle split) | ||
128 | bindsym $mod+s layout stacking | ||
129 | bindsym $mod+w layout tabbed | ||
130 | bindsym $mod+e layout toggle split | ||
131 | |||
132 | # toggle tiling / floating | ||
133 | bindsym $mod+Shift+space floating toggle | ||
134 | |||
135 | # toggle sticky floating window | ||
136 | bindsym $mod+a sticky toggle | ||
137 | |||
138 | # change focus between tiling / floating windows | ||
139 | bindsym $mod+space focus mode_toggle | ||
140 | |||
141 | # Define names for default workspaces for which we configure key bindings later on. | ||
142 | # We use variables to avoid repeating the names in multiple places. | ||
143 | set $ws1 "1" | ||
144 | set $ws2 "2" | ||
145 | set $ws3 "3" | ||
146 | set $ws4 "4" | ||
147 | set $ws5 "5" | ||
148 | set $ws6 "6" | ||
149 | set $ws7 "7" | ||
150 | set $ws8 "8" | ||
151 | set $ws9 "9" | ||
152 | set $ws10 "10" | ||
153 | set $wsmusic "♫" | ||
154 | set $wszotero "ζ" | ||
155 | set $wsdesktop "Ξ" | ||
156 | |||
157 | workspace $wsmusic output HDMI-0 | ||
158 | |||
159 | # switch to workspace | ||
160 | bindsym $mod+1 workspace $ws1 | ||
161 | bindsym $mod+2 workspace $ws2 | ||
162 | bindsym $mod+3 workspace $ws3 | ||
163 | bindsym $mod+4 workspace $ws4 | ||
164 | bindsym $mod+5 workspace $ws5 | ||
165 | bindsym $mod+6 workspace $ws6 | ||
166 | bindsym $mod+7 workspace $ws7 | ||
167 | bindsym $mod+8 workspace $ws8 | ||
168 | bindsym $mod+9 workspace $ws9 | ||
169 | bindsym $mod+0 workspace $ws10 | ||
170 | bindsym $mod+m workspace $wsmusic | ||
171 | bindcode $mod+49 workspace $wszotero | ||
172 | bindcode $mod+60 workspace $wsdesktop | ||
173 | |||
174 | # move focused container to workspace | ||
175 | bindsym $mod+Shift+1 move container to workspace $ws1 | ||
176 | bindsym $mod+Shift+2 move container to workspace $ws2 | ||
177 | bindsym $mod+Shift+3 move container to workspace $ws3 | ||
178 | bindsym $mod+Shift+4 move container to workspace $ws4 | ||
179 | bindsym $mod+Shift+5 move container to workspace $ws5 | ||
180 | bindsym $mod+Shift+6 move container to workspace $ws6 | ||
181 | bindsym $mod+Shift+7 move container to workspace $ws7 | ||
182 | bindsym $mod+Shift+8 move container to workspace $ws8 | ||
183 | bindsym $mod+Shift+9 move container to workspace $ws9 | ||
184 | bindsym $mod+Shift+0 move container to workspace $ws10 | ||
185 | bindsym $mod+Shift+m move container to workspace $wsmusic | ||
186 | bindcode $mod+Shift+49 move container to workspace $wszotero | ||
187 | bindcode $mod+Shift+60 move container to workspace $wsdesktop | ||
188 | |||
189 | bindsym $mod+z move container to output right | ||
190 | |||
191 | # reload the configuration file | ||
192 | bindsym $mod+Shift+c reload | ||
193 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | ||
194 | bindsym $mod+Shift+r restart | ||
195 | |||
196 | # resize window (you can also use the mouse for that) | ||
197 | mode "resize" { | ||
198 | # These bindings trigger as soon as you enter the resize mode | ||
199 | |||
200 | # Pressing left will shrink the window’s width. | ||
201 | # Pressing right will grow the window’s width. | ||
202 | # Pressing up will shrink the window’s height. | ||
203 | # Pressing down will grow the window’s height. | ||
204 | bindsym h resize shrink width 10 px or 10 ppt | ||
205 | bindsym j resize grow height 10 px or 10 ppt | ||
206 | bindsym k resize shrink height 10 px or 10 ppt | ||
207 | bindsym l resize grow width 10 px or 10 ppt | ||
208 | |||
209 | # back to normal: Enter or Escape or $mod+r | ||
210 | bindsym Return mode "default" | ||
211 | bindsym Escape mode "default" | ||
212 | bindsym $mod+r mode "default" | ||
213 | } | ||
214 | bindsym $mod+r mode "resize" | ||
215 | |||
216 | # session | ||
217 | mode " (L)ock (S)ignout (R)eboot (P)oweroff" { | ||
218 | bindsym $mod+l exec i3lock -i ~/Dropbox/Wallpapers/pots.jpg --clock --time-font="FuraCode Nerd Font" --timesize=144 --datestr="" --timecolor=fefefeee --timestr="%H:%M" --radius=45 --timepos="ix:iy-250" | ||
219 | bindsym $mod+r exec systemctl reboot | ||
220 | bindsym $mod+p exec systemctl poweroff | ||
221 | bindsym $mod+s exit | ||
222 | bindsym Escape mode "default" | ||
223 | } | ||
224 | bindsym $mod+Shift+e mode " (L)ock (S)ignout (R)eboot (P)oweroff" | ||
225 | |||
226 | bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh | ||
227 | |||
228 | set $mode_gaps Gaps: (o)uter, (i)nner | ||
229 | #, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft | ||
230 | set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
231 | set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
232 | # set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
233 | # set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
234 | # set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
235 | # set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
236 | # set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
237 | # set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global) | ||
238 | bindsym $mod+Shift+g mode "$mode_gaps" | ||
239 | |||
240 | mode "$mode_gaps" { | ||
241 | bindsym o mode "$mode_gaps_outer" | ||
242 | bindsym i mode "$mode_gaps_inner" | ||
243 | # bindsym h mode "$mode_gaps_horiz" | ||
244 | # bindsym v mode "$mode_gaps_verti" | ||
245 | # bindsym t mode "$mode_gaps_top" | ||
246 | # bindsym r mode "$mode_gaps_right" | ||
247 | # bindsym b mode "$mode_gaps_bottom" | ||
248 | # bindsym l mode "$mode_gaps_left" | ||
249 | # bindsym Return mode "$mode_gaps" | ||
250 | bindsym Escape mode "default" | ||
251 | } | ||
252 | |||
253 | mode "$mode_gaps_outer" { | ||
254 | bindsym plus gaps outer current plus 5 | ||
255 | bindsym minus gaps outer current minus 5 | ||
256 | bindsym 0 gaps outer current set 0 | ||
257 | |||
258 | bindsym Shift+plus gaps outer all plus 5 | ||
259 | bindsym Shift+minus gaps outer all minus 5 | ||
260 | bindsym Shift+0 gaps outer all set 0 | ||
261 | |||
262 | bindsym Return mode "$mode_gaps" | ||
263 | bindsym Escape mode "default" | ||
264 | } | ||
265 | mode "$mode_gaps_inner" { | ||
266 | bindsym plus gaps inner current plus 5 | ||
267 | bindsym minus gaps inner current minus 5 | ||
268 | bindsym 0 gaps inner current set 0 | ||
269 | |||
270 | bindsym Shift+plus gaps inner all plus 5 | ||
271 | bindsym Shift+minus gaps inner all minus 5 | ||
272 | bindsym Shift+0 gaps inner all set 0 | ||
273 | |||
274 | bindsym Return mode "$mode_gaps" | ||
275 | bindsym Escape mode "default" | ||
276 | } | ||
277 | |||
278 | # for_window [class=".*"] border pixel 5 | ||
279 | default_border pixel 2 | ||
280 | for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable | ||
281 | for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable | ||
282 | for_window [class="zoom" title="Chat"] floating enable | ||
283 | assign [class="^Steam$"] 9 | ||
284 | assign [class="^Zotero$"] $wszotero | ||
285 | |||
286 | # class border backgr. text indicator child_border | ||
287 | client.focused #458588 #285577 #ffffff #458588 #285577 | ||
288 | client.focused_inactive #b16286 #5f676a #ffffff #484e50 #5f676a | ||
289 | client.unfocused #927374 #222222 #888888 #292d2e #222222 | ||
290 | client.urgent #2f343a #900000 #ffffff #900000 #900000 | ||
291 | client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c | ||
292 | |||
293 | client.background #ffffff | ||
294 | |||
295 | # config | ||
296 | hide_edge_borders none | ||
297 | workspace_auto_back_and_forth yes | ||
298 | focus_follows_mouse no | ||
299 | mouse_warping none | ||