diff --git a/scripts/install.sh b/scripts/install.sh index 9b0ca3e..4749483 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -260,9 +260,31 @@ install_sway() { --no-install-recommends mv /home/${USERNAME}/.bashrc /home/${USERNAME}/.bashrc~ - ln -s /home/${USERNAME}/ + ln -s /home/${USERNAME}/dotfiles/.bashrc /home/${USERNAME}/.bashrc cp ../sway/mako.conf /home/${USERNAME}/.config/mako/conf + ( + git clone https://github.com/Biont/sway-launcher-desktop /home/${USERNAME}/projects/sway-launcher-desktop + ) + + # build swaylock-effects because its not available on Debian + # https://github.com/voidgloom/swaylock-effects + ( + apt update + apt install -y \ + wayland-protocols \ + libwayland-client++0 \ + libcairo2-dev \ + libwayland-client0 \ + --no-install-recommends + + TARGET=/home/${USERNAME}/projects/swaylock-effects + git clone https://github.com/voidgloom/swaylock-effects ${TARGET} + cd ${TARGET} + meson build && ninja -C build && sudo ninja -C build install + sudo chmod a+s /usr/local/bin/swaylock + ) + } install_i3() { diff --git a/sway/config b/sway/config index a1ba1ac..5417a5a 100755 --- a/sway/config +++ b/sway/config @@ -30,6 +30,21 @@ set $menu exec $term --class=launcher -e /home/fschl/projects/sway-launcher-desk bindsym $mod+d exec $menu # bindsym Ctrl+Shift+l exec i3lock-fancy +bindsym Ctrl+Shift+l exec swaylock \ + --screenshots \ + --clock \ + --indicator \ + --indicator-radius 100 \ + --indicator-thickness 7 \ + --effect-blur 7x5 \ + --effect-vignette 0.5:0.5 \ + --ring-color 859900\ + --key-hl-color 2aa198\ + --line-color 00000000 \ + --inside-color 00000088 \ + --separator-color 00000000 \ + --grace 2 \ + --fade-in 0.2 input * { xkb_layout "de" @@ -164,6 +179,7 @@ bindsym $mod+Shift+8 move container to workspace $WS8 bindsym $mod+Shift+9 move container to workspace $WS9 bindsym $mod+Shift+0 move container to workspace 10 +# https://github.com/francma/wob set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock exec mkfifo $WOBSOCK && tail -f $WOBSOCK | wob