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