rc

Finish current Waybar config

Author
Maarten Vangeneugden
Date
July 5, 2019, 12:07 a.m.
Hash
d5e71cc4f242f4dbddbe230e962410f120c400c6
Parent
7ef2064d11ac09fc5c1bfaac93fa9aac0fa1a311
Modified files
.zshrc
i3/config

.zshrc

1 addition 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+'/.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="pacaur -S"  # Install a package.
30
30
alias delete="pacaur -Rscu"  # Delete a package and orphan dependencies/packages.
31
31
# Opens the GNU Emacs client directly in the terminal like with Vim
32
32
alias em="emacsclient -nw -s gnuemacs"
33
33
34
34
# Set editor correctly
35
35
export EDITOR="emacsclient -nw -s gnuemacs"
36
36
37
37
# Settings that allow for my SSH keys to work through all terminals.
38
38
# (Verbatim copied from Arch Wiki)
39
39
if ! pgrep -u $USER ssh-agent > /dev/null; then
40
40
    ssh-agent > ~/.ssh-agent-thing
41
41
fi
42
42
if [[ "$SSH_AGENT_PID" == "" ]]; then
43
43
    eval $(<~/.ssh-agent-thing)
44
44
fi
45
45
ssh-add -l >/dev/null || alias ssh='ssh-add -l >/dev/null || ssh-add && unalias ssh; ssh'
46
46

i3/config

19 additions and 8 deletions.

View changes Hide changes
1
1
set $mod Mod4
2
2
# Home row direction keys, like vim
3
3
set $left h
4
4
set $down j
5
5
set $up k
6
6
set $right l
7
7
# Your preferred terminal emulator
8
8
set $term urxvt
9
9
# Your preferred application launcher
10
10
set $menu rofi -show run 
11
11
12
12
13
13
# start a terminal
14
14
bindsym $mod+Return exec $term
15
15
16
16
# kill focused window
17
17
bindsym $mod+Shift+q kill
18
18
19
19
# start your launcher
20
20
bindsym $mod+d exec $menu
21
21
22
22
# Start GNU Emacs
23
23
bindsym $mod+m exec emacsclient -nc -s gnuemacs
24
24
25
25
# Mouse+$mod to drag floating windows
26
26
floating_modifier $mod
27
27
28
28
# Lock screen
29
29
bindsym $mod+i exec i3lock-wrapper
30
30
31
31
# reload the configuration file
32
32
bindsym $mod+Shift+c reload
33
33
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
34
34
bindsym $mod+Shift+r restart
35
35
# exit i3 (logs you out of your X session)
36
36
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'"
37
37
38
38
# SWAY: Managing outputs
39
-
#output eDP-1 scale 2
40
-
#output eDP-1 pos 0 0 res 3840x2160
41
-
output eDP-1 pos 0 0 res 1920x1080
42
-
+
39
output eDP-1 {
+
40
    # My current system doesn't support HiDPI. If I get such a system in the
+
41
    # future, the following lines can "activate" that.
+
42
    #scale 2
+
43
    #pos 0 0 res 3840x2160
+
44
    pos 0 0 res 1920x1080
+
45
    # Only thing that this lacks compared to Feh is that this can't deal with
+
46
    # directories, oh well.
+
47
    #bg ~/.wallpapers/* stretch
+
48
    bg ~/.wallpapers/generalp.png stretch
+
49
}
+
50
43
51
input 1:1:AT_Translated_Set_2_keyboard {
44
52
    xkb_layout us
45
53
    xkb_options caps:swapescape
+
54
    xkb_variant altgr-intl
+
55
    xkb_options caps:swapescape
46
56
    }
47
57
#
48
58
# Moving around:
49
59
#
50
60
    # Move your focus around
51
61
    bindsym $mod+$left focus left
52
62
    bindsym $mod+$down focus down
53
63
    bindsym $mod+$up focus up
