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