Added a new line to .zshrc to permanently add the data. Added code to sway that allows my FN keys to work properly.
- Author
- Maarten 'Vngngdn' Vangeneugden
- Date
- Nov. 13, 2016, 2:11 a.m.
- Hash
- 1249423c9c0f13d01fc3b653b1e68e09a29c26e8
- Parent
- 67bd48acdd2dc4bde7422800900153ca2b9f7bcc
- Modified files
- .zshrc
- sway/config
.zshrc ¶
2 additions and 1 deletion.
View changes Hide changes
1 |
1 |
HISTFILE=~/.histfile |
2 |
2 |
HISTSIZE=1000 |
3 |
3 |
SAVEHIST=1000 |
4 |
4 |
bindkey -e |
5 |
5 |
# End of lines configured by zsh-newuser-install |
6 |
6 |
# The following lines were added by compinstall |
7 |
7 |
zstyle :compinstall filename '/home/maarten/.zshrc' |
8 |
- | |
+ |
8 |
|
9 |
9 |
autoload -Uz compinit |
10 |
10 |
compinit |
11 |
11 |
# End of lines added by compinstall |
12 |
12 |
|
13 |
13 |
#By myself; these will explicitely tell ZSH to autoload this file. |
14 |
14 |
autoload -U promptinit |
15 |
15 |
promptinit |
16 |
16 |
|
17 |
17 |
#This is for colors: |
18 |
18 |
autoload -U colors && colors |
19 |
19 |
|
20 |
20 |
#This is for the Powerline font: |
21 |
21 |
# Eum, this doesn't work. commented out until further notice. |
22 |
22 |
#. /usr/share/zsh/site-contrib-powerline.zsh |
23 |
23 |
|
24 |
24 |
# Ignore useless files and directories: |
25 |
25 |
zstyle ':completion:*' ignored-patterns '*?.pyc' '__pycache__' '*?.class' 'Cargo.lock' '*.pdf' |
26 |
26 |
|
27 |
27 |
# A list of aliases: |
28 |
28 |
|
29 |
29 |
alias install="sudo pacman -S" # Install a package. |
30 |
30 |
alias delete="sudo pacman -Rscu" # Delete a package and orphan dependencies/packages. |
31 |
31 |
|
32 |
32 |
# Settings that allow for my SSH keys to work through all terminals. |
33 |
33 |
# (Verbatim copied from Arch Wiki) |
34 |
34 |
if ! pgrep -u $USER ssh-agent > /dev/null; then |
35 |
35 |
ssh-agent > ~/.ssh-agent-thing |
36 |
36 |
fi |
37 |
37 |
if [[ "$SSH_AGENT_PID" == "" ]]; then |
38 |
38 |
eval $(<~/.ssh-agent-thing) |
39 |
39 |
fi |
40 |
40 |
|
+ |
41 |
sway/config ¶
5 additions and 0 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 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 |
bindsym XF86AudioLowerVolume exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') -1% |
+ |
206 |
bindsym XF86AudioToggle exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle |
+ |
207 |
bindsym XF86MonBrightnessDown exec light -U 1 |
+ |
208 |
bindsym XF86MonBrightnessUp exec light -A 1 |
+ |
209 |
bindsym XF86MonBrightnessUp exec light -A 1 |