Skip to content

Commit 9ea99a7

Browse files
committed
Added initial i3 dot files
1 parent 7400d45 commit 9ea99a7

File tree

3 files changed

+219
-0
lines changed

3 files changed

+219
-0
lines changed

.Xresources

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
URxvt.font: xft:monospace:size 16

compton.conf

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Fading
2+
fading = true;
3+
fade-in-step = 0.05;
4+
fade-out-step = 0.05;
5+
fade-exclue = [];
6+
7+
# Opacity
8+
active-opacity = 0.9;
9+
inactive-opacity = 0.6;
10+
opacity-rule = [ "99:class_g = 'rofi'" ];

config

+208
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
#i3 config file (v4)
2+
#
3+
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
4+
#
5+
# This config file uses keycodes (bindsym) and was written for the QWERTY
6+
# layout.
7+
#
8+
# To get a config file with the same key positions, but for your current
9+
# layout, use the i3-config-wizard
10+
#
11+
12+
# Font for window titles. Will also be used by the bar unless a different font
13+
# is used in the bar {} block below.
14+
font pango:System San Francisco Display 10
15+
16+
# This font is widely installed, provides lots of unicode glyphs, right-to-left
17+
# text rendering and scalability on retina/hidpi displays (thanks to pango).
18+
#font pango:DejaVu Sans Mono 8
19+
20+
# Before i3 v4.8, we used to recommend this one as the default:
21+
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
22+
# The font above is very space-efficient, that is, it looks good, sharp and
23+
# clear in small sizes. However, its unicode glyph coverage is limited, the old
24+
# X core fonts rendering does not support right-to-left and this being a bitmap
25+
# font, it doesn't scale on retina/hidpi displays.
26+
27+
# use these keys for focus, movement, and resize directions when reaching for
28+
# the arrows is not convenient
29+
set $up l
30+
set $down k
31+
set $left j
32+
set $right semicolon
33+
34+
# use Mouse+Mod1 to drag floating windows to their wanted position
35+
floating_modifier Mod1
36+
37+
# start a terminal
38+
bindsym Mod1+Return exec i3-sensible-terminal
39+
40+
#i3 Gaps
41+
for_window [class="^.*"] border pixel 0
42+
gaps inner 15
43+
gaps outer 20
44+
45+
46+
# kill focused window
47+
bindsym Mod1+Shift+q kill
48+
49+
# start dmenu (a program launcher)
50+
bindsym Mod1+d exec rofi -show run -lines 5 -bw 0 -width 100 -padding 300 -fullscreen
51+
52+
# There also is the (new) i3-dmenu-desktop which only displays applications
53+
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
54+
# installed.
55+
# bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
56+
57+
# change focus
58+
bindsym Mod1+$left focus left
59+
bindsym Mod1+$down focus down
60+
bindsym Mod1+$up focus up
61+
bindsym Mod1+$right focus right
62+
63+
# alternatively, you can use the cursor keys:
64+
bindsym Mod1+Left focus left
65+
bindsym Mod1+Down focus down
66+
bindsym Mod1+Up focus up
67+
bindsym Mod1+Right focus right
68+
69+
# move focused window
70+
bindsym Mod1+Shift+$left move left
71+
bindsym Mod1+Shift+$down move down
72+
bindsym Mod1+Shift+$up move up
73+
bindsym Mod1+Shift+$right move right
74+
75+
# alternatively, you can use the cursor keys:
76+
bindsym Mod1+Shift+Left move left
77+
bindsym Mod1+Shift+Down move down
78+
bindsym Mod1+Shift+Up move up
79+
bindsym Mod1+Shift+Right move right
80+
81+
# split in horizontal orientation
82+
bindsym Mod1+h split h
83+
84+
# split in vertical orientation
85+
bindsym Mod1+v split v
86+
87+
# enter fullscreen mode for the focused container
88+
bindsym Mod1+f fullscreen toggle
89+
90+
# change container layout (stacked, tabbed, toggle split)
91+
bindsym Mod1+s layout stacking
92+
bindsym Mod1+w layout tabbed
93+
bindsym Mod1+e layout toggle split
94+
95+
# toggle tiling / floating
96+
bindsym Mod1+Shift+space floating toggle
97+
98+
# change focus between tiling / floating windows
99+
bindsym Mod1+space focus mode_toggle
100+
101+
# focus the parent container
102+
bindsym Mod1+a focus parent
103+
104+
# focus the child container
105+
#bindsym Mod1+d focus child
106+
107+
# move the currently focused window to the scratchpad
108+
bindsym Mod1+Shift+minus move scratchpad
109+
110+
# Show the next scratchpad window or hide the focused scratchpad window.
111+
# If there are multiple scratchpad windows, this command cycles through them.
112+
bindsym Mod1+minus scratchpad show
113+
114+
# Define names for default workspaces for which we configure key bindings later on.
115+
# We use variables to avoid repeating the names in multiple places.
116+
set $ws1 "1"
117+
set $ws2 "2"
118+
set $ws3 "3"
119+
set $ws4 "4"
120+
set $ws5 "5"
121+
set $ws6 "6"
122+
set $ws7 "7"
123+
set $ws8 "8"
124+
set $ws9 "9"
125+
set $ws10 "10"
126+
127+
128+
# switch to workspace
129+
bindsym Mod1+1 workspace $ws1
130+
bindsym Mod1+2 workspace $ws2
131+
bindsym Mod1+3 workspace $ws3
132+
bindsym Mod1+4 workspace $ws4
133+
bindsym Mod1+5 workspace $ws5
134+
bindsym Mod1+6 workspace $ws6
135+
bindsym Mod1+7 workspace $ws7
136+
bindsym Mod1+8 workspace $ws8
137+
bindsym Mod1+9 workspace $ws9
138+
bindsym Mod1+0 workspace $ws10
139+
140+
# move focused container to workspace
141+
bindsym Mod1+Shift+1 move container to workspace $ws1
142+
bindsym Mod1+Shift+2 move container to workspace $ws2
143+
bindsym Mod1+Shift+3 move container to workspace $ws3
144+
bindsym Mod1+Shift+4 move container to workspace $ws4
145+
bindsym Mod1+Shift+5 move container to workspace $ws5
146+
bindsym Mod1+Shift+6 move container to workspace $ws6
147+
bindsym Mod1+Shift+7 move container to workspace $ws7
148+
bindsym Mod1+Shift+8 move container to workspace $ws8
149+
bindsym Mod1+Shift+9 move container to workspace $ws9
150+
bindsym Mod1+Shift+0 move container to workspace $ws10
151+
152+
# reload the configuration file
153+
bindsym Mod1+Shift+c reload
154+
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
155+
bindsym Mod1+Shift+r restart
156+
# exit i3 (logs you out of your X session)
157+
bindsym Mod1+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
158+
159+
# resize window (you can also use the mouse for that)
160+
mode "resize" {
161+
# These bindings trigger as soon as you enter the resize mode
162+
163+
# Pressing left will shrink the window’s width.
164+
# Pressing right will grow the window’s width.
165+
# Pressing up will shrink the window’s height.
166+
# Pressing down will grow the window’s height.
167+
bindsym $left resize shrink width 10 px or 10 ppt
168+
bindsym $down resize grow height 10 px or 10 ppt
169+
bindsym $up resize shrink height 10 px or 10 ppt
170+
bindsym $right resize grow width 10 px or 10 ppt
171+
172+
# same bindings, but for the arrow keys
173+
bindsym Left resize shrink width 10 px or 10 ppt
174+
bindsym Down resize grow height 10 px or 10 ppt
175+
bindsym Up resize shrink height 10 px or 10 ppt
176+
bindsym Right resize grow width 10 px or 10 ppt
177+
178+
# back to normal: Enter or Escape or Mod1+r
179+
bindsym Return mode "default"
180+
bindsym Escape mode "default"
181+
bindsym Mod1+r mode "default"
182+
}
183+
184+
bindsym Mod1+r mode "resize"
185+
186+
# Start i3bar to display a workspace bar (plus the system information i3status
187+
# finds out, if available)
188+
bar {
189+
status_command i3status
190+
}
191+
192+
# Wallpaper
193+
exec_always feh --bg-scale /home/msun/Pictures/wall4.jpg
194+
195+
# Compton
196+
exec_always --no-startup-id compton
197+
198+
199+
#######################################################################
200+
# automatically start i3-config-wizard to offer the user to create a
201+
# keysym-based config which used their favorite modifier (alt or windows)
202+
#
203+
# i3-config-wizard will not launch if there already is a config file
204+
# in ~/.i3/config.
205+
#
206+
# Please remove the following exec line:
207+
#######################################################################
208+
exec i3-config-wizard

0 commit comments

Comments
 (0)