rc

i3/config: Added the floating_modifier, and increased sound changes from +/-1 to +/-5

install.sh: Added another package to install

Author
Maarten 'Vngngdn' Vangeneugden
Date
Dec. 3, 2016, 11:07 a.m.
Hash
751c88e431c3ba09c299874f58a08a2ba3f78583
Parent
8222346b0438562fc634987fb8f83097b0af478f
Modified files
i3/config
install.sh

i3/config

9 additions and 13 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 st
17
-
# Your preferred application launcher
+
17
# Your preferred application launcher
18
18
set $menu rofi -show run -width 2560 -fg "#B0E670" -bg "#14161F" -hlfg "#14161F" -hlbg "#B0E670" -bc "#14161F" -location 0 -lines 19 -bw 0 -font "MonacoB 16" -padding 400 -separator-style none -opacity 80
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
    # Drag floating windows by holding down $mod and left mouse button.
61
-
    # Resize them with right mouse button + $mod.
62
-
    # Despite the name, also works for non-floating windows.
63
-
    # Change normal to inverse to use left mouse button for resizing and right
64
-
    # mouse button for dragging.
65
-
    #floating_modifier $mod normal
66
-
+
61
	floating_modifier $mod
+
62
67
63
    # reload the configuration file
68
64
    bindsym $mod+Shift+c reload
69
65
    # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
70
66
    bindsym $mod+Shift+r restart
71
67
# exit i3 (logs you out of your X session)
72
68
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'"
73
69
#
74
70
# Moving around:
75
71
#
76
72
    # Move your focus around
77
73
    bindsym $mod+$left focus left
78
74
    bindsym $mod+$down focus down
79
75
    bindsym $mod+$up focus up
80
76
    bindsym $mod+$right focus right
81
77
    # or use $mod+[up|down|left|right]
82
78
    bindsym $mod+Left focus left
83
79
    bindsym $mod+Down focus down
84
80
    bindsym $mod+Up focus up
85
81
    bindsym $mod+Right focus right
86
82
87
83
    # _move_ the focused window with the same, but add Shift
88
84
    bindsym $mod+Shift+$left move left
89
85
    bindsym $mod+Shift+$down move down
90
86
    bindsym $mod+Shift+$up move up
91
87
    bindsym $mod+Shift+$right move right
92
88
    # ditto, with arrow keys
93
89
    bindsym $mod+Shift+Left move left
94
90
    bindsym $mod+Shift+Down move down
95
91
    bindsym $mod+Shift+Up move up
96
92
    bindsym $mod+Shift+Right move right
97
93
#
98
94
# Workspaces:
99
95
#
100
96
    # switch to workspace
101
97
    bindsym $mod+1 workspace 1: COMPN
102
98
    bindsym $mod+2 workspace 2: Philosophy
103
99
    bindsym $mod+3 workspace 3: Physics
104
100
    bindsym $mod+4 workspace 4: OOP
105
101
    bindsym $mod+5 workspace 5: Math
106
102
    bindsym $mod+6 workspace 6: Leisure
107
103
    bindsym $mod+7 workspace 7
108
104
    bindsym $mod+8 workspace 8
109
105
    bindsym $mod+9 workspace 9
110
106
    bindsym $mod+0 workspace 10
111
107
    # move focused container to workspace
112
108
    bindsym $mod+Shift+1 move container to workspace 1
113
109
    bindsym $mod+Shift+2 move container to workspace 2
114
110
    bindsym $mod+Shift+3 move container to workspace 3
115
111
    bindsym $mod+Shift+4 move container to workspace 4
116
112
    bindsym $mod+Shift+5 move container to workspace 5
117
113
    bindsym $mod+Shift+6 move container to workspace 6
118
114
    bindsym $mod+Shift+7 move container to workspace 7
119
115
    bindsym $mod+Shift+8 move container to workspace 8
120
116
    bindsym $mod+Shift+9 move container to workspace 9
121
117
    bindsym $mod+Shift+0 move container to workspace 10
122
118
    # Note: workspaces can have any name you want, not just numbers.
123
119
    # We just use 1-10 as the default.
124
120
#
125
121
# Layout stuff:
126
122
#
127
123
    # You can "split" the current object of your focus with
128
124
    # $mod+b or $mod+v, for horizontal and vertical splits
129
125
    # respectively.
130
126
    bindsym $mod+b splith
131
-
    bindsym $mod+v splitv
132
-
+
127
    bindsym $mod+v split v
+
128
133
129
    # Switch the current container between different layout styles
134
130
    bindsym $mod+s layout stacking
135
131
    bindsym $mod+w layout tabbed
136
132
    bindsym $mod+e layout toggle split
137
133
138
134
    # Make the current focus fullscreen
139
135
    bindsym $mod+f fullscreen
140
-
+
136
141
137
    # Toggle the current focus between tiling and floating mode
142
138
    bindsym $mod+Shift+space floating toggle
143
139
144
140
    # Swap focus between the tiling area and the floating area
145
141
    bindsym $mod+space focus mode_toggle
