rc

Add compton and i3lock-wrapper to install.sh

Author
Maarten 'Vngngdn' Vangeneugden
Date
July 8, 2017, 12:06 p.m.
Hash
535b9cefa34cee280a4d6a84adcd560f3734f1db
Parent
c69d60bfdc42c939f0d3263118825252073cd637
Modified files
i3/config
install.sh

i3/config

5 additions and 2 deletions.

View changes Hide changes
1
1
#
2
2
# Copy this to ~/.config/sway/config and edit it to your liking.
3
3
#
4
4
# Read `man 5 sway` for a complete reference.
5
5
6
6
### Variables
7
7
#
8
8
# Logo key. Use Mod1 for Alt.
9
9
set $mod Mod4
10
10
# Home row direction keys, like vim
11
11
set $left h
12
12
set $down j
13
13
set $up k
14
14
set $right l
15
15
# Your preferred terminal emulator
16
16
set $term urxvt
17
17
# Your preferred application launcher
18
18
set $menu rofi -show run 
19
19
20
20
21
21
### Output configuration
22
22
#
23
23
# Default wallpaper (more resolutions are available in /usr/share/sway/)
24
24
#output * bg ~/.wallpapers/Abstract\ with\ lime\ green\ and\ blue\ accents.jpg fill
25
25
#
26
26
# Example configuration:
27
27
#
28
28
#   output HDMI-A-1 resolution 1920x1080 position 1920,0
29
29
#
30
30
# You can get the names of your outputs by running: swaymsg -t get_outputs
31
31
32
32
### Input configuration
33
33
#
34
34
# Example configuration:
35
35
#
36
36
#   input "2:14:SynPS/2_Synaptics_TouchPad" {
37
37
#       dwt enabled
38
38
#       tap enabled
39
39
#       natural_scroll enabled
40
40
#       middle_emulation enabled
41
41
#   }
42
42
#
43
43
# You can get the names of your inputs by running: swaymsg -t get_inputs
44
44
# The escape symbol "\" has to be removed.
45
45
# Read `man 5 sway-input` for more information about this section.
46
46
47
47
### Key bindings
48
48
#
49
49
# Basics:
50
50
#
51
51
    # start a terminal
52
52
    bindsym $mod+Return exec $term
53
53
54
54
    # kill focused window
55
55
    bindsym $mod+Shift+q kill
56
56
57
57
    # start your launcher
58
58
    bindsym $mod+d exec $menu
59
59
60
60
    # Mouse+$mod to drag floating windows
61
61
	floating_modifier $mod
62
62
63
63
    # reload the configuration file
+
64
    bindsym $mod+i i3lock-wrapper
+
65
+
66
    # reload the configuration file
64
67
    bindsym $mod+Shift+c reload
65
68
    # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
66
69
    bindsym $mod+Shift+r restart
67
70
# exit i3 (logs you out of your X session)
68
71
bindsym $mod+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'"
69
72
#
70
73
# Moving around:
71
74
#
72
75
    # Move your focus around
73
76
    bindsym $mod+$left focus left
74
77
    bindsym $mod+$down focus down
75
78
    bindsym $mod+$up focus up
76
79
    bindsym $mod+$right focus right
77
80
    # or use $mod+[up|down|left|right]
78
81
    bindsym $mod+Left focus left
79
82
    bindsym $mod+Down focus down
80
83
    bindsym $mod+Up focus up
81
84
    bindsym $mod+Right focus right
82
85
83
86
    # _move_ the focused window with the same, but add Shift
84
87
    bindsym $mod+Shift+$left move left
85
88
    bindsym $mod+Shift+$down move down
86
89
    bindsym $mod+Shift+$up move up
87
90
    bindsym $mod+Shift+$right move right
88
91
    # ditto, with arrow keys
89
92
    bindsym $mod+Shift+Left move left
90
93
    bindsym $mod+Shift+Down move down
91
94
    bindsym $mod+Shift+Up move up
92
95
    bindsym $mod+Shift+Right move right
93
96
#
94
97
# Workspaces:
95
98
#
96
99
    # switch to workspace
97
100
    bindsym $mod+1 workspace 1
98
101
    bindsym $mod+2 workspace 2
99
102
    bindsym $mod+3 workspace 3
100
103
    bindsym $mod+4 workspace 4
101
104
    bindsym $mod+5 workspace 5
102
105
    bindsym $mod+6 workspace 6
103
106
    bindsym $mod+7 workspace 7
104
107
    bindsym $mod+8 workspace 8: Website
105
108
    bindsym $mod+9 workspace 9: Games
106
109
    bindsym $mod+0 workspace 10: University
107
110
    # move focused container to workspace
108
111
    bindsym $mod+Shift+1 move container to workspace 1
109
112
    bindsym $mod+Shift+2 move container to workspace 2
110
113
    bindsym $mod+Shift+3 move container to workspace 3
111
114
    bindsym $mod+Shift+4 move container to workspace 4
112
115
    bindsym $mod+Shift+5 move container to workspace 5
113
116
    bindsym $mod+Shift+6 move container to workspace 6
