From e8ccdafcf70dae6a7e8125d3ffbf0084db3fd956 Mon Sep 17 00:00:00 2001 From: Brieuc Dubois Date: Sat, 17 Feb 2024 01:53:52 +0100 Subject: [PATCH] swipe, disable zsh beeps and idle lock & hibernate --- root/home/bhasher/.config/hypr/autostart | 5 +++++ root/home/bhasher/.config/hypr/hyprland.conf | 3 ++- root/home/bhasher/.zshrc | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/root/home/bhasher/.config/hypr/autostart b/root/home/bhasher/.config/hypr/autostart index b4e2b24..f71832f 100644 --- a/root/home/bhasher/.config/hypr/autostart +++ b/root/home/bhasher/.config/hypr/autostart @@ -8,3 +8,8 @@ wl-paste --type text --watch cliphist store wl-paste --type image --watch cliphist store udiskie & + +LOCK="swaylock --screenshots --effect-blur 7x5 --indicator --clock | xargs hyprctl dispatch exec" + +swayidle -w timeout 600 "$LOCK" before-sleep "$LOCK" & +swayidle -w timeout 1200 "systemctl hibernate" & diff --git a/root/home/bhasher/.config/hypr/hyprland.conf b/root/home/bhasher/.config/hypr/hyprland.conf index f5ac5da..2cf86e4 100644 --- a/root/home/bhasher/.config/hypr/hyprland.conf +++ b/root/home/bhasher/.config/hypr/hyprland.conf @@ -94,7 +94,7 @@ master { gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more - workspace_swipe = off + workspace_swipe = true } misc { @@ -180,3 +180,4 @@ bindl = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle bindl = , XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle bind = , PRINT, exec, hyprshot -m region +windowrulev2 = idleinhibit fullscreen, fullscreen:1 diff --git a/root/home/bhasher/.zshrc b/root/home/bhasher/.zshrc index 6d768c2..eb12fec 100644 --- a/root/home/bhasher/.zshrc +++ b/root/home/bhasher/.zshrc @@ -31,3 +31,5 @@ cat() { fi done } + +unsetopt BEEP