summaryrefslogtreecommitdiffstats
path: root/.config/i3
diff options
context:
space:
mode:
Diffstat (limited to '.config/i3')
-rw-r--r--.config/i3/config##h.luchs232
1 files changed, 0 insertions, 232 deletions
diff --git a/.config/i3/config##h.luchs b/.config/i3/config##h.luchs
deleted file mode 100644
index 0c9a999..0000000
--- a/.config/i3/config##h.luchs
+++ /dev/null
@@ -1,232 +0,0 @@
1# vim: filetype=i3config
2# https://i3wm.org/docs/userguide.html
3
4# set modifiers
5set $mod Mod4
6set $alt Mod1
7
8# use mouse+$mod to drag floating windows to their wanted position
9floating_modifier $alt
10
11## autostart
12# exec --no-startup-id xsettingsd &
13exec --no-startup-id picom -b
14exec --no-startup-id flashfocus &
15exec --no-startup-id nextcloud &
16exec --no-startup-id copyq &
17exec --no-startup-id clight &
18exec --no-startup-id nm-applet &
19exec --no-startup-id udiskie --automount --file-manager pcmanfm --tray --notify &
20exec --no-startup-id /usr/lib/pam_kwallet_init
21exec --no-startup-id remind -z -k'dunstify -i "calendar" "⏰ reminder!" "%s" &' ~/.reminders &
22exec --no-startup-id /home/yigit/.local/bin/pulse-volume-watcher.py | xob -m 80 &
23exec --no-startup-id $HOME/.config/polybar/launch.sh &
24exec --no-startup-id ~/.fehbg &
25
26exec --no-startup-id gebaard -b &
27
28# swap caps lock and escape, set keyboard layout
29exec --no-startup-id setxkbmap -model pc105 -layout us -variant colemak -option caps:backspace
30
31# tap ctrl to esc, hold ctrl to ctrl
32exec --no-startup-id xcape -e 'Control_L=Escape' &
33
34# disable screensaver, beep and power saving
35exec --no-startup-id xset -dpms &
36exec --no-startup-id xset s off &
37exec --no-startup-id xset -b &
38
39exec --no-startup-id xinput set-prop "ELAN1200:00 04F3:3045 Touchpad" "libinput Natural Scrolling Enabled" 1 &
40exec --no-startup-id xinput set-prop "ELAN1200:00 04F3:3045 Touchpad" "libinput Tapping Enabled" 1 &
41
42gaps inner 5
43gaps outer 2
44
45# font for window titles
46font pango:Iosevka 11
47
48## bindings
49### dunstctl - dunst shortcuts have been deprecated
50# close notifications with mod+x
51bindcode $mod+53 exec --no-startup-id dunstctl close
52bindcode $mod+shift+53 exec --no-startup-id dunstctl close-all
53
54# give context menu with mod+o
55bindcode $mod+47 exec --no-startup-id dunstctl context
56
57# show history items with mod+0 (like the old times)
58bindcode $mod+19 exec --no-startup-id dunstctl history-pop
59
60# done, {task,time}warrior control suite
61bindcode $mod+42 exec --no-startup-id ~/.local/bin/done
62
63# type the contents of the clipboard with mod+p
64bindcode --release $mod+27 exec --no-startup-id ~/.local/bin/type_clipboard.sh
65
66# launch emoji picker with mod+c
67bindcode $mod+54 exec --no-startup-id rofimoji --skin-tone neutral
68
69# get the mouse out of the way with mod+y
70bindcode $mod+32 exec --no-startup-id xdotool mousemove 896 5
71
72# bookmark from clipboard with mod+l
73bindcode $mod+30 exec --no-startup-id ~/.local/bin/bukuadd_c
74
75# swap caps lock and escape, set keyboard layout with mod+]
76bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,us,tr -variant ,colemak, -option grp:alt_shift_toggle,caps:backspace"
77
78# use flameshot with print screen
79bindsym Print exec flameshot gui
80
81# media keys
82# TODO: test these for luchs keyboard <08-10-21, yigit> #
83bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 2%+
84bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 2%-
85bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle
86bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify
87bindsym XF86AudioPrev exec --no-startup-id playerctl previous
88bindsym XF86AudioNext exec --no-startup-id playerctl next
89bindsym XF86Tools exec --no-startup-id mpc toggle # for mpd/ncmpcpp
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 "ELAN1200:00 04F3:3045 Touchpad"` =~ /^.*Device Enabled.+?(\d)$/m and {$1 ? `xinput --disable "ELAN1200:00 04F3:3045 Touchpad" && dunstify -a "touchpad" "disabled"` : `xinput --enable "ELAN1200:00 04F3:3045 Touchpad" && dunstify -a "touchpad" "enabled"`}} '
95
96# make the currently focused window a scratchpad
97bindcode $mod+Shift+20 move scratchpad
98
99# show the first scratchpad window
100bindcode $mod+20 scratchpad show
101
102# pause notifications for a while with mod+shift+y
103bindcode $mod+Shift+32 exec ~/.local/bin/toggle_notifications.sh
104
105## shortcuts for frequent programs
106
107# zotero on mod+shift+z
108bindcode $mod+Shift+52 exec zotero
109# thunar on mod+shift+t
110bindcode $mod+Shift+41 exec thunar
111# start a terminal
112bindsym $mod+Return exec kitty
113# start rofi with mod+s
114bindcode $mod+40 exec rofi -show drun
115# launch the poweroff menu
116bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh
117
118# kill focused window
119bindcode $mod+Shift+24 kill
120bindsym --whole-window $mod+button2 kill
121
122# change focus on mod+hnei (qwerty hjkl)
123bindcode $mod+43 focus left
124bindcode $mod+44 focus down
125bindcode $mod+45 focus up
126bindcode $mod+46 focus right
127
128# move focused window on mod+shift+hnei
129bindcode $mod+Shift+43 move left
130bindcode $mod+Shift+44 move down
131bindcode $mod+Shift+45 move up
132bindcode $mod+Shift+46 move right
133
134# split in horizontal orientation with mod+b
135bindcode $mod+56 split h
136
137# split in vertical orientation with mod+v
138bindcode $mod+55 split v
139
140# enter fullscreen mode for the focused container with mod+t
141bindcode $mod+41 fullscreen toggle
142
143# change container layout (stacked, tabbed, toggle split)
144bindcode $mod+39 layout stacking
145bindcode $mod+25 layout tabbed
146bindcode $mod+26 layout toggle split
147
148# toggle tiling / floating
149bindsym $mod+Shift+space floating toggle
150
151# toggle sticky floating window with mod+a
152bindcode $mod+38 sticky toggle
153
154# change focus between tiling / floating windows
155bindsym $mod+space focus mode_toggle
156
157# Define names for default workspaces for which we configure key bindings later on.
158# We use variables to avoid repeating the names in multiple places.
159set $ws1 "1"
160set $ws2 "2"
161set $ws3 "3"
162set $ws4 "4"
163set $ws5 "5"
164set $ws6 "6"
165set $ws7 "7"
166set $ws8 "8"
167set $ws9 "9"
168set $ws10 "10"
169set $wszotero "zotero"
170set $wsdesktop "desktop"
171set $wsbrowser "browser"
172
173# switch to workspace
174bindsym $mod+1 workspace $ws1
175bindsym $mod+2 workspace $ws2
176bindsym $mod+3 workspace $ws3
177bindsym $mod+4 workspace $ws4
178bindsym $mod+5 workspace $ws5
179bindsym $mod+6 workspace $ws6
180bindsym $mod+7 workspace $ws7
181bindsym $mod+8 workspace $ws8
182bindsym $mod+9 workspace $ws9
183bindcode $mod+49 workspace $wszotero
184bindcode $mod+60 workspace $wsdesktop
185bindcode $mod+21 workspace $wsbrowser
186
187# move focused container to workspace
188bindsym $mod+Shift+1 move container to workspace $ws1
189bindsym $mod+Shift+2 move container to workspace $ws2
190bindsym $mod+Shift+3 move container to workspace $ws3
191bindsym $mod+Shift+4 move container to workspace $ws4
192bindsym $mod+Shift+5 move container to workspace $ws5
193bindsym $mod+Shift+6 move container to workspace $ws6
194bindsym $mod+Shift+7 move container to workspace $ws7
195bindsym $mod+Shift+8 move container to workspace $ws8
196bindsym $mod+Shift+9 move container to workspace $ws9
197bindcode $mod+Shift+49 move container to workspace $wszotero
198bindcode $mod+Shift+60 move container to workspace $wsdesktop
199bindcode $mod+Shift+21 move container to workspace $wsbrowser
200
201# reload the configuration file
202bindcode $mod+Shift+54 reload
203# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
204bindcode $mod+Shift+27 restart
205
206default_border pixel 0
207default_floating_border pixel 0
208for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable
209for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable
210for_window [class="Zotero" window_role="pref"] floating enable
211for_window [class="zoom" title="Chat"] floating enable
212for_window [class="Dia" window_role="toolbox_window"] floating enable
213for_window [class="Pavucontrol" title="Volume Control"] floating enable
214
215assign [class="^Brave-browser$"] $wsbrowser
216assign [class="^Zotero$"] $wszotero
217
218# class border background text indicator child_border
219client.focused #ae81ff #080808 #85dc85 #ff5454 #ae81ff
220client.focused_inactive #ae81ff #9e9e9e #080808 #ff5454 #5f676a
221client.unfocused #ae81ff #323437 #b2b2b2 #ff5454 #222222
222client.urgent #ae81ff #900000 #b2b2b2 #ff5454 #900000
223client.placeholder #ae81ff #0c0c0c #b2b2b2 #ff5454 #0c0c0c
224
225client.background #ffffff
226
227# config
228hide_edge_borders smart
229workspace_auto_back_and_forth yes
230focus_follows_mouse no
231mouse_warping none
232focus_wrapping no