OSDN Git Service

[fix] : gtk theme and icons in xfce's slick greeter
[alterlinux/alterlinux.git] / channels / i3 / airootfs.x86_64 / etc / skel / .config / i3 / config
1 # ---------------------------------------------
2 #  Alter Linux i3wm edition
3 #  i3wm config file
4 #
5 #  Watasuke
6 #  Twitter: @Watasuke102
7 #  Email  : Watasuke102@gmail.com
8 #
9 #  (c) 2020 Fascode Network.
10 # ---------------------------------------------
11
12 # ---------------------
13 # Appearance
14
15 # wallpaper
16 exec --no-startup-id "feh --bg-fill /usr/share/backgrounds/alter-jiju.png"
17
18 # font
19 font pango:Noto Sans 9
20
21
22 # gaps each window
23 gaps outer 2
24 gaps inner 15
25 smart_gaps on
26
27
28 # disable title bar
29 for_window [class="^.*"] border pixel 2
30
31
32 # automatic-startup
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
41
42 # software floating settings
43 for_window [class="arandr"]      floating enable
44 for_window [class="pavucontrol"] floating enable
45
46 # ---------------------
47 # KeyBind
48
49 # mod key
50 set $mod Mod4
51
52 # start calamares (installer)
53 bindsym $mod+i exec --no-startup-id sudo calamares
54
55 # start a terminal
56 bindsym $mod+Return exec --no-startup-id sakura
57
58 # take a screenshot
59 bindsym $mod+Shift+Print exec --no-startup-id xfce4-screenshooter
60
61 # lock screen
62 bindsym $mod+Escape exec --no-startup-id i3lock -k
63
64 # polybar theme setting manager
65 bindsym $mod+Shift+s exec --no-startup-id alterlinux-i3-manager
66
67 # system setting manager
68 bindsym $mod+b exec --no-startup-id sakura -e alter-system-menu
69
70 # show help document
71 bindsym $mod+Shift+h exec --no-startup-id chromium /usr/share/doc/alter-i3/Document.html
72
73 # start rofi (launcher)
74 bindsym $mod+d exec --no-startup-id rofi -show drun
75
76 # power menu
77 bindsym $mod+Shift+e exec --no-startup-id rofi -show power
78
79 # kill focused window
80 bindsym $mod+Shift+q kill
81
82
83 # change focus
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
93
94
95 # move focused window
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
105
106
107 # split
108 bindsym $mod+h split h
109 bindsym $mod+v split v
110
111
112 # reload the configuration file
113 bindsym $mod+Shift+c reload
114
115
116 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
117 bindsym $mod+Shift+r restart
118
119
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
126
127
128
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
133
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
138
139 # toggle tiling / floating
140 bindsym $mod+Shift+space floating toggle
141
142 # change focus between tiling / floating windows
143 bindsym $mod+space focus mode_toggle
144
145 # focus the parent container
146 bindsym $mod+a focus parent
147
148 # focus the child container
149 #bindsym $mod+d focus child
150
151
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.
154 set $ws1 "1"
155 set $ws2 "2"
156 set $ws3 "3"
157 set $ws4 "4"
158 set $ws5 "5"
159 set $ws6 "6"
160 set $ws7 "7"
161 set $ws8 "8"
162 set $ws9 "9"
163 set $ws10 "10"
164
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
176
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
188
189
190 # ---------------------
191 # mode
192
193 # resize window (you can also use the mouse for that)
194 mode "resize" {
195         # These bindings trigger as soon as you enter the resize mode
196
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
205
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
211
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"
216 }
217 bindsym $mod+r mode "resize"
218
219