diff --git a/.config/setup/01-install-packages.sh b/.config/setup/01-install-packages.sh index d308236..6383320 100755 --- a/.config/setup/01-install-packages.sh +++ b/.config/setup/01-install-packages.sh @@ -37,7 +37,7 @@ DEB_PKGS=( imagemagick inkscape jq - jupyter-notebook + jupyterlab keepassxc libnss-mdns libyajl-doc diff --git a/.config/sway/config b/.config/sway/config index 483fc87..fc77a2a 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -68,6 +68,7 @@ input type:touchpad { # Start a terminal bindsym $launch+Return exec $term bindsym $launch+t exec $term zellij attach --create main + bindsym $launch+j exec $term zellij --layout jupyter attach --create jupyter # Start Emacs bindsym $launch+e exec emacsclient --alternate-editor "" --create-frame @@ -76,9 +77,6 @@ input type:touchpad { bindsym $launch+f exec firefox --private-window bindsym $launch+Shift+f exec firefox - # Switch WiFi network - bindsym $launch+Equal exec .wifi-wizard - # Kill focused window bindsym $wm_mod+q kill diff --git a/.config/zellij/layouts/jupyter.kdl b/.config/zellij/layouts/jupyter.kdl new file mode 100644 index 0000000..1caca2a --- /dev/null +++ b/.config/zellij/layouts/jupyter.kdl @@ -0,0 +1,7 @@ +layout { + pane { + command "jupyter" + args "lab" "--notebook-dir" "/home/ohad/Projects/notebooks/" + cwd "/home/ohad/" + } +} diff --git a/.local/bin/.wifi-wizard b/.local/bin/.wifi-wizard deleted file mode 100755 index 48e8f8e..0000000 --- a/.local/bin/.wifi-wizard +++ /dev/null @@ -1,15 +0,0 @@ -#! /usr/bin/sh - -ssid=$(nmcli --fields SSID,RATE,SIGNAL,BARS device wifi list | fuzzel --dmenu --width 40 | awk '{print $1}') -retval=$? -if [ -z "${ssid}" ]; then - exit $retval -fi - -password=$(fuzzel --dmenu --password) -retval=$? -if [ $retval -ne 0 ]; then - exit $retval -fi - -nmcli device wifi connect "${ssid}" password "${password}" diff --git a/.local/bin/with-cwd b/.local/bin/with-cwd index df3ee83..c4e97d3 100755 --- a/.local/bin/with-cwd +++ b/.local/bin/with-cwd @@ -4,4 +4,5 @@ set -euo pipefail IFS=$'\n\t' cd "$1" +eval "$(direnv export bash)" "${@:2}"