diff --git a/README.org b/README.org index 5510a52..439e1fe 100644 --- a/README.org +++ b/README.org @@ -48,6 +48,12 @@ - [[#render][Render]] - [[#ecosystem][Ecosystem]] - [[#xdg-desktop-portal-hyprland][xdg-desktop-portal-hyprland]] + - [[#screencopy][Screencopy]] +- [[#hypridle][Hypridle]] + - [[#general-1][General]] + - [[#listeners][Listeners]] +- [[#hyprlock][Hyprlock]] + - [[#general-2][General]] - [[#waybar][Waybar]] - [[#start-configuration][Start Configuration]] - [[#bar][Bar]] @@ -133,8 +139,6 @@ exec-once = uwsm app -- waybar --config $HOME/.config/hypr/waybar/config.jsonc - *** Background Processes #+BEGIN_SRC conf :tangle hyprland.conf -exec-once = uwsm app -- swayidle & -exec-once = uwsm app -- /usr/libexec/polkit-gnome-authentication-agent-1 & exec-once = uwsm app -- kdeconnectd --replace & exec-once = uwsm app -- $HOME/.scripts/dunst.sh --on & exec-once = uwsm app -- wl-paste --type text --watch cliphist store & @@ -707,6 +711,8 @@ ecosystem { - [[https://wiki.hyprland.org/Hypr-Ecosystem/xdg-desktop-portal-hyprland/#configuration][Hyprland Wiki - Hypr Ecosystem - xdg-desktop-portal-hyprland - Configuration]] +** Screencopy + #+BEGIN_SRC conf :tangle xdph.conf screencopy { max_fps = 0 @@ -714,6 +720,64 @@ screencopy { } #+END_SRC +* Hypridle + +- [[https://wiki.hyprland.org/Hypr-Ecosystem/hypridle/][Hyprland Wiki - Hypr Ecosystem - hypridle]] + +** General + +#+BEGIN_SRC conf :tangle hypridle.conf +general { + lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances + before_sleep_cmd = loginctl lock-session # lock before suspend + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key to turn on the display + ignore_dbus_inhibit = false + ignore_systemd_inhibit = false + inhibit_sleep = 2 +} +#+END_SRC + +** Listeners + +Lock screen after 10 minutes + +#+BEGIN_SRC conf :tangle hypridle.conf +listener { + timeout = 600 + on-timeout = loginctl lock-session +} +#+END_SRC + +Sleep after 30 minutes + +#+BEGIN_SRC conf :tangle hypridle.conf +listener { + timeout = 1800 + on-timeout = systemctl suspend +} +#+END_SRC + +* Hyprlock + +- [[https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/][Hyprland Wiki - Hypr Ecosystem - hyprlock]] + +** General + +- [[https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general][Hyprland Wiki - Hypr Ecosystem - hyprlock - General]] + +#+BEGIN_SRC conf :tangle hyprlock.conf +general { + hide_cursor = true + grace = 0 + ignore_empty_input = false + immediate_render = false + text_trim = true + fractional_scaling = 2 + screencopy_mode = 0 + fail_timeout = 2000 +} +#+END_SRC + * Waybar ** Start Configuration diff --git a/hypridle.conf b/hypridle.conf new file mode 100644 index 0000000..ee96dd3 --- /dev/null +++ b/hypridle.conf @@ -0,0 +1,18 @@ +general { + lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances + before_sleep_cmd = loginctl lock-session # lock before suspend + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key to turn on the display + ignore_dbus_inhibit = false + ignore_systemd_inhibit = false + inhibit_sleep = 2 +} + +listener { + timeout = 600 + on-timeout = loginctl lock-session +} + +listener { + timeout = 1800 + on-timeout = systemctl suspend +} diff --git a/hyprland.conf b/hyprland.conf index e326173..6c0c731 100644 --- a/hyprland.conf +++ b/hyprland.conf @@ -6,8 +6,6 @@ $menu = rofi -show combi -run-command "uwsm app -- {cmd}" exec-once = uwsm app -- waybar --config $HOME/.config/hypr/waybar/config.jsonc --style $HOME/.config/hypr/waybar/style.css & -exec-once = uwsm app -- swayidle & -exec-once = uwsm app -- /usr/libexec/polkit-gnome-authentication-agent-1 & exec-once = uwsm app -- kdeconnectd --replace & exec-once = uwsm app -- $HOME/.scripts/dunst.sh --on & exec-once = uwsm app -- wl-paste --type text --watch cliphist store & diff --git a/hyprlock.conf b/hyprlock.conf new file mode 100644 index 0000000..4ef5640 --- /dev/null +++ b/hyprlock.conf @@ -0,0 +1,10 @@ +general { + hide_cursor = true + grace = 0 + ignore_empty_input = false + immediate_render = false + text_trim = true + fractional_scaling = 2 + screencopy_mode = 0 + fail_timeout = 2000 +}