-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathREADME_en.md
More file actions
165 lines (109 loc) · 5.74 KB
/
Copy pathREADME_en.md
File metadata and controls
165 lines (109 loc) · 5.74 KB
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
# Configures and Dependences of my own
<!--more-->
### README in Chinese
[README_zh_cn](https://github.com/Dimerbone/Origin/blob/master/README.md)
<!--more-->
# general situation
The supported modules:
- [Configures and Dependences of my own](#configures-and-dependences-of-my-own)
- [README in Chinese](#readme-in-chinese)
- [general situation](#general-situation)
- [Modules](#modules)
- [alsa](#alsa)
- [backlight](#backlight)
- [date](#date)
- [notify](#notify)
- [upload](#upload)
- [battery](#battery)
- [keyboard](#keyboard)
- [systray](#systray)
- [mpd](#mpd)
- [i3](#i3)
- [weather](#weather)
- [info-hackspeed](#info-hackspeed)
- [daily-poem](#daily-poem)
- [filesystem](#filesystem)
- [temperature](#temperature)
- [memory](#memory)
- [cpu](#cpu)
Dependence:
1. [Font Awesome](https://www.archlinux.org/packages/community/any/ttf-font-awesome/)
2. bdf-unifont(AUR)
3. ttf-fira-code(AUR)
4. [Weather Icon](https://github.com/erikflowers/weather-icons)、jq(required by weather[polybar] module)
5. Dunst (required by notify[polybar] module)
6. mpd、ncmpcpp、mpc(required by mpd[polybar] & music[i3] modules)
7. rxvt-unicode(urxvt)(AUR)
8. compton
9. feh(required by rofi[i3] module)
10. fcit-sogoupinyin、fcitx-configtool、fcitx-lilydjwg-git(AUR)
11. rofi(required by rofi[i3] module)
12. [electron-ssr](https://github.com/shadowsocksrr/electron-ssr/releases/)
13. utool(uploaded)
14. cmatrix
15. xdotool(required by notify[polybar] module)
16. powerline-fonts
17. ttf-monaco
18. i3lock-fancy-git(AUR)
<!--more-->


# Modules
## alsa
Display current volume,There are three different color ICONS depending on the volume.
| Action | Event |
| :-----------------------: |:---------------------: |
| Left-click the mouse | mute/unmute |
| Upward roller | volume +5% every time |
| Downward rooller | volume -5% every time |
## backlight
change screen luminance by rewriting/sys/class/backlight/intel_backlight/brightness,related scripts and configs are in .config/i3/
## date
Display the time.
| Action | Event |
| :--------------------: | :---------------------: |
| Left-click the mouse | Toggle between date and time |
## notify
Display messages.
| Action | Event |
| :------: | :---------------------------------: |
| Left-click the mouse | simulate ctrl+grave -- default dunst shortcut to view history(s),it'll be overwritten by other shortcuts |
## upload
Display upload and download speed,you are supposed to overwrite .config/polybar/config `wlp3s0` and `enp2s0` with your own Ethernet device.
## battery
Display battery information,you maybe need to reset`battery-full-at`、`battery-bat` and `battery-adp` fields in .config/polybar/config.
## keyboard
Keyboard caps lock is displayed. Because the keyboard I use does not have NumLock, it is not supported for the time being.Add it yourself if you need it.
## systray
My system is Manjaro dde community edition, i3 version 4.16.1, polybar version 3.4.0, according to this configuration, there is no display error.If there's a problem, you can look it up in the official issues. There are quite a lot of people with icon problems.
## mpd
Displays MPD information, which is hidden when the MPD process does not exist. There are three ways to display MPD information: ** playing **, ** pause **, and ** stop **.
- display content including *Pause*,*Next*,*suspended*,*next*,*stop*,*list cycle*,*single playing*,*random* and *singer - title*.
`mpd-host` and `mpd-port` need to be set in .config/mpd/mpd.conf.
## i3
Display icons of i3 workspaces,the iconscanbe reset in .config/i3/config.
| Action | Event |
| :------: | :------: |
| Left-click the mouse | i3-msg workspace <index> |
| Upward roller | i3-msg workspace prev |
| Downward roller | i3-msg workspace next |
## weather
Display Openweather information using the script from[openweather-fullfeatured](https://github.com/polybar/polybar-scripts/tree/master/polybar-scripts/openweathermap-fullfeatured),personal API and city code are required, reset them in .config/polybar/script/openweather-fuulfeatured,read project Readme for details.
## info-hackspeed
Display inputting speed,the default unit is cpm (char per minute),the unit wpm (word per minute) is available,set it in config/polybar/script/info-hackspeed.sh.The script is from [info-hackspeed](https://github.com/polybar/polybar-scripts/tree/master/polybar-scripts/info-hackspeed).
## daily-poem
Show daily Chinese poems,V友@lhx2008[Daily-poem API](https://www.jinrishici.com/) is used,displaying poetry contents, sources, and matching key words are supported.Please replace the token in .config/polybar/config after getting the token from https://v2.jinrishici.com/token.
| Action | Event |
| :------: | :--------: |
| Left-click the mouse | Display poetry content |
| Upward roller | Display poetry source |
| Downward roller | Display matching key words |
| Right-click the mouse | Update poems |
## filesystem
Show root space usage
## temperature
Display temperature,you can set `thermal-zone` in .config/polybar/config,the default value is 0.Toggle lowest temerature displaying when the temperature is lower than `base-temperature`,Toggle warning temperature displaying when it is higher than `warn-temperature`,the color of the Temperature Icon will automatically change according to `base-temperature`and`warn-temperature`,change their values according to your own situation.
## memory
Display memory situation,the layout is used/total.
## cpu
Display cpu information.