54
64
    bindsym $mod+$right focus right
55
65
    # or use $mod+[up|down|left|right]
56
66
    bindsym $mod+Left focus left
57
67
    bindsym $mod+Down focus down
58
68
    bindsym $mod+Up focus up
59
69
    bindsym $mod+Right focus right
60
70
61
71
    # _move_ the focused window with the same, but add Shift
62
72
    bindsym $mod+Shift+$left move left
63
73
    bindsym $mod+Shift+$down move down
64
74
    bindsym $mod+Shift+$up move up
65
75
    bindsym $mod+Shift+$right move right
66
76
    # ditto, with arrow keys
67
77
    bindsym $mod+Shift+Left move left
68
78
    bindsym $mod+Shift+Down move down
69
79
    bindsym $mod+Shift+Up move up
70
80
    bindsym $mod+Shift+Right move right
71
81
#
72
82
# Workspaces:
73
83
#
74
84
    # switch to workspace
75
85
    bindsym $mod+1 workspace 1
76
86
    bindsym $mod+2 workspace 2
77
87
    bindsym $mod+3 workspace 3
78
88
    bindsym $mod+4 workspace 4
79
89
    bindsym $mod+5 workspace 5
80
90
    bindsym $mod+6 workspace 6
81
91
    bindsym $mod+7 workspace 7
82
92
    bindsym $mod+8 workspace 8
83
93
    bindsym $mod+9 workspace 9
84
94
    bindsym $mod+0 workspace 10
85
95
    # move focused container to workspace
86
96
    bindsym $mod+Shift+1 move container to workspace 1
87
97
    bindsym $mod+Shift+2 move container to workspace 2
88
98
    bindsym $mod+Shift+3 move container to workspace 3
89
99
    bindsym $mod+Shift+4 move container to workspace 4
90
100
    bindsym $mod+Shift+5 move container to workspace 5
91
101
    bindsym $mod+Shift+6 move container to workspace 6
92
102
    bindsym $mod+Shift+7 move container to workspace 7
93
103
    bindsym $mod+Shift+8 move container to workspace 8
94
104
    bindsym $mod+Shift+9 move container to workspace 9
95
105
    bindsym $mod+Shift+0 move container to workspace 10
96
106
    # Note: workspaces can have any name you want, not just numbers.
97
107
    # We just use 1-10 as the default.
98
108
#
99
109
# Layout stuff:
100
110
#
101
111
    # You can "split" the current object of your focus with
102
112
    # $mod+b or $mod+v, for horizontal and vertical splits
103
113
    # respectively.
104
114
    bindsym $mod+b split h
105
115
    bindsym $mod+v split v
106
116
107
117
    # Switch the current container between different layout styles
108
118
    bindsym $mod+s layout stacking
109
119
    bindsym $mod+w layout tabbed
110
120
    bindsym $mod+e layout toggle split
111
121
112
122
    # Make the current focus fullscreen
113
123
    bindsym $mod+f fullscreen toggle
114
124
115
125
    # Toggle the current focus between tiling and floating mode
116
126
    bindsym $mod+Shift+space floating toggle
117
127
118
128
    # Swap focus between the tiling area and the floating area
119
129
    bindsym $mod+space focus mode_toggle
120
130
121
131
    # move focus to the parent container
122
132
    bindsym $mod+a focus parent
