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