-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathARCH-RICE
240 lines (209 loc) · 6.96 KB
/
ARCH-RICE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# RICE SYSTEM
======================================================================================
# APPS
#
* sudo pacman -s feh rxvt-unicode qutebrowser ranger zathura
======================================================================================
# IMAGES
#
* mkdir ~/Pictures/Lock
* mkdir ~/Pictures/Wallpapers
* get locking and main wallpaper and lock png
======================================================================================
# VIM
#
* yay -S vim-plug
* vi ~/.vimrc
* set backspace=2
* set number
* syntax on
*
* call plug#begin()
* Plug 'dylanaraps/wal'
* call plug#end()
*
* colorscheme wal
* open vim
* :PlugInstall
=========================================
# SCREENSAVER
#
* sudo pacman -S xscreensaver
* vi ~/.xinitrc (add before exec your wm)
* xscreensaver -no-splash &
======================================================================================
# NEOFETCH
#
* sudo pacman -S neofetch
* vi ~/.bash_profile
* [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
* vi ~/.bashrc
* neofetch
======================================================================================
# AUR PACKAGE MANAGEMENT
#
* sudo pacman -S git
* cd /tmp
* git clone https://aur.archlinux.org/yay.git
* cd yay
* makepkg -si
* sudo vi /etc/pacman.conf
* Color
* TotalDownload
* CheckSpace
*
* [archlinuxfr]
* SigLevel = Never
* Server = http://repo.archlinux.fr/$arch
* sudo pacman -Syu
======================================================================================
# CONFIGURE i3
#
* font pango:Overpass Regular 10
* # bindsym $mod+d exec dmenu_run
* bindsym $mod+d exec --no-startup-id rofi -show run
* comment out bar{} section
* # window colors
* set_from_resource $bg-color i3wm.color4 #2f343f
* set_from_resource $inactive-bg-color i3wm.color1 #2f343f
* set_from_resource $text-color i3wm.color0 #f3f4f5
* set_from_resource $inactive-text-color i3wm.color7 #676E7D
* set_from_resource $urgent-bg-color i3wm.color3 #E53935
* # class border background text indicator child_border
* client.focused $bg-color $bg-color $text-color #00ff00
* client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
* client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00
* client.urgent $urgent-bg-color $urgent-bg-color $text-color #00ff00
* # apply Xresources
* exec_always --no-startup-id xrdb ~/.Xresources
* # apply the last colorscheme generated without changing the background by using -n
* exec_always --no-startup-id wal -R -n
* # audio controls
* bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ unmute
* bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- unmute
* bindsym XF86AudioMute exec amixer -q set Master mute
* # screen brightness controls (for laptop)
* bindsym XF86MonBrightnessUp exec xbacklight -inc 20
* bindsym XF86MonBrightnessDown exec xbacklight -dec 20
* # touchpad controls (for laptop)
* bindsym XF86TouchpadToggle ~/.config/i3/touchpadtoggle.sh
* # media player controls
* bindsym XF86AudioPlay exec playerctl play
* bindsym XF86AudioPause exec playerctl pause
* bindsym XF86AudioNext exec playerctl next
* bindsym XF86AudioPrev exec playerctl previous
* # other binding
* bindsym $mod+Shift+x exec ~/.local/bin/i3locker
* bindsym Print exec scrot -e 'mv $f ~/Pictures/Screenshots'
* # apps
* bindsym $mod+mod1+r exec urxvt -e ranger
* bindsym $mod+mod1+b exec qutebrowser
* bindsym $mod+mod1+i exec ~/.local/bin/fv1
* bindsym $mod+mod1+o exec ~/.local/bin/fv2
* bindsym $mod+mod1+p exec ~/.local/bin/fv3
* # executable
* exec_always --no-startup-id feh --bg-fill ~/Pictures/Wallpapers/wall.jpg
* # Execute polybar on launch. Script kills current ones on i3 refresh, otherwise they duplicate
* exec_always --no-startup-id $HOME/.config/polybar/launch.sh
* # exec --no-startup-id compton -f
======================================================================================
# I3LOCK
#
* sudo pacman -S i3lock
* vi $HOME/.local/bin/i3locker
* #!/bin/bash
* icon="$HOME/Pictures/Lock/ufp.png"
* wall="$HOME/Pictures/Lock/wall.jpg"
* convert "$wall" "$icon" -gravity center -composite "$HOME/Pictures/Lock/lock.png"
* i3lock -i "$HOME/Pictures/Lock/lock.png"
* chmod +x $HOME/.local/bin/i3locker
* vi $HOME/.local/services/i3locker.service
* [Unit]
* Description=Starts i3lock at sleep time
* Before=sleep.target
*
* [Service]
* User=username
* Type=forking
* Environment=DISPLAY=:0
* ExecStart=/home/username/.local/bin/i3locker
*
* [Install]
* WantedBy=sleep.target
* cd /usr/lib/systemd/system
* ln /home/username/.local/services/i3locker.service /usr/lib/systemd/system/username.i3locker.service
* sudo systemctl enable username.i3locker
* sudo systemctl daemon-reload
======================================================================================
# POLYBAR
#
* yay -S polybar
* install -Dm644 /usr/share/doc/polybar/config $HOME/.config/polybar/config
* polybar example
* vi $HOME/.config/polybar/launch.sh
* #!/bin/bash
*
* killall -q polybar
* while pgrep -x polybar >/dev/null; do sleep 1; done
* polybar mybar -r
* echo "Bars launched..."
* chmod +x $HOME/.config/polybar/launch.sh
======================================================================================
# PYWAL
#
* sudo pacman -S python-pywal
* vi $HOME/.bashrc
* export GTK_THEME=wal
======================================================================================
# GTK
#
* yay -S oomox
* mkdir .themes
* cd ~/.themes
* wal -g -i $HOME/Pictures/Wallpapers/wall.jpg
* sudo pacman -S lxappearance
* lxappearance
* select your default font for GTK
=========================================
# ROFI
#
* sudo pacman -S rofi
* mkdir ~/.config/rofi
* vi $HOME/.config/rofi/config
* # dark theme
* rofi.theme: ~/.cache/wal/colors-rofi-dark.rasi
*
* # Light theme
* rofi.theme: ~/.cache/wal/colors-rofi-light.rasi
*
* rofi.opacity: 100
* rofi.width: 20
=========================================
# XEPHYR
#
* make three files as below, for 1, 2, and 3
* sudo pacman -S xorg-server-xephyr
* vi $HOME/.local/bin/fv1
* #!/bin/bash
* # run i3 in a nested server
* #
* Xephyr -ac -br -screen 960x540 :1.0 &
* ZEPHYR_PID_1=$!
* sleep 1
* DISPLAY=:1.0 exec i3
* kill ZEPHYR_PID_1
* chmod +x $HOME/.local/bin/fv1
* from Rofi call:
* firefox -p default
* firefox -no-remote -p d1
=========================================
# .XRESOURCES
#
* vi ~/.Xresources
* see saved .Xresources
=========================================
# SOUND
#
* sudo pacman -S alsa-utils
* check: alsamixer
* speaker-test -c2