forked from swaywm/sway
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:swaywm/sway into swaywm-master
- Loading branch information
Showing
72 changed files
with
990 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# sway | ||
|
||
[English][en] - **[Česky][cs]** - [Deutsch][de] - [Dansk][dk] - [Español][es] - [Français][fr] - [Svenska][sv] - [Ελληνικά][gr] - [हिन्दी][hi] - [Magyar][hu] - [فارسی][ir] - [Italiano][it] - [日本語][ja] - [한국어][ko] - [Nederlands][nl] - [Polski][pl] - [Português][pt] - [Română][ro] - [Русский][ru] - [Türkçe][tr] - [Українська][uk] - [中文-简体][zh-CN] - [中文-繁體][zh-TW] | ||
|
||
sway je s [i3] kompatibilní [Wayland] kompozitor. Přečtěte si [FAQ]. Připojte se na | ||
[IRC kanál][IRC channel] \(#sway na irc.libera.chat). | ||
|
||
## Podpisy vydání | ||
|
||
Vydání jsou podepsána [E88F5E48] a publikována [na GitHubu][GitHub releases]. | ||
|
||
## Instalace | ||
|
||
### Z balíčků | ||
|
||
Sway je dostupný ve spoustě distribucí. Zkuste nainstalovat balíček "sway" ve vaší | ||
distribuci. | ||
|
||
### Kompilace ze zdrojových kódů | ||
|
||
Podívejte se na [tuto stránku wiki][Development setup], pokud chcete sestavit HEAD | ||
sway a wlroots pro testování nebo vývoj. | ||
|
||
Nainstalujte závislosti: | ||
|
||
* meson \* | ||
* [wlroots] | ||
* wayland | ||
* wayland-protocols \* | ||
* pcre2 | ||
* json-c | ||
* pango | ||
* cairo | ||
* gdk-pixbuf2 (volitelné: oznamovací oblast) | ||
* [scdoc] (volitelné: manuálové stránky) \* | ||
* git (volitelné: informace o verzi) \* | ||
|
||
_\* Závislost pouze pro sestavení_ | ||
|
||
Spusťte tyto příkazy: | ||
|
||
meson build/ | ||
ninja -C build/ | ||
sudo ninja -C build/ install | ||
|
||
Na systémech bez logind či seatd musíte binární soubor sway nastavit jako suid: | ||
|
||
sudo chmod a+s /usr/local/bin/sway | ||
|
||
Sway svá root oprávnění zruší krátce po spuštění. | ||
|
||
## Konfigurace | ||
|
||
Pokud již používáte i3, zkopírujte svou konfiguraci i3 do `~/.config/sway/config` | ||
a ta bude ihned fungovat. Jinak zkopírujte do `~/.config/sway/config` ukázkový | ||
konfigurační soubor. Ten se obvykle nachází v `/etc/sway/config`. | ||
Pro více informací o konfiguraci spusťte `man 5 sway`. | ||
|
||
## Spuštění | ||
|
||
Spusťte `sway` z TTY. Některé správce zobrazení mohou fungovat, ale nejsou | ||
podporovány sway (je známo, že gdm funguje docela dobře). | ||
|
||
[en]: https://github.com/swaywm/sway#readme | ||
[cs]: README.cs.md | ||
[de]: README.de.md | ||
[dk]: README.dk.md | ||
[es]: README.es.md | ||
[fr]: README.fr.md | ||
[sv]: README.sv.md | ||
[gr]: README.gr.md | ||
[hi]: README.hi.md | ||
[hu]: README.hu.md | ||
[ir]: README.ir.md | ||
[it]: README.it.md | ||
[ja]: README.ja.md | ||
[ko]: README.ko.md | ||
[nl]: README.nl.md | ||
[pl]: README.pl.md | ||
[pt]: README.pt.md | ||
[ro]: README.ro.md | ||
[ru]: README.ru.md | ||
[tr]: README.tr.md | ||
[uk]: README.uk.md | ||
[zh-CN]: README.zh-CN.md | ||
[zh-TW]: README.zh-TW.md | ||
[i3]: https://i3wm.org/ | ||
[Wayland]: http://wayland.freedesktop.org/ | ||
[FAQ]: https://github.com/swaywm/sway/wiki | ||
[IRC channel]: https://web.libera.chat/gamja/?channels=#sway | ||
[E88F5E48]: https://keys.openpgp.org/search?q=34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48 | ||
[GitHub releases]: https://github.com/swaywm/sway/releases | ||
[Development setup]: https://github.com/swaywm/sway/wiki/Development-Setup | ||
[wlroots]: https://gitlab.freedesktop.org/wlroots/wlroots | ||
[scdoc]: https://git.sr.ht/~sircmpwn/scdoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
if get_option('zsh-completions') | ||
zsh_files = files( | ||
'zsh/_sway', | ||
'zsh/_swaymsg', | ||
) | ||
zsh_install_dir = join_paths(datadir, 'zsh', 'site-functions') | ||
|
||
install_data(zsh_files, install_dir: zsh_install_dir) | ||
endif | ||
|
||
if get_option('bash-completions') | ||
bash_comp = dependency('bash-completion', required: false) | ||
|
||
bash_files = files( | ||
'bash/sway', | ||
'bash/swaymsg', | ||
) | ||
|
||
if get_option('swaybar') | ||
bash_files += files('bash/swaybar') | ||
endif | ||
|
||
if bash_comp.found() | ||
bash_install_dir = bash_comp.get_variable( | ||
pkgconfig: 'completionsdir', | ||
pkgconfig_define: ['datadir', datadir] | ||
) | ||
else | ||
bash_install_dir = join_paths(datadir, 'bash-completion', 'completions') | ||
endif | ||
|
||
install_data(bash_files, install_dir: bash_install_dir) | ||
endif | ||
|
||
if get_option('fish-completions') | ||
fish_comp = dependency('fish', required: false) | ||
|
||
fish_files = files( | ||
'fish/sway.fish', | ||
'fish/swaymsg.fish', | ||
) | ||
|
||
if get_option('swaynag') | ||
fish_files += files('fish/swaynag.fish') | ||
endif | ||
|
||
if fish_comp.found() | ||
fish_install_dir = fish_comp.get_variable( | ||
pkgconfig: 'completionsdir', | ||
pkgconfig_define: ['datadir', datadir] | ||
) | ||
else | ||
fish_install_dir = join_paths(datadir, 'fish', 'vendor_completions.d') | ||
endif | ||
|
||
install_data(fish_files, install_dir: fish_install_dir) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#ifndef _SWAY_LAUNCHER_H | ||
#define _SWAY_LAUNCHER_H | ||
|
||
#include <stdlib.h> | ||
#include <wayland-server-core.h> | ||
|
||
struct launcher_ctx { | ||
pid_t pid; | ||
char *name; | ||
struct wlr_xdg_activation_token_v1 *token; | ||
struct wl_listener token_destroy; | ||
|
||
bool activated; | ||
|
||
struct sway_node *node; | ||
struct wl_listener node_destroy; | ||
|
||
struct wl_list link; // sway_server::pending_launcher_ctxs | ||
}; | ||
|
||
struct launcher_ctx *launcher_ctx_find_pid(pid_t pid); | ||
|
||
struct sway_workspace *launcher_ctx_get_workspace(struct launcher_ctx *ctx); | ||
|
||
void launcher_ctx_consume(struct launcher_ctx *ctx); | ||
|
||
void launcher_ctx_destroy(struct launcher_ctx *ctx); | ||
|
||
struct launcher_ctx *launcher_ctx_create(void); | ||
|
||
const char *launcher_ctx_get_token_name(struct launcher_ctx *ctx); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.