123
133
124
134
# I don't use scratchpad, so they're commented out
125
135
#bindsym $mod+Shift+minus move scratchpad
126
136
#bindsym $mod+minus scratchpad show
127
137
128
138
# Resizing containers:
129
139
#
130
140
mode "resize" {
131
141
    # left will shrink the containers width
132
142
    # right will grow the containers width
133
143
    # up will shrink the containers height
134
144
    # down will grow the containers height
135
145
    bindsym $left resize shrink width 10 px or 10 ppt
136
146
    bindsym $down resize grow height 10 px or 10 ppt
137
147
    bindsym $up resize shrink height 10 px or 10 ppt
138
148
    bindsym $right resize grow width 10 px or 10 ppt
139
149
140
150
    # ditto, with arrow keys
141
151
    bindsym Left resize shrink width 10 px or 10 ppt
142
152
    bindsym Down resize grow height 10 px or 10 ppt
143
153
    bindsym Up resize shrink height 10 px or 10 ppt
144
154
    bindsym Right resize grow width 10 px or 10 ppt
145
155
146
156
    # return to default mode
147
157
    bindsym Return mode "default"
148
158
    bindsym Escape mode "default"
149
159
}
150
160
bindsym $mod+r mode "resize"
151
161
152
162
# --recursive allows subdirectories to contain wallpapers as well, which is nice
153
163
# if you want to organize.
154
164
# --randomize chooses a different wallpaper for each screen (and of course,
155
165
# randomizes during startup)
156
166
# --bg-scale scales the wallpaper to fit the screen, so any 16:9 wallpaper is
157
167
# scaled to fit, instead of staying oversized.
158
168
exec_always feh --recursive --randomize --bg-scale ~/.wallpapers/* 
159
-
exec compton -b
+
169
exec compton -b
160
170
161
171
bar {
162
172
    status_command i3status
163
-
    font pango:Ubunto 10
+
173
    #status_command i3status
+
174
    font pango:Ubunto 10
164
175
    tray_padding 5
165
176
    colors {
166
177
        background #444444
167
178
        focused_workspace #F98C0E #F98C0E #333333
168
179
        active_workspace #19ea12 #19ea12 #FFFFFF
169
180
        inactive_workspace #232323 #111111 #888888
170
181
        urgent_workspace #D50000 #D50000 #FFFFFF
171
182
    }
172
183
}
173
184
174
185
175
186
# Makes my FN buttons work properly.
176
187
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ unmute
177
188
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- unmute
178
189
#bindsym XF86AudioToggle exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle
179
190
bindsym XF86AudioMute exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle
180
191
181
192
bindsym XF86MonBrightnessDown exec light -U 5
182
-
bindsym XF86MonBrightnessUp exec light -A 5
183
-
bindsym Print exec scrot  # Printscreen button
+
193
bindsym XF86MonBrightnessUp exec light -A 1
+
194
bindsym Print exec scrot  # Printscreen button
184
195
bindsym $mod+Print exec scrot -s  # scrot, but click for window, or drag for rectangle screenshot.
185
196
186
197
187
198
# Font settings
188
199
font pango:Ubuntu Regular 11
189
200
190
201
# Border settings
191
202
hide_edge_borders smart
192
203
default_border normal
193
204
194
205
# Color settings
195
206
196
207
client.focused          #F98C0E #F98C0E #ffffff #F98C0E #F98C0E
197
208
client.focused_inactive #f9be7a #f9be7a #FFFFFF #f9be7a #f9be7a
198
209
client.unfocused        #444444 #444444 #FFFFFF #444444 #444444
199
210
client.urgent           #D50000 #D50000 #ffffff #D50000 #D50000
200
211
#client.placeholder
201
212
202
213
# Stops the mouse defining what the active window is.
203
214
focus_follows_mouse no
204
215
205
216
# i3-gaps configuration
206
217
#
207
218
# i3-gaps can only work properly if title bars are completely disabled, which the
208
219
# next line is responsible for.
209
220
#for_window [class="^.*"] border pixel 5
210
221
211
222
#gaps inner 15
212
223
#gaps outer 5
213
224
# smart_gaps disables gaps if there is only 1 container on the workspace.
214
225
#smart_gaps on
215
226
# smart_borders does the same thing. If set to "on", it will always disable the
216
227
# border if it's the only container on the workspace. If set to "no-gaps", it
217
228
# only disables the border if the gap size to the edge of the screen is 0.
218
229
#smart_borders no_gaps