Build swaylock-effects

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

@ -16,8 +16,9 @@ set $right l
# Your preferred terminal emulator # Your preferred terminal emulator
set $term foot set $term foot
# Lokkscreen # Lockscreen
set $lock swaylock -c 550000 #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 \ exec swayidle -w \
timeout 600 $lock \ timeout 600 $lock \
timeout 570 'swaymsg "output * dpms off"' \ timeout 570 'swaymsg "output * dpms off"' \
@ -41,7 +42,8 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# #
# Example configuration: # 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 # You can get the names of your outputs by running: swaymsg -t get_outputs
@ -126,6 +128,8 @@ input * xkb_layout "se"
# #
# Workspaces: # 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 # Switch to workspace
bindsym $mod+1 workspace number 1: bindsym $mod+1 workspace number 1:
bindsym $mod+2 workspace number 2: 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 # Install software from repo
sudo apt install \ sudo apt install \
build-essential \
cargo \ cargo \
davfs2 \ davfs2 \
emacs \
firefox-esr \ firefox-esr \
geary \ geary \
git \ git \
jq \ jq \
keepassxc \ keepassxc \
libcairo-dev \
libdbus-1-dev \ libdbus-1-dev \
libncursesw5-dev \ libncursesw5-dev \
libpam-dev \
libpam0g-dev \ libpam0g-dev \
libpulse-dev \ libpulse-dev \
libssl-dev \ libssl-dev \
libwayland-dev \
libxcb-render0-dev \ libxcb-render0-dev \
libxcb-shape0-dev \ libxcb-shape0-dev \
libxcb-xfixes0-dev \ libxcb-xfixes0-dev \
libxcb1-dev \ libxcb1-dev \
libxkbcommon-dev \
light \ light \
meson \
ninja-build \
nm-tray \ nm-tray \
pavucontrol \ pavucontrol \
ranger \ ranger \
rsync \ rsync \
scdoc \
stterm \ stterm \
sway \ sway \
vim \ vim \
waybar \ waybar \
wayland-protocols \
webext-keepassxc-browser \ webext-keepassxc-browser \
wl-clipboard \ wl-clipboard \
wlr-randr wlr-randr
@ -146,6 +156,14 @@ sudo chmod +x ${SWAYRUN} ${WAYLAND_ENABLE}
# enable greetd # enable greetd
sudo systemctl 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 #ncspot
cd ~/sources cd ~/sources
git clone https://github.com/hrkfdn/ncspot.git git clone https://github.com/hrkfdn/ncspot.git

Loading…
Cancel
Save