114
117
    bindsym $mod+Shift+7 move container to workspace 7
115
118
    bindsym $mod+Shift+8 move container to workspace 8: Website
116
119
    bindsym $mod+Shift+9 move container to workspace 9: Games
117
120
    bindsym $mod+Shift+0 move container to workspace 10: University
118
121
    # Note: workspaces can have any name you want, not just numbers.
119
122
    # We just use 1-10 as the default.
120
123
#
121
124
# Layout stuff:
122
125
#
123
126
    # You can "split" the current object of your focus with
124
127
    # $mod+b or $mod+v, for horizontal and vertical splits
125
128
    # respectively.
126
129
    bindsym $mod+b split h
127
130
    bindsym $mod+v split v
128
131
129
132
    # Switch the current container between different layout styles
130
133
    bindsym $mod+s layout stacking
131
134
    bindsym $mod+w layout tabbed
132
135
    bindsym $mod+e layout toggle split
133
136
134
137
    # Make the current focus fullscreen
135
138
    bindsym $mod+f fullscreen toggle
136
139
137
140
    # Toggle the current focus between tiling and floating mode
138
141
    bindsym $mod+Shift+space floating toggle
139
142
140
143
    # Swap focus between the tiling area and the floating area
141
144
    bindsym $mod+space focus mode_toggle
142
145
143
146
    # move focus to the parent container
144
147
    bindsym $mod+a focus parent
145
148
#
146
149
# Scratchpad:
147
150
#
148
151
    # Sway has a "scratchpad", which is a bag of holding for windows.
149
152
    # You can send windows there and get them back later.
150
153
151
154
    # Move the currently focused window to the scratchpad
152
155
    bindsym $mod+Shift+minus move scratchpad
153
156
154
157
    # Show the next scratchpad window or hide the focused scratchpad window.
155
158
    # If there are multiple scratchpad windows, this command cycles through them.
156
159
    bindsym $mod+minus scratchpad show
