diff options
author | Yigit Sever | 2019-03-18 11:00:00 +0300 |
---|---|---|
committer | Yigit Sever | 2019-03-18 11:00:00 +0300 |
commit | b63da2281a9320848e9dbf47d2d4039fb0ef8a4a (patch) | |
tree | ff5cac63e992ae6f316f40d25c19d372246f4350 /.config/i3/config##desktop.Linux.Lowe | |
parent | ea211500227aa58f5e495777743c5d391cbc3110 (diff) | |
download | dotfiles-b63da2281a9320848e9dbf47d2d4039fb0ef8a4a.tar.gz dotfiles-b63da2281a9320848e9dbf47d2d4039fb0ef8a4a.tar.bz2 dotfiles-b63da2281a9320848e9dbf47d2d4039fb0ef8a4a.zip |
Separate i3 and polybar config per machine
Diffstat (limited to '.config/i3/config##desktop.Linux.Lowe')
-rw-r--r-- | .config/i3/config##desktop.Linux.Lowe | 184 |
1 files changed, 184 insertions, 0 deletions
diff --git a/.config/i3/config##desktop.Linux.Lowe b/.config/i3/config##desktop.Linux.Lowe new file mode 100644 index 0000000..476f645 --- /dev/null +++ b/.config/i3/config##desktop.Linux.Lowe | |||
@@ -0,0 +1,184 @@ | |||
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 | # launch polybar | ||
9 | exec --no-startup-id $HOME/.config/polybar/launch.sh & | ||
10 | |||
11 | # start the screensaver, '' at the end is not a typo | ||
12 | exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'betterlockscreen -l dimblur -t "Welcome Back"' '' | ||
13 | |||
14 | # Font for window titles | ||
15 | font pango:Lato 11 | ||
16 | |||
17 | # Use Mouse+$mod to drag floating windows to their wanted position | ||
18 | floating_modifier $alt | ||
19 | |||
20 | # i switched back to firefox can you tell | ||
21 | bindsym Ctrl+q exec --no-startup-id true | ||
22 | |||
23 | # get the mouse out of the way | ||
24 | bindsym $mod+o exec --no-startup-id xdotool mousemove 1920 1080 | ||
25 | |||
26 | # bookmark from clipboard | ||
27 | bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c | ||
28 | |||
29 | # swap caps lock and escape, set keyboard layout, 35 is ]/ü (layout agnostic) | ||
30 | bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape" | ||
31 | |||
32 | # use flameshot with print screen | ||
33 | bindsym Print exec flameshot gui | ||
34 | |||
35 | # media keys | ||
36 | bindsym XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle" | ||
37 | bindsym XF86AudioRaiseVolume exec "pactl set-sink-volume @DEFAULT_SINK@ +5%" | ||
38 | bindsym XF86AudioLowerVolume exec "pactl set-sink-volume @DEFAULT_SINK@ -5%" | ||
39 | bindsym XF86AudioPlay exec mpc toggle | ||
40 | bindsym XF86AudioPrev exec /home/yigit/bin/mpcPrevSong.sh | ||
41 | bindsym XF86AudioNext exec mpc next | ||
42 | |||
43 | # shortcuts for frequent programs | ||
44 | bindsym $mod+Shift+z exec zotero | ||
45 | bindsym $mod+Shift+f exec thunar | ||
46 | bindsym $mod+Shift+t exec thunderbird | ||
47 | |||
48 | # start a terminal | ||
49 | bindsym $mod+Return exec kitty | ||
50 | |||
51 | # kill focused window | ||
52 | bindsym $mod+Shift+q kill | ||
53 | bindsym --whole-window $mod+button2 kill | ||
54 | |||
55 | # start rofi (a program launcher) | ||
56 | bindsym $mod+d exec rofi -show combi | ||
57 | |||
58 | # change focus | ||
59 | bindsym $mod+h focus left | ||
60 | bindsym $mod+j focus down | ||
61 | bindsym $mod+k focus up | ||
62 | bindsym $mod+l focus right | ||
63 | |||
64 | # move focused window | ||
65 | bindsym $mod+Shift+h move left | ||
66 | bindsym $mod+Shift+j move down | ||
67 | bindsym $mod+Shift+k move up | ||
68 | bindsym $mod+Shift+l move right | ||
69 | |||
70 | # split in horizontal orientation | ||
71 | bindsym $mod+b split h | ||
72 | |||
73 | # split in vertical orientation | ||
74 | bindsym $mod+v split v | ||
75 | |||
76 | # enter fullscreen mode for the focused container | ||
77 | bindsym $mod+f fullscreen toggle | ||
78 | |||
79 | # change container layout (stacked, tabbed, toggle split) | ||
80 | bindsym $mod+s layout stacking | ||
81 | bindsym $mod+w layout tabbed | ||
82 | bindsym $mod+e layout toggle split | ||
83 | |||
84 | # toggle tiling / floating | ||
85 | bindsym $mod+Shift+space floating toggle | ||
86 | |||
87 | # change focus between tiling / floating windows | ||
88 | bindsym $mod+space focus mode_toggle | ||
89 | |||
90 | # focus the parent container | ||
91 | bindsym $mod+a focus parent | ||
92 | |||
93 | # Define names for default workspaces for which we configure key bindings later on. | ||
94 | # We use variables to avoid repeating the names in multiple places. | ||
95 | set $ws1 "1" | ||
96 | set $ws2 "2" | ||
97 | set $ws3 "3" | ||
98 | set $ws4 "4" | ||
99 | set $ws5 "5" | ||
100 | set $ws6 "6" | ||
101 | set $ws7 "7" | ||
102 | set $ws8 "8" | ||
103 | set $ws9 "9" | ||
104 | set $ws10 "10" | ||
105 | |||
106 | # switch to workspace | ||
107 | bindsym $mod+1 workspace $ws1 | ||
108 | bindsym $mod+2 workspace $ws2 | ||
109 | bindsym $mod+3 workspace $ws3 | ||
110 | bindsym $mod+4 workspace $ws4 | ||
111 | bindsym $mod+5 workspace $ws5 | ||
112 | bindsym $mod+6 workspace $ws6 | ||
113 | bindsym $mod+7 workspace $ws7 | ||
114 | bindsym $mod+8 workspace $ws8 | ||
115 | bindsym $mod+9 workspace $ws9 | ||
116 | bindsym $mod+0 workspace $ws10 | ||
117 | |||
118 | # move focused container to workspace | ||
119 | bindsym $mod+Shift+1 move container to workspace $ws1 | ||
120 | bindsym $mod+Shift+2 move container to workspace $ws2 | ||
121 | bindsym $mod+Shift+3 move container to workspace $ws3 | ||
122 | bindsym $mod+Shift+4 move container to workspace $ws4 | ||
123 | bindsym $mod+Shift+5 move container to workspace $ws5 | ||
124 | bindsym $mod+Shift+6 move container to workspace $ws6 | ||
125 | bindsym $mod+Shift+7 move container to workspace $ws7 | ||
126 | bindsym $mod+Shift+8 move container to workspace $ws8 | ||
127 | bindsym $mod+Shift+9 move container to workspace $ws9 | ||
128 | bindsym $mod+Shift+0 move container to workspace $ws10 | ||
129 | |||
130 | # reload the configuration file | ||
131 | bindsym $mod+Shift+c reload | ||
132 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) | ||
133 | bindsym $mod+Shift+r restart | ||
134 | |||
135 | # resize window (you can also use the mouse for that) | ||
136 | mode "resize" { | ||
137 | # These bindings trigger as soon as you enter the resize mode | ||
138 | |||
139 | # Pressing left will shrink the window’s width. | ||
140 | # Pressing right will grow the window’s width. | ||
141 | # Pressing up will shrink the window’s height. | ||
142 | # Pressing down will grow the window’s height. | ||
143 | bindsym h resize shrink width 10 px or 10 ppt | ||
144 | bindsym j resize grow height 10 px or 10 ppt | ||
145 | bindsym k resize shrink height 10 px or 10 ppt | ||
146 | bindsym l resize grow width 10 px or 10 ppt | ||
147 | |||
148 | # back to normal: Enter or Escape or $mod+r | ||
149 | bindsym Return mode "default" | ||
150 | bindsym Escape mode "default" | ||
151 | bindsym $mod+r mode "default" | ||
152 | } | ||
153 | |||
154 | # session | ||
155 | mode " (L)ock (S)ignout (R)eboot (P)oweroff" { | ||
156 | |||
157 | bindsym $mod+l exec betterlockscreen -l dimblur -t "Welcome back" | ||
158 | bindsym $mod+r exec systemctl reboot | ||
159 | bindsym $mod+p exec systemctl poweroff | ||
160 | bindsym $mod+s exit | ||
161 | bindcode 66 mode "default" | ||
162 | } | ||
163 | bindsym $mod+Shift+e mode " (L)ock (S)ignout (R)eboot (P)oweroff" | ||
164 | |||
165 | bindsym $mod+r mode "resize" | ||
166 | |||
167 | for_window [class=".*"] border pixel 4 | ||
168 | |||
169 | assign [class="^Steam$"] 9 | ||
170 | assign [class="^Thunderbird$"] 8 | ||
171 | |||
172 | # class border backgr. text indicator child_border | ||
173 | client.focused #458588 #285577 #ffffff #458588 #285577 | ||
174 | client.focused_inactive #b16286 #5f676a #ffffff #484e50 #5f676a | ||
175 | client.unfocused #927374 #222222 #888888 #292d2e #222222 | ||
176 | client.urgent #2f343a #900000 #ffffff #900000 #900000 | ||
177 | client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c | ||
178 | |||
179 | client.background #ffffff | ||
180 | |||
181 | # config | ||
182 | hide_edge_borders smart | ||
183 | workspace_auto_back_and_forth yes | ||
184 | focus_follows_mouse no | ||