summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/desktop/wayland.md28
-rw-r--r--docs/server/cgit.md30
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