157
160
#
158
161
# Resizing containers:
159
162
#
160
163
mode "resize" {
161
164
    # left will shrink the containers width
162
165
    # right will grow the containers width
163
166
    # up will shrink the containers height
164
167
    # down will grow the containers height
165
168
    bindsym $left resize shrink width 10 px or 10 ppt
166
169
    bindsym $down resize grow height 10 px or 10 ppt
167
170
    bindsym $up resize shrink height 10 px or 10 ppt
168
171
    bindsym $right resize grow width 10 px or 10 ppt
169
172
170
173
    # ditto, with arrow keys
171
174
    bindsym Left resize shrink width 10 px or 10 ppt
172
175
    bindsym Down resize grow height 10 px or 10 ppt
173
176
    bindsym Up resize shrink height 10 px or 10 ppt
174
177
    bindsym Right resize grow width 10 px or 10 ppt
175
178
176
179
    # return to default mode
177
180
    bindsym Return mode "default"
178
181
    bindsym Escape mode "default"
179
182
}
180
183
bindsym $mod+r mode "resize"
181
184
182
185
# --recursive allows subdirectories to contain wallpapers as well, which is nice
183
186
# if you want to organize.
184
187
# --randomize chooses a different wallpaper for each screen (and of course,
185
188
# randomizes during startup)
186
189
# --bg-scale scales the wallpaper to fit the screen, so any 16:9 wallpaper is
187
190
# scaled to fit, instead of staying oversized.
188
191
exec_always feh --recursive --randomize --bg-scale ~/.wallpapers/* 
189
192
exec_always compton -bi
190
-
exec_always polybar top
191
-
+
193
exec polybar top
+
194
192
195
193
196
# Makes my FN buttons work properly.
194
197
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ unmute
195
198
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- unmute
196
199
bindsym XF86AudioToggle exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle
197
200
198
201
bindsym XF86MonBrightnessDown exec light -U 5
199
202
bindsym XF86MonBrightnessUp exec light -A 5
200
203
bindsym Print exec scrot  # Printscreen button
201
204
bindsym $mod+Print exec scrot -s  # scrot, but click for window, or drag for rectangle screenshot.
202
205
203
206
204
207
# Font settings
205
208
font pango:Ubuntu Regular 11
206
209
207
210
# Border settings
208
211
#hide_edge_borders both
209
212
210
213
# Color settings (yeah Material Design, I know, don't judge)
211
214
212
215
client.focused          #283593 #283593 #ffffff #283593 #283593
213
216
client.focused_inactive #5C6BC0 #5C6BC0 #FFFFFF #5C6BC0 #5C6BC0
214
217
client.unfocused        #9FA8DA #9FA8DA #000000 #9FA8DA #9FA8DA
215
218
client.urgent           #D50000 #D50000 #ffffff #D50000 #D50000
216
219
#client.placeholder
217
220
218
221
# Stops the mouse defining what the active window is.
219
222
focus_follows_mouse no
220
223
221
224
# i3-gaps configuration
222
225
#
223
226
# i3-gaps can only work properly if title bars are completely disabled, which the
224
227
# next line is responsible for.
225
228
for_window [class="^.*"] border pixel 5
226
229
227
230
gaps inner 15
228
231
gaps outer 5
229
232
# smart_gaps disables gaps if there is only 1 container on the workspace.
230
233
smart_gaps on
231
234
# smart_borders does the same thing. If set to "on", it will always disable the
232
235
# border if it's the only container on the workspace. If set to "no-gaps", it
233
236
# only disables the border if the gap size to the edge of the screen is 0.
234
237
smart_borders no_gaps

install.sh

1 addition and 1 deletion.

View changes Hide changes
1
1
# particulary Arch, because that's the best GNU/Linux distro =P
2
2
3
3
# The next command will install the software that I'm bound to use on my PC.
4
4
sudo pacman -S --noconfirm neovim base-devel rust vlc openssh
5
5
# Don't forget to install the keys for SSH!
6
6
7
7
# Installing shell data:
8
8
sudo pacman -S --noconfirm zsh zsh-completions zsh-grml-config
9
9
10
10
# Installing the Noto fonts:
11
11
sudo pacman -S --noconfirm noto-fonts noto-fonts-emoji
12
12
# Firefox:
13
13
sudo pacman -S --noconfirm firefox
14
14
# Uncomment next line for Dutch firefox translations.
15
15
#sudo pacman -S --noconfirm firefox-i18n-nl
16
16
# I've ditched Firefox in favor of Chromium, because Chromium doesn't vomit when confronted with XWayland.
17
17
#sudo pacman -S --noconfirm chromium
18
18
19
19
# Sound handling (Don't forget to unmute using alsamixer!)
20
20
sudo pacman -S --noconfirm alsa-utils pulseaudio pulseaudio-jack pulseaudio-bluetooth
21
21
22
22
# To easily make use of the AUR, I'll first install Pacaur, which needs some
23
23
# special treatment up front:
24
24
cd ~/Downloads
25
25
wget https://aur.archlinux.org/cgit/aur.git/snapshot/pacaur.tar.gz
26
26
tar -x -f pacaur.tar.gz
27
27
cd pacaur
28
28
makepkg -sri --noconfirm
29
29
cd ..
30
30
rm -r pacaur
31
31
cd ~
32
32
33
33
# Making a directory in which to store all repositories. It's basically a
34
34
# repository for repositories =3
35
35
mkdir Repositories
36
36
37
37
# Making some common aliases for some pieces of software
38
38
alias vi nvim
39
39
alias vim nvim
40
40
41
41
# Some Python dependencies that need to be installed
42
42
pip install paramiko
43
43
44
44
# Collecting software from the AUR:
45
45
pacaur -S vim-youcompleteme-git
46
46
pacaur -S clojure leiningen  # Clojure's 'project manager' thingy + Clojure
47
47
# Next line installs all required software for the desktop environment.
48
48
pacaur -S i3-gaps feh i3blocks rofi
49
-
# Installing Polybar and i3ipc-glib-git because the first one is awesome, the
+
49
# Installing Polybar and i3ipc-glib-git because the first one is awesome, the
50
50
# second one (allegedly) necessary for i3 interaction for Polybar:
51
51
pacaur -S --noconfirm polybar i3ipc-glib-git
52
52
# i3blocks optional dependencies:
53
53
pacaur -S acpi bc lm_sensors playerctl sysstat
54
54
# A terminal emulator:
55
55
pacaur -S --noconfirm rxvt-unicode
56
56
# Also, DO NOT use Termite. It's an awful thing to work with NeoVim, and slows
57
57
# down to a fucking tortoise speed.
58
58
59
59
# Now, assuming I'm using the my standard setup for Yabar, I need the JSON
60
60
# parser to correctly output my workspace name:
61
61
pacaur -S --noconfirm jq
62
62
63
63
# Uncomment when there is a driver for the Validity VFS495 138a:003f figerprint
64
64
# reader, and still working on that gorgeous laptop:
65
65
#pacaur -S --noconfirm fprintd
66
66
67
67
pacaur -S --noconfirm rsync  # Used for backing up data that can't be done properly with Git
68
68
pacaur -S --noconfirm neomutt urlview  # Least sucky mail client
69
69
70
70
# Installing CRON job services
71
71
pacaur -S --noconfirm cronie
72
72
# TODO Add a line that makes a symbolic link to my custom Cron file
73
73
sudo systemctl enable cronie.service
74
74
75
75
pacaur -S --noconfirm irssi  # IRC client
76
76
pacaur -S --noconfirm ranger w3m  # File manager. w3m for image previews
77
77
# TODO link ranger/rc.conf and scope.sh symbolically to .config/ranger
78
78
79
79
# Fonts
80
80
# Now I don't like Ubuntu, but their fonts are amazing.
81
81
pacaur -S --noconfirm ttf-ubuntu-font-family
82
82
83
83
# MPV is used for playing videos, and is required when using the 'Watch with
84
84
# MPV' plugin for Firefox. It's way more lightweight, and I don't get why both
85
85
# Chrome and Firefox don't do this automatically, and default to software
86
86
# decoding instead on the hardware GPU.
87
87
pacaur -S --noconfirm mpv youtube-dl-git
88
88