diff options
author | Yigit Sever | 2019-03-17 23:09:49 +0300 |
---|---|---|
committer | Yigit Sever | 2019-03-17 23:18:28 +0300 |
commit | ea211500227aa58f5e495777743c5d391cbc3110 (patch) | |
tree | afa2b455f9fea40b45dbf8a742c0d0d498024edb /.config/i3 | |
download | dotfiles-ea211500227aa58f5e495777743c5d391cbc3110.tar.gz dotfiles-ea211500227aa58f5e495777743c5d391cbc3110.tar.bz2 dotfiles-ea211500227aa58f5e495777743c5d391cbc3110.zip |
Initial commit
Diffstat (limited to '.config/i3')
-rw-r--r-- | .config/i3/config | 202 |
1 files changed, 202 insertions, 0 deletions
diff --git a/.config/i3/config b/.config/i3/config new file mode 100644 index 0000000..043eff8 --- /dev/null +++ b/.config/i3/config | |||
@@ -0,0 +1,202 @@ | |||
1 | # i3 config file (v4) | ||
2 | # Please see https://i3wm.org/docs/userguide.html for a complete reference! | ||
3 | |||
4 | # set modifiers | ||
5 | set $mod Mod4 | ||
6 | set $alt Mod1 | ||
7 | |||
8 | #autostart | ||
9 | exec --no-startup-id xsettingsd & | ||
10 | exec --no-startup-id compton -b & | ||
11 | exec --no-startup-id dropbox & | ||
12 | exec --no-startup-id copyq & | ||
13 | exec --no-startup-id redshift-gtk & | ||
14 | exec --no-startup-id nm-applet & | ||
15 | exec --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 & | ||
16 | |||
17 | #launch polybar | ||
18 | exec--no-startup-id $HOME/.config/polybar/launch.sh | ||
19 | |||
20 | # swap caps lock and escape, set keyboard layout | ||
21 | exec --no-startup-id setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape | ||
22 | |||
23 | #launch conky windows | ||
24 | exec --no-startup-id conky --daemonize -c ~/.config/conky/conky.conf | ||
25 | exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf | ||
26 | |||
27 | # set the wallpaper last (hopefully after xrandr) | ||
28 | exec --no-startup-id hsetroot -fill ~/Dropbox/Wallpapers/yousef-espanioly-541259-unsplash.jpg | ||
29 | |||
30 | # lock screen | ||
31 | exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'i3lock-fancy -f Lato-Light -t "welcome back" -- scrot -z' '' | ||
32 | |||
33 | gaps inner 0 | ||
34 | gaps outer 0 | ||
35 | |||
36 | # Font for window titles | ||
37 | font pango:Lato 11 | ||
38 | |||
39 | # Use Mouse+$mod to drag floating windows to their wanted position | ||
40 | floating_modifier $alt | ||
41 | |||
42 | # bindings | ||
43 | |||
44 | # shoo the mouse | ||
45 | bindsym $mod+o exec --no-startup-id xdotool mousemove 1087 1101 | ||
46 | |||
47 | # i switched back to firefox can you tell | ||
48 | bindsym Ctrl+q exec --no-startup-id true | ||
49 | |||
50 | # bookmark from clipboard | ||
51 | bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c | ||
52 | |||
53 | # swap caps lock and escape, set keyboard layout | ||
54 | bindsym $mod+p exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape" | ||
55 | |||
56 | # use flameshot with print screen | ||
57 | bindsym Print exec flameshot gui | ||
58 | |||
59 | # media keys | ||
60 | bindsym $mod+m exec "pactl set-sink-mute @DEFAULT_SINK@ toggle" | ||
61 | bindsym $mod+Up exec "pactl set-sink-volume @DEFAULT_SINK@ +5%" | ||
62 | bindsym $mod+Down exec "pactl set-sink-volume @DEFAULT_SINK@ -5%" | ||
63 | bindsym $mod+q exec mpc toggle | ||
64 | #bindsym XF86AudioStop exec mpc stop | ||
65 | bindsym $mod+Left exec /home/yigit/bin/mpvPrev | ||
66 | bindsym $mod+Right exec mpc next | ||
67 | |||
68 | # start a terminal | ||
69 | bindsym $mod+Return exec kitty | ||
70 | |||
71 | # kill focused window | ||
72 | bindsym $mod+Shift+q kill | ||
73 | |||
74 | # start rofi (a program launcher) | ||
75 | bindsym $mod+d exec rofi -show combi | ||
76 | |||
77 | # change focus | ||
78 | bindsym $mod+h focus left | ||
79 | bindsym $mod+j focus down | ||
80 | bindsym $mod+k focus up | ||
81 | bindsym $mod+l focus right | ||
82 | |||
83 | # move focused window | ||
84 | bindsym $mod+Shift+h move left | ||
85 | bindsym $mod+Shift+j move down | ||
86 | bindsym $mod+Shift+k move up | ||
87 | bindsym $mod+Shift+l move right | ||
88 | |||
89 | # split in horizontal orientation | ||
90 | bindsym $mod+b split h | ||
91 | |||
92 | # split in vertical orientation | ||
93 | bindsym $mod+v split v | ||
94 | |||
95 | # enter fullscreen mode for the focused container | ||
96 | bindsym $mod+f fullscreen toggle | ||
97 | |||
98 | # change container layout (stacked, tabbed, toggle split) | ||
99 | bindsym $mod+s layout stacking | ||
100 | bindsym $mod+w layout tabbed | ||
101 | bindsym $mod+e layout toggle split | ||
102 | |||
103 | # toggle tiling / floating | ||
104 | bindsym $mod+Shift+space floating toggle | ||
105 | |||
106 | # change focus between tiling / floating windows | ||
107 | bindsym $mod+space focus mode_toggle | ||
108 | |||
109 | # focus the parent container | ||
110 | bindsym $mod+a focus parent | ||
111 | |||
112 | # Define names for default workspaces for which we configure key bindings later on. | ||
113 | # We use variables to avoid repeating the names in multiple places. | ||
114 | set $ws1 "1" | ||
115 | set $ws2 "2" | ||
116 | set $ws3 "3" | ||
117 | set $ws4 "4" | ||
118 | set $ws5 "5" | ||
119 | set $ws6 "6" | ||
120 | set $ws7 "7" | ||
121 | set $ws8 "8" | ||
122 | set $ws9 "9" | ||
123 | set $ws10 "10" | ||
124 | |||
125 | # switch to workspace | ||
126 | bindsym $mod+1 workspace $ws1 | ||
127 | bindsym $mod+2 workspace $ws2 | ||
128 | bindsym $mod+3 workspace $ws3 | ||
129 | bindsym $mod+4 workspace $ws4 | ||
130 | bindsym $mod+5 workspace $ws5 | ||
131 | bindsym $mod+6 workspace $ws6 | ||
132 | bindsym $mod+7 workspace $ws7 | ||
133 | bindsym $mod+8 workspace $ws8 | ||
134 | bindsym $mod+9 workspace $ws9 | ||
135 | bindsym $mod+0 workspace $ws10 | ||
136 | |||
137 | # move focused container to workspace | ||
138 | bindsym $mod+Shift+1 move container to workspace $ws1 | ||
139 | bindsym $mod+Shift+2 move container to workspace $ws2 | ||
140 | bindsym $mod+Shift+3 move container to workspace $ws3 | ||
141 | bindsym $mod+Shift+4 move container to workspace $ws4 | ||
142 | bindsym $mod+Shift+5 move container to workspace $ws5 | ||
143 | bindsym $mod+Shift+6 move container to workspace $ws6 | ||
144 | bindsym $mod+Shift+7 move container to workspace $ws7 | ||
145 | bindsym $mod+Shift+8 move container to workspace $ws8 | ||
146 | bindsym $mod+Shift+9 move container to workspace $ws9 | ||
147 | bindsym $mod+Shift+0 move container to workspace $ws10 | ||
148 | |||
149 | # reload the configuration file | ||
150 | bindsym $mod+Shift+c reload | ||
151 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | ||
152 | bindsym $mod+Shift+r restart | ||
153 | |||
154 | # resize window (you can also use the mouse for that) | ||
155 | mode "resize" { | ||
156 | # These bindings trigger as soon as you enter the resize mode | ||
157 | |||
158 | # Pressing left will shrink the window’s width. | ||
159 | # Pressing right will grow the window’s width. | ||
160 | # Pressing up will shrink the window’s height. | ||
161 | # Pressing down will grow the window’s height. | ||
162 | bindsym h resize shrink width 10 px or 10 ppt | ||
163 | bindsym j resize grow height 10 px or 10 ppt | ||
164 | bindsym k resize shrink height 10 px or 10 ppt | ||
165 | bindsym l resize grow width 10 px or 10 ppt | ||
166 | |||
167 | # back to normal: Enter or Escape or $mod+r | ||
168 | bindsym Return mode "default" | ||
169 | bindsym Caps_Lock mode "default" | ||
170 | bindsym $mod+r mode "default" | ||
171 | } | ||
172 | |||
173 | # session | ||
174 | mode "(L)ock, (S)ignout, (R)eboot, (P)oweroff" { | ||
175 | bindsym $mod+l exec i3lock-fancy -f Lato-Light -t 'welcome back' -- scrot -z | ||
176 | bindsym $mod+r exec systemctl reboot | ||
177 | bindsym $mod+p exec systemctl poweroff | ||
178 | bindsym $mod+s exit | ||
179 | bindsym Escape mode "default" | ||
180 | } | ||
181 | bindsym $mod+Shift+e mode "(L)ock, (S)ignout, (R)eboot, (P)oweroff" | ||
182 | |||
183 | bindsym $mod+r mode "resize" | ||
184 | |||
185 | for_window [class=".*"] border pixel 4 | ||
186 | |||
187 | assign [class="^Steam$"] 9 | ||
188 | assign [class="^Thunderbird$"] 8 | ||
189 | |||
190 | # class border backgr. text indicator child_border | ||
191 | client.focused #458588 #285577 #ffffff #458588 #285577 | ||
192 | client.focused_inactive #b16286 #5f676a #ffffff #484e50 #5f676a | ||
193 | client.unfocused #927374 #222222 #888888 #292d2e #222222 | ||
194 | client.urgent #2f343a #900000 #ffffff #900000 #900000 | ||
195 | client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c | ||
196 | |||
197 | client.background #ffffff | ||
198 | |||
199 | # config | ||
200 | hide_edge_borders smart | ||
201 | workspace_auto_back_and_forth yes | ||
202 | focus_follows_mouse no | ||