diff options
author | Joshua Yun <joshua@joshuayun.com> | 2025-05-18 18:13:14 -0500 |
---|---|---|
committer | Joshua Yun <joshua@joshuayun.com> | 2025-05-18 18:13:14 -0500 |
commit | ed0d54cac2702bb3b952973b33ff2ede436dcfd4 (patch) | |
tree | 0f0919864da167f06b0f06467d25dffff6dd4ef4 /docs | |
parent | 4981aacb593c92bbc738d53f2b119fcccc7a300b (diff) | |
download | wiki-ed0d54cac2702bb3b952973b33ff2ede436dcfd4.tar.gz |
fix: added new more wayland things and the cgit nginx config
Diffstat (limited to 'docs')
-rw-r--r-- | docs/desktop/wayland.md | 28 | ||||
-rw-r--r-- | docs/server/cgit.md | 30 |
2 files changed, 57 insertions, 1 deletions
diff --git a/docs/desktop/wayland.md b/docs/desktop/wayland.md index 12ddfc6..367e855 100644 --- a/docs/desktop/wayland.md +++ b/docs/desktop/wayland.md @@ -23,7 +23,10 @@ Software: ## Escape + Super key mapping Since wayland does not have support for xcape, we need to use interception with a plugin instead. -The following link goes over how to install and use the interception plugin. + +### Interception Plugin + +The following part goes over how to install and use the interception plugin. These are the configurations for my setup: @@ -45,3 +48,26 @@ To get the device name: see the reference link. References: [interception](https://gitlab.com/interception/linux/plugins/dual-function-keys/) + +### keyd + +Example keyd config that maps all keyboards to caps lock single press escape, hold super key + + [ids] + + * + + [main] + + # Maps capslock to escape when pressed and control when held. + capslock = overload(meta, esc) + +References: + +[keyd](https://github.com/rvaiya/keyd) + +## Multi-Monitor Hotplug +[Kanshi:](https://wiki.archlinux.org/title/Kanshi) a monitor hot plug program + +## Multi-Monitor Tags for Hyprland +[Split Monitor Plugin](https://github.com/Duckonaut/split-monitor-workspaces) diff --git a/docs/server/cgit.md b/docs/server/cgit.md index 72db5ed..f685118 100644 --- a/docs/server/cgit.md +++ b/docs/server/cgit.md @@ -110,6 +110,36 @@ Add cgit configuration to caddy. } } +### Running cgit with nginx + + server { + listen 80; + server_name git.joshuayun.com; + return 301 https://$host$request_uri; + } + + server { + listen 443 ssl; + server_name git.joshuayun.com; + + // Other nginx configs, e.g. ssl here + + root /usr/share/cgit/; + try_files $uri @cgit; + + location ~* ^.+\.(css|png|ico)$ { + root /usr/share/cgit/; + } + + location / { + fastcgi_pass localhost:8999; + fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi; + fastcgi_param DOCUMENT_ROOT /usr/lib/cgit/; + fastcgi_param PATH_INFO $uri; + fastcgi_param QUERY_STRING $args; + fastcgi_param HTTP_HOST $server_name; + } + } ## Cgit configuration |