From b7fa096c9071fcb230adeaa40bc23abf70a88655 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Sun, 25 Aug 2024 15:46:42 +0200 Subject: [PATCH] Automatically import numpy and sympy when starting python shell --- sway/.config/sway/config | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 9854105..79a31cc 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -18,8 +18,7 @@ bindsym Control+Mod1+l exec $lock bindsym Print exec grim -g "$(slurp -d)" - | wl-copy -bindsym $mod+p exec kitty -e python - +bindsym $mod+p exec kitty -e /usr/bin/expect -c "spawn python; expect \\"*>>> \\"; send \\"import numpy as np\n\\"; send \\"import sympy as sp\n\\"; interact" bindsym $mod+Return exec $term bindsym $mod+Shift+q kill bindsym $mod+d exec $menu