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