1 # ---------------------------------------------
2 # Alter Linux i3wm edition
6 # Twitter: @Watasuke102
7 # Email : Watasuke102@gmail.com
9 # (c) 2020 Fascode Network.
10 # ---------------------------------------------
12 # ---------------------
16 exec --no-startup-id "feh --bg-fill /usr/share/backgrounds/alter-jiju.png"
19 font pango:Noto Sans 9
29 for_window [class="^.*"] border pixel 2
33 exec_always --no-startup-id $HOME/.config/polybar/launch.sh
34 exec_always --no-startup-id compton
35 exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
36 exec --no-startup-id nm-applet
37 exec --no-startup-id xfce4-clipman
38 exec --no-startup-id dunst
39 exec --no-startup-id conky
40 exec --no-startup-id fcitx
42 # software floating settings
43 for_window [class="arandr"] floating enable
44 for_window [class="pavucontrol"] floating enable
46 # ---------------------
52 # start calamares (installer)
53 bindsym $mod+i exec --no-startup-id sudo calamares
56 bindsym $mod+Return exec --no-startup-id sakura
59 bindsym $mod+Shift+Print exec --no-startup-id xfce4-screenshooter
62 bindsym $mod+Escape exec --no-startup-id i3lock -k
64 # polybar theme setting manager
65 bindsym $mod+Shift+s exec --no-startup-id alterlinux-i3-manager
67 # system setting manager
68 bindsym $mod+b exec --no-startup-id sakura -e alter-system-menu
71 bindsym $mod+Shift+h exec --no-startup-id chromium /usr/share/doc/alter-i3/Document.html
73 # start rofi (launcher)
74 bindsym $mod+d exec --no-startup-id rofi -show drun
77 bindsym $mod+Shift+e exec --no-startup-id rofi -show power
80 bindsym $mod+Shift+q kill
84 bindsym $mod+j focus left
85 bindsym $mod+k focus down
86 bindsym $mod+l focus up
87 bindsym $mod+semicolon focus right
88 # alternatively, you can use the cursor keys:
89 bindsym $mod+Left focus left
90 bindsym $mod+Down focus down
91 bindsym $mod+Up focus up
92 bindsym $mod+Right focus right
96 bindsym $mod+Shift+j move left
97 bindsym $mod+Shift+k move down
98 bindsym $mod+Shift+l move up
99 bindsym $mod+Shift+semicolon move right
100 # alternatively, you can use the cursor keys:
101 bindsym $mod+Shift+Left move left
102 bindsym $mod+Shift+Down move down
103 bindsym $mod+Shift+Up move up
104 bindsym $mod+Shift+Right move right
108 bindsym $mod+h split h
109 bindsym $mod+v split v
112 # reload the configuration file
113 bindsym $mod+Shift+c reload
116 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
117 bindsym $mod+Shift+r restart
120 # Use pactl to adjust volume in PulseAudio.
121 set $refresh_i3status killall -SIGUSR1 i3status
122 bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
123 bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
124 bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
125 bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
129 # Use Mouse+$mod to drag floating windows to their wanted position
130 floating_modifier $mod
131 # enter fullscreen mode for the focused container
132 bindsym $mod+f fullscreen toggle
134 # change container layout (stacked, tabbed, toggle split)
135 bindsym $mod+s layout stacking
136 bindsym $mod+w layout tabbed
137 bindsym $mod+e layout toggle split
139 # toggle tiling / floating
140 bindsym $mod+Shift+space floating toggle
142 # change focus between tiling / floating windows
143 bindsym $mod+space focus mode_toggle
145 # focus the parent container
146 bindsym $mod+a focus parent
148 # focus the child container
149 #bindsym $mod+d focus child
152 # Define names for default workspaces for which we configure key bindings later on.
153 # We use variables to avoid repeating the names in multiple places.
165 # switch to workspace
166 bindsym $mod+1 workspace number $ws1
167 bindsym $mod+2 workspace number $ws2
168 bindsym $mod+3 workspace number $ws3
169 bindsym $mod+4 workspace number $ws4
170 bindsym $mod+5 workspace number $ws5
171 bindsym $mod+6 workspace number $ws6
172 bindsym $mod+7 workspace number $ws7
173 bindsym $mod+8 workspace number $ws8
174 bindsym $mod+9 workspace number $ws9
175 bindsym $mod+0 workspace number $ws10
177 # move focused container to workspace
178 bindsym $mod+Shift+1 move container to workspace number $ws1
179 bindsym $mod+Shift+2 move container to workspace number $ws2
180 bindsym $mod+Shift+3 move container to workspace number $ws3
181 bindsym $mod+Shift+4 move container to workspace number $ws4
182 bindsym $mod+Shift+5 move container to workspace number $ws5
183 bindsym $mod+Shift+6 move container to workspace number $ws6
184 bindsym $mod+Shift+7 move container to workspace number $ws7
185 bindsym $mod+Shift+8 move container to workspace number $ws8
186 bindsym $mod+Shift+9 move container to workspace number $ws9
187 bindsym $mod+Shift+0 move container to workspace number $ws10
190 # ---------------------
193 # resize window (you can also use the mouse for that)
195 # These bindings trigger as soon as you enter the resize mode
197 # Pressing left will shrink the window’s width.
198 # Pressing right will grow the window’s width.
199 # Pressing up will shrink the window’s height.
200 # Pressing down will grow the window’s height.
201 bindsym h resize shrink width 10 px or 10 ppt
202 bindsym j resize grow height 10 px or 10 ppt
203 bindsym k resize shrink height 10 px or 10 ppt
204 bindsym l resize grow width 10 px or 10 ppt
206 # same bindings, but for the arrow keys
207 bindsym Left resize shrink width 10 px or 10 ppt
208 bindsym Down resize grow height 10 px or 10 ppt
209 bindsym Up resize shrink height 10 px or 10 ppt
210 bindsym Right resize grow width 10 px or 10 ppt
212 # back to normal: Enter or Escape or $mod+r
213 bindsym Return mode "default"
214 bindsym Escape mode "default"
215 bindsym $mod+r mode "default"
217 bindsym $mod+r mode "resize"