Build swaylock-effects

main
Micke Nordin 4 years ago
parent 247be85149
commit 9a12d2a8be

@ -16,8 +16,9 @@ set $right l
# Your preferred terminal emulator
set $term foot
# Lokkscreen
set $lock swaylock -c 550000
# Lockscreen
#set $lock swaylock -c 550000
set $lock swaylock --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 7 --effect-blur 7x5 --effect-vignette 0.5:0.5 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2
exec swayidle -w \
timeout 600 $lock \
timeout 570 'swaymsg "output * dpms off"' \
@ -41,7 +42,8 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
output eDP-1 resolution 1920x1080 position 0,0
output HDMI-A-1 resolution 2048x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
@ -126,6 +128,8 @@ input * xkb_layout "se"
#
# Workspaces:
#
bindsym $mod+Control+Right move workspace to output HDMI-A-1
bindsym $mod+Control+Left move workspace to output eDP-1
# Switch to workspace
bindsym $mod+1 workspace number 1:
bindsym $mod+2 workspace number 2:

@ -0,0 +1,9 @@
diff --git a/effects.c b/effects.c
index e63f722..89b28a4 100644
--- a/effects.c
+++ b/effects.c
@@ -15,6 +15,7 @@
#include <time.h>
#include "effects.h"
#include "log.h"
+#include "stdio.h"

@ -14,31 +14,41 @@ WAYLAND_ENABLE="/usr/local/bin/wayland_enablement.sh"
# Install software from repo
sudo apt install \
build-essential \
cargo \
davfs2 \
emacs \
firefox-esr \
geary \
git \
jq \
keepassxc \
libcairo-dev \
libdbus-1-dev \
libncursesw5-dev \
libpam-dev \
libpam0g-dev \
libpulse-dev \
libssl-dev \
libwayland-dev \
libxcb-render0-dev \
libxcb-shape0-dev \
libxcb-xfixes0-dev \
libxcb1-dev \
libxkbcommon-dev \
light \
meson \
ninja-build \
nm-tray \
pavucontrol \
ranger \
rsync \
scdoc \
stterm \
sway \
vim \
waybar \
wayland-protocols \
webext-keepassxc-browser \
wl-clipboard \
wlr-randr
@ -146,6 +156,14 @@ sudo chmod +x ${SWAYRUN} ${WAYLAND_ENABLE}
# enable greetd
sudo systemctl enable greetd
cd ~/sources
git clone https://github.com/mortie/swaylock-effects.git
cd swaylock-effects
patch -p1 < ../effects.c.patch
meson build
ninja -C build
sudo ninja -C build install
#ncspot
cd ~/sources
git clone https://github.com/hrkfdn/ncspot.git

Loading…
Cancel
Save