summaryrefslogtreecommitdiffstats
path: root/.config/i3/config##h.maus
diff options
context:
space:
mode:
authorYigit Sever2021-10-07 23:57:39 +0300
committerYigit Sever2021-10-07 23:57:39 +0300
commite65be8525e54eb0329c8a8736f556b03d8d71291 (patch)
tree2f4546e81ddb82ee3331e593177c7bbbfced33d7 /.config/i3/config##h.maus
parentdc6b0668ed8862185ccae82ee57d6a7fffd72870 (diff)
downloaddotfiles-e65be8525e54eb0329c8a8736f556b03d8d71291.tar.gz
dotfiles-e65be8525e54eb0329c8a8736f556b03d8d71291.tar.bz2
dotfiles-e65be8525e54eb0329c8a8736f556b03d8d71291.zip
i3: remove class string
Diffstat (limited to '.config/i3/config##h.maus')
-rw-r--r--.config/i3/config##h.maus216
1 files changed, 216 insertions, 0 deletions
diff --git a/.config/i3/config##h.maus b/.config/i3/config##h.maus
new file mode 100644
index 0000000..c6c06f3
--- /dev/null
+++ b/.config/i3/config##h.maus
@@ -0,0 +1,216 @@
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
12exec --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 redshift-gtk &
18exec --no-startup-id nm-applet &
19exec --no-startup-id udiskie --automount --file-manager thunar --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 &
24
25# swap caps lock and escape, set keyboard layout
26exec --no-startup-id setxkbmap -model pc105 -layout us -variant colemak -option caps:backspace
27
28# tap ctrl to esc, hold ctrl to ctrl
29exec --no-startup-id xcape -e 'Control_L=Escape'
30
31# launch conky windows
32exec --no-startup-id conky --daemonize -c ~/.config/conky/conky.conf
33# exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf
34
35# set the wallpaper (hopefully after xrandr)
36exec --no-startup-id ~/.fehbg
37
38# font for window titles
39font pango:Iosevka 11
40
41## bindings
42# done, {task,time}warrior control suite
43bindcode $mod+42 exec --no-startup-id ~/.local/bin/done
44
45# type the contents of the clipboard with mod+p
46bindcode --release $mod+27 exec --no-startup-id ~/.local/bin/type_clipboard.sh
47
48# launch emoji picker with mod+c
49bindcode $mod+54 exec --no-startup-id rofimoji --skin-tone neutral
50
51# get the mouse out of the way with mod+y
52bindcode $mod+32 exec --no-startup-id xdotool mousemove 1087 1101
53
54# bookmark from clipboard with mod+l
55bindcode $mod+30 exec --no-startup-id ~/.local/bin/bukuadd_c
56
57# swap caps lock and escape, set keyboard layout with mod+]
58bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,us,tr -variant ,colemak, -option grp:alt_shift_toggle,caps:backspace"
59
60# use flameshot with print screen
61bindsym Print exec flameshot gui
62
63# media keys
64bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+"
65bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%-"
66bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle"
67bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify
68bindsym XF86AudioPrev exec --no-startup-id playerctl previous
69bindsym XF86AudioNext exec --no-startup-id playerctl next
70bindsym XF86Tools exec --no-startup-id mpc toggle # for mpd/ncmpcpp
71
72# make the currently focused window a scratchpad
73bindcode $mod+Shift+20 move scratchpad
74
75# show the first scratchpad window
76bindcode $mod+20 scratchpad show
77
78# pause notifications for a while with mod+shift+y
79bindcode $mod+Shift+32 exec ~/.local/bin/toggle_notifications.sh
80
81## shortcuts for frequent programs
82
83# zotero on mod+shift+z
84bindcode $mod+Shift+52 exec zotero
85# thunar on mod+shift+t
86bindcode $mod+Shift+41 exec thunar
87# start a terminal
88bindsym $mod+Return exec kitty
89# start rofi with mod+s
90bindcode $mod+40 exec rofi -show combi
91# launch the poweroff menu
92bindsym $mod+Shift+Escape exec --no-startup-id ~/.local/bin/power.sh
93
94# kill focused window
95bindcode $mod+Shift+24 kill
96bindsym --whole-window $mod+button2 kill
97
98# change focus on mod+hnei (qwerty hjkl)
99bindcode $mod+43 focus left
100bindcode $mod+44 focus down
101bindcode $mod+45 focus up
102bindcode $mod+46 focus right
103
104# move focused window on mod+shift+hnei
105bindcode $mod+Shift+43 move left
106bindcode $mod+Shift+44 move down
107bindcode $mod+Shift+45 move up
108bindcode $mod+Shift+46 move right
109
110# split in horizontal orientation with mod+b
111bindcode $mod+56 split h
112
113# split in vertical orientation with mod+v
114bindcode $mod+55 split v
115
116# enter fullscreen mode for the focused container with mod+t
117bindcode $mod+41 fullscreen toggle
118
119# change container layout (stacked, tabbed, toggle split)
120bindcode $mod+39 layout stacking
121bindcode $mod+25 layout tabbed
122bindcode $mod+26 layout toggle split
123
124# toggle tiling / floating
125bindsym $mod+Shift+space floating toggle
126
127# toggle sticky floating window with mod+a
128bindcode $mod+38 sticky toggle
129
130# change focus between tiling / floating windows
131bindsym $mod+space focus mode_toggle
132
133# Define names for default workspaces for which we configure key bindings later on.
134# We use variables to avoid repeating the names in multiple places.
135# Workspace icons are added at polybar
136set $ws1 "1"
137set $ws2 "2"
138set $ws3 "3"
139set $ws4 "4"
140set $ws5 "5"
141set $ws6 "6"
142set $ws7 "7"
143set $ws8 "8"
144set $ws9 "9"
145set $ws10 "0"
146set $wsmusic "music"
147set $wszotero "zotero"
148set $wsdesktop "desktop"
149set $wsbrowser "browser"
150set $wssteam "steam"
151
152# switch to workspace
153bindsym $mod+1 workspace $ws1
154bindsym $mod+2 workspace $ws2
155bindsym $mod+3 workspace $ws3
156bindsym $mod+4 workspace $ws4
157bindsym $mod+5 workspace $ws5
158bindsym $mod+6 workspace $ws6
159bindsym $mod+7 workspace $ws7
160bindsym $mod+8 workspace $ws8
161bindsym $mod+9 workspace $wssteam
162bindsym $mod+0 workspace $ws10
163bindsym $mod+m workspace $wsmusic
164bindcode $mod+49 workspace $wszotero
165bindcode $mod+60 workspace $wsdesktop
166bindcode $mod+21 workspace $wsbrowser
167
168# move focused container to workspace
169bindsym $mod+Shift+1 move container to workspace $ws1
170bindsym $mod+Shift+2 move container to workspace $ws2
171bindsym $mod+Shift+3 move container to workspace $ws3
172bindsym $mod+Shift+4 move container to workspace $ws4
173bindsym $mod+Shift+5 move container to workspace $ws5
174bindsym $mod+Shift+6 move container to workspace $ws6
175bindsym $mod+Shift+7 move container to workspace $ws7
176bindsym $mod+Shift+8 move container to workspace $ws8
177bindsym $mod+Shift+9 move container to workspace $wssteam
178bindsym $mod+Shift+0 move container to workspace $ws10
179bindsym $mod+Shift+m move container to workspace $wsmusic
180bindcode $mod+Shift+49 move container to workspace $wszotero
181bindcode $mod+Shift+60 move container to workspace $wsdesktop
182bindcode $mod+Shift+21 move container to workspace $wsbrowser
183
184bindcode $mod+52 move container to output right
185
186# reload the configuration file
187bindcode $mod+Shift+54 reload
188# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
189bindcode $mod+Shift+27 restart
190
191default_border pixel 2
192for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable
193for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable
194for_window [class="zoom" title="Chat"] floating enable
195for_window [class="Dia" window_role="toolbox_window"] floating enable
196for_window [class="Pavucontrol" title="Volume Control"] floating enable
197
198assign [class="^Steam$"] $wssteam
199assign [class="^Brave-browser$"] $wsbrowser
200assign [class="^Zotero$"] $wszotero
201for_window [class="Spotify"] move --no-auto-back-and-forth container to workspace $wsmusic
202
203# class border background text indicator child_border
204client.focused #ae81ff #080808 #85dc85 #ff5454 #ae81ff
205client.focused_inactive #ae81ff #9e9e9e #080808 #ff5454 #5f676a
206client.unfocused #ae81ff #323437 #b2b2b2 #ff5454 #222222
207client.urgent #ae81ff #900000 #b2b2b2 #ff5454 #900000
208client.placeholder #ae81ff #0c0c0c #b2b2b2 #ff5454 #0c0c0c
209
210client.background #ffffff
211
212# config
213hide_edge_borders none
214workspace_auto_back_and_forth yes
215focus_follows_mouse no
216mouse_warping none