summaryrefslogtreecommitdiffstats
path: root/.config/i3/config##c.desktop,h.maus
diff options
context:
space:
mode:
Diffstat (limited to '.config/i3/config##c.desktop,h.maus')
-rw-r--r--.config/i3/config##c.desktop,h.maus299
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
6set $mod Mod4
7set $alt Mod1
8
9# launch polybar
10exec --no-startup-id $HOME/.config/polybar/launch.sh &
11
12# start the screensaver, '' at the end is not a typo
13exec --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
16exec --no-startup-id xsettingsd &
17exec --no-startup-id picom -b
18exec --no-startup-id flashfocus &
19exec --no-startup-id nextcloud &
20exec --no-startup-id copyq &
21exec --no-startup-id redshift-gtk &
22exec --no-startup-id nm-applet &
23exec --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 &
24exec --no-startup-id xdotool key --clearmodifiers Num_Lock
25exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify &
26
27# swap caps lock and escape, set keyboard layout
28exec --no-startup-id setxkbmap -model pc105 -layout tr,us -variant ,colemak -option grp:alt_shift_toggle,caps:backspace
29
30# and ctrl to escape
31exec --no-startup-id xcape -e 'Control_L=Escape'
32
33#launch conky windows
34exec --no-startup-id conky --daemonize -c ~/.config/conky/conky.conf
35exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf
36
37# set the wallpaper last (hopefully after xrandr)
38exec --no-startup-id ~/.fehbg
39
40# Font for window titles
41font pango:Lato 11
42
43# Use Mouse+$mod to drag floating windows to their wanted position
44floating_modifier $alt
45
46##############
47# bindings #
48##############
49
50# i switched back to firefox can you tell
51bindsym Ctrl+q exec --no-startup-id true
52
53bindsym $mod+c exec --no-startup-id rofimoji --skin-tone neutral --insert-with-clipboard
54
55# get the mouse out of the way
56bindsym $mod+o exec --no-startup-id xdotool mousemove 1087 1101
57
58# bookmark from clipboard
59bindsym $mod+u exec --no-startup-id ~/.local/bin/bukuadd_c
60
61# swap caps lock and escape, set keyboard layout, 35 is ]/ü (layout agnostic)
62bindcode $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
65bindsym 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)"
70bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && amixer get Master | grep -Po '[0-9]+(?=%)' | head -1 > /tmp/xobpipe"
71bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && amixer get Master | grep -Po '[0-9]+(?=%)' | head -1 > /tmp/xobpipe"
72bindsym 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"
73bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify
74bindsym XF86AudioPrev exec --no-startup-id playerctl previous
75bindsym XF86AudioNext exec --no-startup-id playerctl next
76bindsym 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
87bindsym $mod+Shift+minus move scratchpad
88
89# Show the first scratchpad window
90bindsym $mod+minus scratchpad show
91
92# shortcuts for frequent programs
93bindsym $mod+Shift+z exec zotero
94bindcode $mod+Shift+41 exec thunar # t on colemak f on turkish
95
96# start a terminal
97bindsym $mod+Return exec kitty
98
99# kill focused window
100bindsym $mod+Shift+q kill
101bindsym --whole-window $mod+button2 kill
102
103# start rofi (a program launcher)
104bindsym $mod+d exec rofi -show combi
105
106# change focus
107bindsym $mod+h focus left
108bindsym $mod+j focus down
109bindsym $mod+k focus up
110bindsym $mod+l focus right
111
112# move focused window
113bindsym $mod+Shift+h move left
114bindsym $mod+Shift+j move down
115bindsym $mod+Shift+k move up
116bindsym $mod+Shift+l move right
117
118# split in horizontal orientation
119bindsym $mod+b split h
120
121# split in vertical orientation
122bindsym $mod+v split v
123
124# enter fullscreen mode for the focused container
125bindsym $mod+f fullscreen toggle
126
127# change container layout (stacked, tabbed, toggle split)
128bindsym $mod+s layout stacking
129bindsym $mod+w layout tabbed
130bindsym $mod+e layout toggle split
131
132# toggle tiling / floating
133bindsym $mod+Shift+space floating toggle
134
135# toggle sticky floating window
136bindsym $mod+a sticky toggle
137
138# change focus between tiling / floating windows
139bindsym $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.
143set $ws1 "1"
144set $ws2 "2"
145set $ws3 "3"
146set $ws4 "4"
147set $ws5 "5"
148set $ws6 "6"
149set $ws7 "7"
150set $ws8 "8"
151set $ws9 "9"
152set $ws10 "10"
153set $wsmusic "♫"
154set $wszotero "ζ"
155set $wsdesktop "Ξ"
156
157workspace $wsmusic output HDMI-0
158
159# switch to workspace
160bindsym $mod+1 workspace $ws1
161bindsym $mod+2 workspace $ws2
162bindsym $mod+3 workspace $ws3
163bindsym $mod+4 workspace $ws4
164bindsym $mod+5 workspace $ws5
165bindsym $mod+6 workspace $ws6
166bindsym $mod+7 workspace $ws7
167bindsym $mod+8 workspace $ws8
168bindsym $mod+9 workspace $ws9
169bindsym $mod+0 workspace $ws10
170bindsym $mod+m workspace $wsmusic
171bindcode $mod+49 workspace $wszotero
172bindcode $mod+60 workspace $wsdesktop
173
174# move focused container to workspace
175bindsym $mod+Shift+1 move container to workspace $ws1
176bindsym $mod+Shift+2 move container to workspace $ws2
177bindsym $mod+Shift+3 move container to workspace $ws3
178bindsym $mod+Shift+4 move container to workspace $ws4
179bindsym $mod+Shift+5 move container to workspace $ws5
180bindsym $mod+Shift+6 move container to workspace $ws6
181bindsym $mod+Shift+7 move container to workspace $ws7
182bindsym $mod+Shift+8 move container to workspace $ws8
183bindsym $mod+Shift+9 move container to workspace $ws9
184bindsym $mod+Shift+0 move container to workspace $ws10
185bindsym $mod+Shift+m move container to workspace $wsmusic
186bindcode $mod+Shift+49 move container to workspace $wszotero
187bindcode $mod+Shift+60 move container to workspace $wsdesktop
188
189bindsym $mod+z move container to output right
190
191# reload the configuration file
192bindsym $mod+Shift+c reload
193# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
194bindsym $mod+Shift+r restart
195
196# resize window (you can also use the mouse for that)
197mode "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}
214bindsym $mod+r mode "resize"
215
216# session
217mode " (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}
224bindsym $mod+Shift+e mode " (L)ock (S)ignout (R)eboot (P)oweroff"
225
226bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh
227
228set $mode_gaps Gaps: (o)uter, (i)nner
229#, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
230set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
231set $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)
238bindsym $mod+Shift+g mode "$mode_gaps"
239
240mode "$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
253mode "$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}
265mode "$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
279default_border pixel 2
280for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable
281for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable
282for_window [class="zoom" title="Chat"] floating enable
283assign [class="^Steam$"] 9
284assign [class="^Zotero$"] $wszotero
285
286# class border backgr. text indicator child_border
287client.focused #458588 #285577 #ffffff #458588 #285577
288client.focused_inactive #b16286 #5f676a #ffffff #484e50 #5f676a
289client.unfocused #927374 #222222 #888888 #292d2e #222222
290client.urgent #2f343a #900000 #ffffff #900000 #900000
291client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
292
293client.background #ffffff
294
295# config
296hide_edge_borders none
297workspace_auto_back_and_forth yes
298focus_follows_mouse no
299mouse_warping none