From b6a296a671a4dc01a3a72d12cd1755d9ec9f56e1 Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Thu, 22 Feb 2024 05:16:18 +0400 Subject: [PATCH] feat: add hyprlock and hypridle. fix stuff --- hypr/autostart.conf | 3 ++- hypr/hypridle.conf | 14 ++++++++++++++ hypr/hyprland.conf | 15 +-------------- hypr/hyprlock.conf | 44 ++++++++++++++++++++++++++++++++++++++++++++ hypr/plugins.conf | 1 - hypr/rofi.conf | 2 +- 6 files changed, 62 insertions(+), 17 deletions(-) create mode 100644 hypr/hypridle.conf create mode 100644 hypr/hyprlock.conf diff --git a/hypr/autostart.conf b/hypr/autostart.conf index be45998..a78c5a4 100755 --- a/hypr/autostart.conf +++ b/hypr/autostart.conf @@ -9,7 +9,8 @@ exec-once=[workspace 1 silent] steam exec-once= xembedsniproxy & # for wine system tray exec-once=solaar --window=hide exec-once=blueman-applet -exec-once=hyprctl dispatch exec "armcord --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform-hint=wayland" +exec-once=armcord --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform-hint=wayland & disown +exec-once=hypridle # exec-once=wallengine --screen-root HDMI-A-2 1383845959 # exec-once=/home/themystery/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf new file mode 100644 index 0000000..156d58b --- /dev/null +++ b/hypr/hypridle.conf @@ -0,0 +1,14 @@ +$lockCmd = hyprlock +general { + lock_cmd = $lockCmd # dbus/sysd lock command (loginctl lock-session) + unlock_cmd = loginctl unlock-session # same as above, but unlock + before_sleep_cmd = $lockCmd # command ran before sleep + after_sleep_cmd = $lockCmd # command ran after sleep + ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) +} + +listener { + timeout = 500 # in seconds + on-timeout = loginctl lock-session # command to run when timeout has passed + on-resume = notify-send "Hello!" # command to run when activity is detected after timeout has fired. +} diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 1f85188..57721f7 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -1,10 +1,3 @@ - -######################################################################################## -AUTOGENERATED HYPR CONFIG. -PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT, -OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS. -######################################################################################## - # # Please note not all available settings / options are set here. # For a full list, see the wiki @@ -169,12 +162,6 @@ gestures { workspace_swipe = off } -# Example per-device config -# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more -device:epic-mouse-v1 { - sensitivity = -0.5 -} - # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 @@ -199,7 +186,7 @@ bind = $mainMod, F, fullscreen, 1 bind = $mainMod, T, fullscreen, 0 bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle -bind = $mainMod, L, exec, gtklock -i +bind = $mainMod, L, exec, hyprlock bind = $mainMod, S, exec, grimblast --cursor --notify copy area bind = $mainMod_SHIFT, S, exec, grim -g "$(slurp)" - | satty --filename - --copy-command wl-copy bind = $mainMod_SHIFT, E, exec, grimblast --cursor --notify edit area diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf new file mode 100644 index 0000000..925ff01 --- /dev/null +++ b/hypr/hyprlock.conf @@ -0,0 +1,44 @@ +general{ + disable_loading_bar = false + hide_cursor = false + no_fade_in = true +} + + +background{ + path = /home/themystery/Downloads/8ElYBmM.png + color = rgba(25, 20, 20, 1.0) +} + +input-field { + monitor = + size = 200, 50 + outline_thickness = 3 + dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = false + outer_color = rgb(151515) + inner_color = rgb(200, 200, 200) + font_color = rgb(10, 10, 10) + fade_on_empty = false + placeholder_text = Input Password... # Text rendered in the input box when it's empty. + hide_input = false + + position = 0, -20 + halign = center + valign = center +} + + +label { + monitor = + text = Hi there, $USER + color = rgba(200, 200, 200, 1.0) + font_size = 25 + font_family = Noto Sans + + position = 0, 80 + halign = center + valign = center +} + diff --git a/hypr/plugins.conf b/hypr/plugins.conf index 99215da..b21d339 100644 --- a/hypr/plugins.conf +++ b/hypr/plugins.conf @@ -2,7 +2,6 @@ exec-once = hyprpm reload -n # keymaps -## hycov bind = $mainMod, W, hycov:toggleoverview diff --git a/hypr/rofi.conf b/hypr/rofi.conf index 9dc1e39..aa4bdf2 100644 --- a/hypr/rofi.conf +++ b/hypr/rofi.conf @@ -1,6 +1,6 @@ bind = $mainMod, R, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m drun bind = $mainMod, B, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m run -# bind = $mainMod, W, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m window +bind = $mainMod, W, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m window bind = $mainMod_ALT, B, exec, ~/.config/rofi/launchers/type-6/launcher.sh -m filebrowser bind = $mainMod, X, exec, ~/.config/rofi/powermenu/type-6/powermenu.sh bind = $secondaryMod, V, exec, ~/.config/rofi/applets/bin/volume.sh