rc

I currently use Termite as my terminal, so I added a tiny config file for it.

Author
Maarten 'Vngngdn' Vangeneugden
Date
Nov. 14, 2016, 3:45 p.m.
Hash
1bf162fd0451d068ce0bbd35347ad0fdb49d06e4
Parent
1249423c9c0f13d01fc3b653b1e68e09a29c26e8
Modified files
install.sh
sway/config
termite.conf

install.sh

7 additions and 2 deletions.

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
6
6
# Firefox:
7
7
sudo pacman -S --noconfirm firefox
8
-
# Uncomment next line for Dutch firefox translations.
+
8
# Uncomment next line for Dutch firefox translations.
9
9
sudo pacman -S --noconfirm firefox-i18n-nl
10
-
+
10
# I've ditched Firefox in favor of Chromium, because Chromium doesn't vomit when confronted with XWayland.
+
11
sudo pacman -S --noconfirm chromium
+
12
+
13
# Sound handling (Don't forget to unmute using alsamixer!)
+
14
sudo pacman -S --noconfirm alsa-utils pulseaudio pulseaudio-jack pulseaudio-bluetooth
+
15
11
16
# Comment next line to stop the usual window manager from being installed.
12
17
sudo pacman -S --noconfirm sway
13
18
14
19
# To easily make use of the AUR, I'll first install Pacaur, which needs some
15
20
# special treatment up front:
16
21
cd ~/Downloads
17
22
wget https://aur.archlinux.org/cgit/aur.git/snapshot/pacaur.tar.gz
18
23
tar -x -f pacaur.tar.gz
19
24
cd pacaur
20
25
makepkg -sri --noconfirm
21
26
cd ..
22
27
rm -r pacaur
23
28
cd ~
24
29
25
30
# Making a directory in which to store all repositories. It's basically a
26
31
# repository for repositories =3
27
32
mkdir Repositories
28
33
29
34
# Making some common aliases for some pieces of software
30
35
alias vi nvim
31
36
alias vim nvim
32
37
33
38
# Some Python dependencies that need to be installed
34
39
pip install paramiko
35
40
36
41
# Collecting software from the AUR:
37
42
pacaur -S vim-youcompleteme-git
38
43
pacaur -S clojure leiningen  # Clojure's 'project manager' thingy + Clojure
39
44

sway/config

5 additions and 3 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
-
# Your preferred application launcher
+
17
# Your preferred application launcher
18
18
set $menu dmenu_run
19
-
+
19
20
20
### Output configuration
21
21
#
22
22
# Default wallpaper (more resolutions are available in /usr/share/sway/)
23
23
output * bg /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill
24
-
#
+
24
#
25
25
# Example configuration:
26
26
#
27
27
#   output HDMI-A-1 resolution 1920x1080 position 1920,0
28
28
#
29
29
# You can get the names of your outputs by running: swaymsg -t get_outputs
30
30
31
31
### Input configuration
32
32
#
33
33
# Example configuration:
34
34
#
35
35
#   input "2:14:SynPS/2_Synaptics_TouchPad" {
36
36
#       dwt enabled
37
37
#       tap enabled
38
38
#       natural_scroll enabled
39
39
#       middle_emulation enabled
40
40
#   }
41
41
#
42
42
# You can get the names of your inputs by running: swaymsg -t get_inputs
43
43
# The escape symbol "\" has to be removed.
44
44
# Read `man 5 sway-input` for more information about this section.
45
45
46
46
### Key bindings
47
47
#
48
48
# Basics:
49
49
#
50
50
    # start a terminal
51
51
    bindsym $mod+Return exec $term
52
52
53
53
    # kill focused window
54
54
    bindsym $mod+Shift+q kill
55
55
56
56
    # start your launcher
57
57
    bindsym $mod+d exec $menu
58
58
59
59
    # Drag floating windows by holding down $mod and left mouse button.
60
60
    # Resize them with right mouse button + $mod.
61
61
    # Despite the name, also works for non-floating windows.
62
62
    # Change normal to inverse to use left mouse button for resizing and right
63
63
    # mouse button for dragging.
64
64
    floating_modifier $mod normal
65
65
66
66
    # reload the configuration file
67
67
    bindsym $mod+Shift+c reload
68
68
69
69
    # exit sway (logs you out of your wayland session)
70
70
    bindsym $mod+Shift+e exit
71
71
#
72
72
# Moving around:
73
73
#
74
74
    # Move your focus around
75
75
    bindsym $mod+$left focus left
76
76
    bindsym $mod+$down focus down
77
77
    bindsym $mod+$up focus up
78
78
    bindsym $mod+$right focus right
79
79
    # or use $mod+[up|down|left|right]
80
80
    bindsym $mod+Left focus left
81
81
    bindsym $mod+Down focus down
82
82
    bindsym $mod+Up focus up
83
83
    bindsym $mod+Right focus right
84
84
85
85
    # _move_ the focused window with the same, but add Shift
86
86
    bindsym $mod+Shift+$left move left
87
87
    bindsym $mod+Shift+$down move down
88
88
    bindsym $mod+Shift+$up move up
89
89
    bindsym $mod+Shift+$right move right
90
90
    # ditto, with arrow keys
91
91
    bindsym $mod+Shift+Left move left
92
92
    bindsym $mod+Shift+Down move down