146
142
147
143
    # move focus to the parent container
148
144
    bindsym $mod+a focus parent
149
145
#
150
146
# Scratchpad:
151
147
#
152
148
    # Sway has a "scratchpad", which is a bag of holding for windows.
153
149
    # You can send windows there and get them back later.
154
150
155
151
    # Move the currently focused window to the scratchpad
156
152
    bindsym $mod+Shift+minus move scratchpad
157
153
158
154
    # Show the next scratchpad window or hide the focused scratchpad window.
159
155
    # If there are multiple scratchpad windows, this command cycles through them.
160
156
    bindsym $mod+minus scratchpad show
161
157
#
162
158
# Resizing containers:
163
159
#
164
160
mode "resize" {
165
161
    # left will shrink the containers width
166
162
    # right will grow the containers width
167
163
    # up will shrink the containers height
168
164
    # down will grow the containers height
169
165
    bindsym $left resize shrink width 10 px or 10 ppt
170
166
    bindsym $down resize grow height 10 px or 10 ppt
171
167
    bindsym $up resize shrink height 10 px or 10 ppt
172
168
    bindsym $right resize grow width 10 px or 10 ppt
173
169
174
170
    # ditto, with arrow keys
175
171
    bindsym Left resize shrink width 10 px or 10 ppt
176
172
    bindsym Down resize grow height 10 px or 10 ppt
177
173
    bindsym Up resize shrink height 10 px or 10 ppt
178
174
    bindsym Right resize grow width 10 px or 10 ppt
179
175
180
176
    # return to default mode
181
177
    bindsym Return mode "default"
182
178
    bindsym Escape mode "default"
183
179
}
184
180
bindsym $mod+r mode "resize"
185
181
186
182
exec_always feh --bg-scale feh --bg-scale ~/.wallpapers/Abstract\ with\ lime\ green\ and\ blue\ accents.jpg  # Background using Feh
187
183
exec yabar  # Starts the status bar
188
184
189
185
# Makes my FN buttons work properly.
190
186
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ unmute
191
187
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- unmute
192
188
bindsym XF86AudioToggle exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle
193
189
194
190
bindsym XF86MonBrightnessDown exec light -U 1
195
-
bindsym XF86MonBrightnessUp exec light -A 1
196
-
bindsym Print exec scrot  # Printscreen button
+
191
bindsym XF86MonBrightnessUp exec light -A 5
+
192
bindsym Print exec scrot  # Printscreen button
197
193
bindsym $mod+Print exec scrot -s  # scrot, but click for window, or drag for rectangle screenshot.

install.sh

3 additions and 0 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
# 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
# Firefox:
+
10
# Installing the Noto fonts:
+
11
sudo pacman -S --noconfirm noto-fonts noto-fonts-emoji
+
12
# Firefox:
10
13
#sudo pacman -S --noconfirm firefox
11
14
# Uncomment next line for Dutch firefox translations.
12
15
#sudo pacman -S --noconfirm firefox-i18n-nl
13
16
# I've ditched Firefox in favor of Chromium, because Chromium doesn't vomit when confronted with XWayland.
14
17
sudo pacman -S --noconfirm chromium
15
18
16
19
# Sound handling (Don't forget to unmute using alsamixer!)
17
20
sudo pacman -S --noconfirm alsa-utils pulseaudio pulseaudio-jack pulseaudio-bluetooth
18
21
19
22
# To easily make use of the AUR, I'll first install Pacaur, which needs some
20
23
# special treatment up front:
21
24
cd ~/Downloads
22
25
wget https://aur.archlinux.org/cgit/aur.git/snapshot/pacaur.tar.gz
23
26
tar -x -f pacaur.tar.gz
24
27
cd pacaur
25
28
makepkg -sri --noconfirm
26
29
cd ..
27
30
rm -r pacaur
28
31
cd ~
29
32
30
33
# Making a directory in which to store all repositories. It's basically a
31
34
# repository for repositories =3
32
35
mkdir Repositories
33
36
34
37
# Making some common aliases for some pieces of software
35
38
alias vi nvim
36
39
alias vim nvim
37
40
38
41
# Some Python dependencies that need to be installed
39
42
pip install paramiko
40
43
41
44
# Collecting software from the AUR:
42
45
pacaur -S vim-youcompleteme-git
43
46
pacaur -S clojure leiningen  # Clojure's 'project manager' thingy + Clojure
44
47
# Next line installs all required software for the desktop environment.
45
48
# Yabar-git instead of Yabar, because that has a battery block.
46
49
pacaur -S i3-gaps feh compton yabar-git rofi
47
50
48
51
# Now, assuming I'm using the my standard setup for Yabar, I need the JSON
49
52
# parser to correctly output my workspace name:
50
53
pacaur -S --noconfirm jq
51
54
52
55
# Uncomment when there is a driver for the Validity VFS495 138a:003f figerprint
53
56
# reader, and still working on that gorgeous laptop:
54
57
#pacaur -S --noconfirm fprintd
55
58