diff options
-rw-r--r-- | README.de.md | 18 | ||||
-rw-r--r-- | README.ja.md | 10 | ||||
-rw-r--r-- | sway/main.c | 41 |
3 files changed, 58 insertions, 11 deletions
diff --git a/README.de.md b/README.de.md index 332b261e..cbee2056 100644 --- a/README.de.md +++ b/README.de.md | |||
@@ -1,10 +1,12 @@ | |||
1 | # sway [![](https://api.travis-ci.org/SirCmpwn/sway.svg)](https://travis-ci.org/SirCmpwn/sway) [![Mit fosspay spenden](https://drewdevault.com/donate/static/donate-with-fosspay.png)](https://drewdevault.com/donate?project=4) | 1 | # sway [![](https://api.travis-ci.org/SirCmpwn/sway.svg)](https://travis-ci.org/SirCmpwn/sway) [![Mit fosspay spenden](https://drewdevault.com/donate/static/donate-with-fosspay.png)](https://drewdevault.com/donate?project=4) |
2 | 2 | ||
3 | Der Fortschritt dieser Übersetzung kann [hier](https://github.com/SirCmpwn/sway/issues/1318) | ||
4 | eingesehen werden. | ||
5 | |||
3 | "**S**irCmpwn's **Way**land compositor" ist ein i3-kompatibler | 6 | "**S**irCmpwn's **Way**land compositor" ist ein i3-kompatibler |
4 | [Wayland](http://wayland.freedesktop.org/)-Kompositor. Lies die | 7 | [Wayland](http://wayland.freedesktop.org/)-Kompositor. Lies die |
5 | [FAQ](https://github.com/SirCmpwn/sway/wiki#faq). Tritt dem | 8 | [FAQ](https://github.com/SirCmpwn/sway/wiki#faq). Tritt dem |
6 | [IRC-Channel](http://webchat.freenode.net/?channels=sway&uio=d4) bei (#sway in irc.freenode.net, | 9 | [IRC-Channel](http://webchat.freenode.net/?channels=sway&uio=d4) bei (#sway in irc.freenode.net). |
7 | azarus kann bei Fragen auf Deutsch helfen). | ||
8 | 10 | ||
9 | [![](https://sr.ht/ICd5.png)](https://sr.ht/ICd5.png) | 11 | [![](https://sr.ht/ICd5.png)](https://sr.ht/ICd5.png) |
10 | 12 | ||
@@ -13,7 +15,12 @@ Falls du die Sway Entwicklung unterstützen möchtest, kannst du das auf der | |||
13 | [Entwicklungsprämien](https://github.com/SirCmpwn/sway/issues/986) | 15 | [Entwicklungsprämien](https://github.com/SirCmpwn/sway/issues/986) |
14 | bestimmter Features beiträgst. Jeder ist dazu eingeladen, eine Prämie in Anspruch | 16 | bestimmter Features beiträgst. Jeder ist dazu eingeladen, eine Prämie in Anspruch |
15 | zu nehmen oder für gewünschte Features bereitzustellen. Patreon ist eher dafür | 17 | zu nehmen oder für gewünschte Features bereitzustellen. Patreon ist eher dafür |
16 | gedacht Sways Wartung und das Projekt generell zu unterstützen. | 18 | gedacht, Sways Wartung und das Projekt generell zu unterstützen. |
19 | |||
20 | ## Deutscher Support | ||
21 | |||
22 | refacto(UTC+2) bietet Support im IRC (unter dem Namen azarus) und auf Github an. | ||
23 | ParadoxSpiral(UTC+2) bietet Support im IRC und auf Github an. | ||
17 | 24 | ||
18 | ## Releasesignaturen | 25 | ## Releasesignaturen |
19 | 26 | ||
@@ -39,8 +46,7 @@ zu installieren. Falls es nicht vorhanden ist, schau dir | |||
39 | distributionsspezifische Installationsinformationen an. | 46 | distributionsspezifische Installationsinformationen an. |
40 | 47 | ||
41 | Wenn du Interesse hast, Sway für deine Distribution als Paket bereitzustellen, | 48 | Wenn du Interesse hast, Sway für deine Distribution als Paket bereitzustellen, |
42 | schau im IRC-Channel vorbei oder schreibe eine e-Mail an sir@cmpwn.com (nur | 49 | schau im IRC-Channel vorbei oder schreibe eine e-Mail an sir@cmpwn.com (nur englischsprachig). |
43 | englischsprachig). | ||
44 | 50 | ||
45 | ### Kompilieren des Quellcodes | 51 | ### Kompilieren des Quellcodes |
46 | 52 | ||
@@ -87,7 +93,7 @@ In Systemen ohne logind musst du `sway` das suid-Flag geben: | |||
87 | 93 | ||
88 | Wenn du schon i3 benutzt, kopiere einfach deine i3 Konfiguration nach | 94 | Wenn du schon i3 benutzt, kopiere einfach deine i3 Konfiguration nach |
89 | `~/.config/sway/config`. Falls nicht, kannst du die Beispielkonfiguration | 95 | `~/.config/sway/config`. Falls nicht, kannst du die Beispielkonfiguration |
90 | benutzen. Die befindent sich normalerweise unter `/etc/sway/config`. | 96 | benutzen. Die befindet sich normalerweise unter `/etc/sway/config`. |
91 | Um mehr Informationen über die Konfiguration zu erhalten, führe `man 5 sway` aus. | 97 | Um mehr Informationen über die Konfiguration zu erhalten, führe `man 5 sway` aus. |
92 | 98 | ||
93 | ## Verwendung | 99 | ## Verwendung |
diff --git a/README.ja.md b/README.ja.md index d807e37c..23b91d30 100644 --- a/README.ja.md +++ b/README.ja.md | |||
@@ -5,15 +5,16 @@ | |||
5 | "**S**irCmpwnの**Way**landのcompositor"は仕掛け品のWaylandのCompositorだ。 | 5 | "**S**irCmpwnの**Way**landのcompositor"は仕掛け品のWaylandのCompositorだ。 |
6 | [英語のよくある質問](https://github.com/SirCmpwn/sway/wiki)は読みください。 | 6 | [英語のよくある質問](https://github.com/SirCmpwn/sway/wiki)は読みください。 |
7 | [IRCのチャット](http://webchat.freenode.net/?channels=sway&uio=d4)(#swayにirc.freenode.net)は入ってください。 | 7 | [IRCのチャット](http://webchat.freenode.net/?channels=sway&uio=d4)(#swayにirc.freenode.net)は入ってください。 |
8 | 私の名前はSirCmpwnです。助けのはIRCとGitHubで日本語で頑張ります。 | ||
9 | 8 | ||
10 | [![](https://sr.ht/ICd5.png)](https://sr.ht/ICd5.png) | 9 | [![](https://sr.ht/ICd5.png)](https://sr.ht/ICd5.png) |
11 | 10 | ||
12 | あなたが施したいから、[Patreon](https://patreon.com/sircmpwn)か[報奨金プロジェクト](https://github.com/SirCmpwn/sway/issues/986)は見てください。 | 11 | あなたが施したいから、[Patreon](https://patreon.com/sircmpwn)か[報奨金プロジェクト](https://github.com/SirCmpwn/sway/issues/986)は見てください。 |
13 | 12 | ||
14 | ## 日本語翻訳 | 13 | ## 日本語助け |
15 | 14 | ||
16 | 日本語翻訳は完成じゃない、正しくない。パッチは与えったください。 | 15 | SirCmpwnはIRCとGitHubでUTC-4に日本語助け人だ。 |
16 | |||
17 | 日本語翻訳は完成じゃない、正しくない。[パッチは与えったください](https://github.com/SirCmpwn/sway/issues/1318)。 | ||
17 | 18 | ||
18 | ## 発売の電子署名 | 19 | ## 発売の電子署名 |
19 | 20 | ||
@@ -78,8 +79,7 @@ logindはあるないば: | |||
78 | 79 | ||
79 | 今はi3があるばi3のコンフィグは`~/.config/sway/config`にコピー。 | 80 | 今はi3があるばi3のコンフィグは`~/.config/sway/config`にコピー。 |
80 | あるないば`/etc/sway/config`をコピー。 | 81 | あるないば`/etc/sway/config`をコピー。 |
81 | ファイルは読みください。英語は難しいのばIRCで助けのを尋ねる。 | 82 | ファイルは読みください。 |
82 | 日本語助けのはUTC-4。 | ||
83 | 83 | ||
84 | ## swayは実効する | 84 | ## swayは実効する |
85 | 85 | ||
diff --git a/sway/main.c b/sway/main.c index 82375e0b..6d13955c 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -53,6 +53,46 @@ static void wlc_log_handler(enum wlc_log_type type, const char *str) { | |||
53 | } | 53 | } |
54 | } | 54 | } |
55 | 55 | ||
56 | void detect_raspi() { | ||
57 | bool raspi = false; | ||
58 | FILE *f = fopen("/sys/firmware/devicetree/base/model", "r"); | ||
59 | if (!f) { | ||
60 | return; | ||
61 | } | ||
62 | char *line; | ||
63 | while(!feof(f)) { | ||
64 | if (!(line = read_line(f))) { | ||
65 | break; | ||
66 | } | ||
67 | if (strstr(line, "Raspberry Pi")) { | ||
68 | raspi = true; | ||
69 | } | ||
70 | free(line); | ||
71 | } | ||
72 | fclose(f); | ||
73 | FILE *g = fopen("/proc/modules", "r"); | ||
74 | if (!g) { | ||
75 | return; | ||
76 | } | ||
77 | bool vc4 = false; | ||
78 | while (!feof(g)) { | ||
79 | if (!(line = read_line(g))) { | ||
80 | break; | ||
81 | } | ||
82 | if (strstr(line, "vc4")) { | ||
83 | vc4 = true; | ||
84 | } | ||
85 | free(line); | ||
86 | } | ||
87 | fclose(g); | ||
88 | if (!vc4 && raspi) { | ||
89 | fprintf(stderr, "\x1B[1;31mWarning: You have a " | ||
90 | "Raspberry Pi, but the vc4 Module is " | ||
91 | "not loaded! Set 'dtoverlay=vc4-kms-v3d'" | ||
92 | "in /boot/config.txt and reboot.\x1B[0m\n"); | ||
93 | } | ||
94 | } | ||
95 | |||
56 | void detect_proprietary() { | 96 | void detect_proprietary() { |
57 | FILE *f = fopen("/proc/modules", "r"); | 97 | FILE *f = fopen("/proc/modules", "r"); |
58 | if (!f) { | 98 | if (!f) { |
@@ -366,6 +406,7 @@ int main(int argc, char **argv) { | |||
366 | log_distro(); | 406 | log_distro(); |
367 | log_env(); | 407 | log_env(); |
368 | detect_proprietary(); | 408 | detect_proprietary(); |
409 | detect_raspi(); | ||
369 | 410 | ||
370 | input_devices = create_list(); | 411 | input_devices = create_list(); |
371 | 412 | ||