93
93
    bindsym $mod+Shift+Up move up
94
94
    bindsym $mod+Shift+Right move right
95
95
#
96
96
# Workspaces:
97
97
#
98
98
    # switch to workspace
99
99
    bindsym $mod+1 workspace 1
100
100
    bindsym $mod+2 workspace 2
101
101
    bindsym $mod+3 workspace 3
102
102
    bindsym $mod+4 workspace 4
103
103
    bindsym $mod+5 workspace 5
104
104
    bindsym $mod+6 workspace 6
105
105
    bindsym $mod+7 workspace 7
106
106
    bindsym $mod+8 workspace 8
107
107
    bindsym $mod+9 workspace 9
108
108
    bindsym $mod+0 workspace 10
109
109
    # move focused container to workspace
110
110
    bindsym $mod+Shift+1 move container to workspace 1
111
111
    bindsym $mod+Shift+2 move container to workspace 2
112
112
    bindsym $mod+Shift+3 move container to workspace 3
113
113
    bindsym $mod+Shift+4 move container to workspace 4
114
114
    bindsym $mod+Shift+5 move container to workspace 5
115
115
    bindsym $mod+Shift+6 move container to workspace 6
116
116
    bindsym $mod+Shift+7 move container to workspace 7
117
117
    bindsym $mod+Shift+8 move container to workspace 8
118
118
    bindsym $mod+Shift+9 move container to workspace 9
119
119
    bindsym $mod+Shift+0 move container to workspace 10
120
120
    # Note: workspaces can have any name you want, not just numbers.
121
121
    # We just use 1-10 as the default.
122
122
#
123
123
# Layout stuff:
124
124
#
125
125
    # You can "split" the current object of your focus with
126
126
    # $mod+b or $mod+v, for horizontal and vertical splits
127
127
    # respectively.
128
128
    bindsym $mod+b splith
129
129
    bindsym $mod+v splitv
130
130
131
131
    # Switch the current container between different layout styles
132
132
    bindsym $mod+s layout stacking
133
133
    bindsym $mod+w layout tabbed
134
134
    bindsym $mod+e layout toggle split
135
135
136
136
    # Make the current focus fullscreen
137
137
    bindsym $mod+f fullscreen
138
138
139
139
    # Toggle the current focus between tiling and floating mode
140
140
    bindsym $mod+Shift+space floating toggle
141
141
142
142
    # Swap focus between the tiling area and the floating area
143
143
    bindsym $mod+space focus mode_toggle
144
144
145
145
    # move focus to the parent container
146
146
    bindsym $mod+a focus parent
147
147
#
148
148
# Scratchpad:
149
149
#
150
150
    # Sway has a "scratchpad", which is a bag of holding for windows.
151
151
    # You can send windows there and get them back later.
152
152
153
153
    # Move the currently focused window to the scratchpad
154
154
    bindsym $mod+Shift+minus move scratchpad
155
155
156
156
    # Show the next scratchpad window or hide the focused scratchpad window.
157
157
    # If there are multiple scratchpad windows, this command cycles through them.
158
158
    bindsym $mod+minus scratchpad show
159
159
#
160
160
# Resizing containers:
161
161
#
162
162
mode "resize" {
163
163
    # left will shrink the containers width
164
164
    # right will grow the containers width
165
165
    # up will shrink the containers height
166
166
    # down will grow the containers height
167
167
    bindsym $left resize shrink width 10 px or 10 ppt
168
168
    bindsym $down resize grow height 10 px or 10 ppt
169
169
    bindsym $up resize shrink height 10 px or 10 ppt
170
170
    bindsym $right resize grow width 10 px or 10 ppt
171
171
172
172
    # ditto, with arrow keys
173
173
    bindsym Left resize shrink width 10 px or 10 ppt
174
174
    bindsym Down resize grow height 10 px or 10 ppt
175
175
    bindsym Up resize shrink height 10 px or 10 ppt
176
176
    bindsym Right resize grow width 10 px or 10 ppt
177
177
178
178
    # return to default mode
179
179
    bindsym Return mode "default"
180
180
    bindsym Escape mode "default"
181
181
}
182
182
bindsym $mod+r mode "resize"
183
183
184
184
#
185
185
# Status Bar:
186
186
#
187
187
# Read `man 5 sway-bar` for more information about this section.
188
188
bar {
189
189
    position top
190
190
    colors {
191
191
        statusline #ffffff
192
192
        background #323232
193
193
        inactive_workspace #32323200 #32323200 #5c5c5c
194
194
    }
195
195
}
196
196
197
197
# You may want this:
198
198
#
199
199
# include ~/.config/sway/conf.d/*
200
200
#
201
201
# Protip:
202
202
#
203
203
# include ~/.config/sway/`hostname`/*
204
204
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') +1%
+
205
# Makes my FN buttons work properly.
+
206
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') +1%
205
207
bindsym XF86AudioLowerVolume exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') -1%
206
208
bindsym XF86AudioToggle exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle
207
209
bindsym XF86MonBrightnessDown exec light -U 1
208
210
bindsym XF86MonBrightnessUp exec light -A 1

termite.conf

4 additions and 0 deletions.

View changes Hide changes
+
1
font = Monospace 9
+
2
font = Terminus(TTF) 8
+
3
font = Droid Sans Mono 8
+
4
font = Droid Sans Mono 8