Compare commits

..

No commits in common. "5d3a651a259210bd28cb0d9102e8c9db4c000b0b" and "5eca39a8d325b8df34d17a630f755fd7881175fb" have entirely different histories.

5 changed files with 19 additions and 10 deletions

View file

@ -37,7 +37,7 @@ DEB_PKGS=(
imagemagick
inkscape
jq
jupyterlab
jupyter-notebook
keepassxc
libnss-mdns
libyajl-doc

View file

@ -68,7 +68,6 @@ 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
@ -77,6 +76,9 @@ 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

View file

@ -1,7 +0,0 @@
layout {
pane {
command "jupyter"
args "lab" "--notebook-dir" "/home/ohad/Projects/notebooks/"
cwd "/home/ohad/"
}
}

15
.local/bin/.wifi-wizard Executable file
View file

@ -0,0 +1,15 @@
#! /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}"

View file

@ -4,5 +4,4 @@ set -euo pipefail
IFS=$'\n\t'
cd "$1"
eval "$(direnv export bash)"
"${@:2}"