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