From f32f289b43f2586d46fb620ef40507cf5a9c661e Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 14 May 2026 07:51:36 -0400 Subject: Hyprland: Super + Return open terminal where you left off --- .config/hypr/hyprland.conf | 3 ++- .profile | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 7975c44..4b234d7 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -220,7 +220,8 @@ $mainMod = SUPER # Sets "Windows" key as main modifier # Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more bind = $mainMod, Q, exec, $terminal -bind = $mainMod, Return, exec, $terminal +# Open the terminal in the same window it was set to previously +bind = $mainMod, Return, exec, foot -D "$(hyprctl activewindow -j | jq -r '.title?|tostring|select(startswith("/")) // "/home/zach"')" bind = $mainMod, C, killactive, bind = $mainMod, M, exit, bind = $mainMod, E, exec, $fileManager diff --git a/.profile b/.profile index 5e99a50..bab387d 100644 --- a/.profile +++ b/.profile @@ -6,3 +6,6 @@ export APORTSDIR="$HOME/gs/aports" if [ "$(tty)" = /dev/tty6 ]; then setfont /usr/share/consolefonts/ter-132n.psf.gz fi + +# Set the window title to the path +export PS1='`echo -ne "\033]0;${PWD}\007" 1>&2`\w \$ ' -- cgit 1.4.1