summaryrefslogtreecommitdiffstats
path: root/.config/i3/config##c.desktop,h.Maus
diff options
context:
space:
mode:
authorYigit Sever2019-11-23 16:24:43 +0300
committerYigit Sever2019-11-23 16:24:43 +0300
commit9e0348c7eebf0619bfc6906dcf85cac4137ab09c (patch)
treeb36b9f87d21599d71248973496fafeb89321d83c /.config/i3/config##c.desktop,h.Maus
parent2695fa11d655f5777838711c3351d909d5db117f (diff)
downloaddotfiles-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.Maus280
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
5set $mod Mod4
6set $alt Mod1
7
8# launch polybar
9exec --no-startup-id $HOME/.config/polybar/launch.sh &
10
11# start the screensaver, '' at the end is not a typo
12exec --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
15exec --no-startup-id xsettingsd &
16exec --no-startup-id compton -b &
17exec --no-startup-id nextcloud &
18exec --no-startup-id copyq &
19exec --no-startup-id redshift-gtk &
20exec --no-startup-id nm-applet &
21exec --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
24exec --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
27exec --no-startup-id xcape -e 'Control_L=Escape'
28
29#launch conky windows
30exec --no-startup-id conky --daemonize -c ~/.config/conky/conky.conf
31exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf
32
33# set the wallpaper last (hopefully after xrandr)
34exec --no-startup-id ~/.fehbg
35
36exec_always --no-startup-id flashfocus
37
38# Font for window titles
39font pango:Lato 11
40
41# Use Mouse+$mod to drag floating windows to their wanted position
42floating_modifier $alt
43
44gaps inner 10
45gaps outer 0
46
47##############
48# bindings #
49##############
50
51# i switched back to firefox can you tell
52bindsym Ctrl+q exec --no-startup-id true
53
54# get the mouse out of the way
55bindsym $mod+o exec --no-startup-id xdotool mousemove 1087 1101
56
57# bookmark from clipboard
58bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c
59
60# add taskwarrior/gtd calendar item
61bindsym $mod+Shift+t exec --no-startup-id ~/bin/td
62
63# add taskwarrior/gtd inbox item
64bindsym $mod+Shift+i exec --no-startup-id ~/bin/in
65
66# swap caps lock and escape, set keyboard layout, 35 is ]/ü (layout agnostic)
67bindcode $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
70bindsym Print exec flameshot gui
71
72# media keys
73bindsym $mod+Up exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)"
74bindsym $mod+Down exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)"
75bindsym $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"
76bindsym $mod+q exec --no-startup-id playerctl play-pause
77bindsym $mod+Left exec --no-startup-id playerctl previous
78bindsym $mod+Right exec --no-startup-id playerctl next
79
80# Make the currently focused window a scratchpad
81bindsym $mod+Shift+minus move scratchpad
82
83# Show the first scratchpad window
84bindsym $mod+minus scratchpad show
85
86# shortcuts for frequent programs
87bindsym $mod+Shift+z exec zotero
88bindsym $mod+Shift+f exec thunar
89
90# start a terminal
91bindsym $mod+Return exec kitty
92
93# kill focused window
94bindsym $mod+Shift+q kill
95bindsym --whole-window $mod+button2 kill
96
97# start rofi (a program launcher)
98bindsym $mod+d exec rofi -show combi
99
100# change focus
101bindsym $mod+h focus left
102bindsym $mod+j focus down
103bindsym $mod+k focus up
104bindsym $mod+l focus right
105
106# move focused window
107bindsym $mod+Shift+h move left
108bindsym $mod+Shift+j move down
109bindsym $mod+Shift+k move up
110bindsym $mod+Shift+l move right
111
112# split in horizontal orientation
113bindsym $mod+b split h
114
115# split in vertical orientation
116bindsym $mod+v split v
117
118# enter fullscreen mode for the focused container
119bindsym $mod+f fullscreen toggle
120
121# change container layout (stacked, tabbed, toggle split)
122bindsym $mod+s layout stacking
123bindsym $mod+w layout tabbed
124bindsym $mod+e layout toggle split
125
126# toggle tiling / floating
127bindsym $mod+Shift+space floating toggle
128
129# change focus between tiling / floating windows
130bindsym $mod+space focus mode_toggle
131
132# focus the parent container
133bindsym $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.
137set $ws1 "1"
138set $ws2 "2"
139set $ws3 "3"
140set $ws4 "4"
141set $ws5 "5"
142set $ws6 "6"
143set $ws7 "7"
144set $ws8 "8"
145set $ws9 "9"
146set $ws10 "10"
147
148# switch to workspace
149bindsym $mod+1 workspace $ws1
150bindsym $mod+2 workspace $ws2
151bindsym $mod+3 workspace $ws3
152bindsym $mod+4 workspace $ws4
153bindsym $mod+5 workspace $ws5
154bindsym $mod+6 workspace $ws6
155bindsym $mod+7 workspace $ws7
156bindsym $mod+8 workspace $ws8
157bindsym $mod+9 workspace $ws9
158bindsym $mod+0 workspace $ws10
159
160# move focused container to workspace
161bindsym $mod+Shift+1 move container to workspace $ws1
162bindsym $mod+Shift+2 move container to workspace $ws2
163bindsym $mod+Shift+3 move container to workspace $ws3
164bindsym $mod+Shift+4 move container to workspace $ws4
165bindsym $mod+Shift+5 move container to workspace $ws5
166bindsym $mod+Shift+6 move container to workspace $ws6
167bindsym $mod+Shift+7 move container to workspace $ws7
168bindsym $mod+Shift+8 move container to workspace $ws8
169bindsym $mod+Shift+9 move container to workspace $ws9
170bindsym $mod+Shift+0 move container to workspace $ws10
171
172bindsym $mod+Shift+greater move container to output right
173bindsym $mod+Shift+less move container to output left
174
175# reload the configuration file
176bindsym $mod+Shift+c reload
177# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
178bindsym $mod+Shift+r restart
179
180# resize window (you can also use the mouse for that)
181mode "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}
198bindsym $mod+r mode "resize"
199
200# session
201mode " (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}
208bindsym $mod+Shift+e mode " (L)ock (S)ignout (R)eboot (P)oweroff"
209
210bindsym $mod+Shift+Escape exec --no-startup-id ~/bin/power.sh
211
212set $mode_gaps Gaps: (o)uter, (i)nner
213#, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
214set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
215set $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)
222bindsym $mod+Shift+g mode "$mode_gaps"
223
224mode "$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
237mode "$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}
249mode "$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
262for_window [class=".*"] border pixel 0
263for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable
264for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable
265assign [class="^Steam$"] 9
266assign [class="^Thunderbird$"] 8
267
268# class border backgr. text indicator child_border
269client.focused #458588 #285577 #ffffff #458588 #285577
270client.focused_inactive #b16286 #5f676a #ffffff #484e50 #5f676a
271client.unfocused #927374 #222222 #888888 #292d2e #222222
272client.urgent #2f343a #900000 #ffffff #900000 #900000
273client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
274
275client.background #ffffff
276
277# config
278hide_edge_borders smart
279workspace_auto_back_and_forth yes
280focus_follows_mouse no