fix: import envs in ghostty

This commit is contained in:
2025-12-01 01:14:16 +01:00
parent 34a2f71c6d
commit 8f9df4c730
7 changed files with 34 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ binds {
// Actions
Mod+V { spawn-sh "pkill -x rofi || rofi-cliphist"; }
Mod+Period { spawn-sh "pkill -x rofi || rofi-emoji"; }
Ctrl+Alt+Delete { spawn "pkill -x wlogout || wlogout -p layer-shell"; }
Ctrl+Alt+Delete { spawn-sh "pkill -x wlogout || wlogout -p layer-shell"; }
Print { spawn "niri" "msg" "action" "screenshot-screen"; }
Mod+Shift+S { spawn "niri" "msg" "action" "screenshot"; }
Mod+Ctrl+Shift+S { spawn "niri" "msg" "action" "screenshot-window"; }

View File

@@ -35,3 +35,5 @@ spawn-at-startup "quickshell"
// According to (https://ghostty.org/docs/linux/systemd#starting-ghostty-at-login)
spawn-sh-at-startup "systemctl start --user app-com.mitchellh.ghostty.service"
// No, do not do this, otherwise the envs defined in envs.kdl won't be applied to ghostty.
// Unless you have something like "config/shell/.config/fish/prev.d/niri-env.fish"

View File

@@ -1,10 +1,9 @@
screenshot-path "~/Pictures/Screenshots/niri_screenshot_%Y-%m-%d_%H-%M-%S.png"
debug {
render-drm-device "/dev/dri/card0"
}
screenshot-path "~/Pictures/Screenshots/niri_screenshot_%Y-%m-%d_%H-%M-%S.png"
// screenshot-path "~/Pictures/Screenshots/.niri_screenshot.png"
// gestures {
// hot-corners {
// off