Advertisement
Guest User

Hyprlock video background hack

a guest
Jun 15th, 2025
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | Software | 0 0
  1. ### file : ~/.config/wlogout/layout
  2. {
  3. "label" : "lock",
  4. "action" : "mpvpaper -l overlay -vs -o 'no-audio loop' '*' ~/Wallpapers/Video/itachi-uchiha.1920x1080.mp4 -f ; sleep .5 ; hyprlock ; pkill mpvpaper",
  5. "text" : "Lock",
  6. "keybind" : "l"
  7. }
  8. {
  9. "label" : "hibernate",
  10. "action" : "systemctl hibernate",
  11. "text" : "Hibernate",
  12. "keybind" : "h"
  13. }
  14. {
  15. "label" : "logout",
  16. "action" : "loginctl terminate-user $USER",
  17. "text" : "Logout",
  18. "keybind" : "e"
  19. }
  20. {
  21. "label" : "shutdown",
  22. "action" : "systemctl poweroff",
  23. "text" : "Shutdown",
  24. "keybind" : "s"
  25. }
  26. {
  27. "label" : "suspend",
  28. "action" : "systemctl suspend",
  29. "text" : "Suspend",
  30. "keybind" : "u"
  31. }
  32. {
  33. "label" : "reboot",
  34. "action" : "systemctl reboot",
  35. "text" : "Reboot",
  36. "keybind" : "r"
  37. }
  38.  
  39. ### file : ~/.config/hypr/hyprlock.conf
  40. $path = ~/Wallpapers
  41.  
  42. general {
  43. disable_loading_bar = true
  44. hide_cursor = true
  45. grace = 0
  46. no_fade_in = false
  47. no_fade_out = false
  48. ignore_empty_input = false
  49. pam_module = hyprlock
  50. text_trim = true
  51. immediate_render = true
  52. fractional_scaling = 2
  53. #screencopy_mode
  54. fail_timeout = 0.1
  55. }
  56.  
  57. #animations {
  58. # animation = fadeIn, 0
  59. # animation = fadeOut, 0
  60. #}
  61.  
  62. background {
  63. monitor =
  64. path = #$path/bg.jpg
  65. color = rgba(0, 0, 0, 0)
  66. blur_passes = 0
  67. blur_size = 4
  68. noise = 0.0
  69. contrast = 1.0
  70. brightness = 0.8
  71. vibrancy = 0.0
  72. vibrancy_darkness = 0.0
  73. }
  74.  
  75. image {
  76. monitor =
  77. path = $path/user.png
  78. size = 200
  79. rounding = -1
  80. border_size = 2
  81. border_color = rgba(255, 255, 255, 1)
  82. rotate = 0
  83. #reload_time = -1
  84. #reload_cmd =
  85. position = 0,0
  86. halign = center
  87. valign = center
  88. }
  89.  
  90. shape {
  91. monitor =
  92. size = 200, 0
  93. border_size = 1
  94. border_color = rgba(255, 255, 255, 1)
  95. position = 0,330
  96. halign = center
  97. valign = bottom
  98. }
  99.  
  100. input-field {
  101. monitor =
  102. size = 200, 50
  103. outline_thickness = 0
  104. dots_size = 0.33
  105. dots_spacing = 0.15
  106. dots_center = true
  107. dots_rounding = -1
  108. outer_color = rgba(0, 0, 0, 0)
  109. inner_color = rgba(255, 255, 255, 0)
  110. font_color = rgba(255, 255, 255, 1)
  111. fade_on_empty = false
  112. fade_timeout = 1
  113. placeholder_text = <i> Enter Password </i>
  114. hide_input = false
  115. rounding = -1
  116. check_color = rgba(0, 0, 0, 0)
  117. fail_color = rgba(255, 0, 0, 0)
  118. fail_text = <i> Authentication failure </i>
  119. fail_transition = 10
  120. capslock_color = -1
  121. numlock_color = -1
  122. bothlock_color = -1
  123. invert_numlock = false
  124. swap_font_color = false
  125. position = 0,320
  126. halign = center
  127. valign = bottom
  128. }
  129.  
  130. label {
  131. monitor =
  132. text = cmd[update:18000000] echo "<b> "$(date +'%A, %-d %B %Y')" </b>"
  133. color = rgba(255, 255, 255)
  134. font_size = 24
  135. font_family = Noto Sans 10
  136.  
  137. position = 0, -300
  138. halign = center
  139. valign = top
  140. }
  141.  
  142. label {
  143. monitor =
  144. text = cmd[update:30000] echo "<b><big> $(date +"%I:%M %p") </big></b>" # AM/PM
  145. #text = cmd[update:1000] echo "<b><big> $(date +"%H:%M:%S") </big></b>" # 24H
  146. color = rgba(255, 255, 255)
  147. font_size = 94
  148. font_family = Noto Sans 10
  149.  
  150. position = 0, -100
  151. halign = center
  152. valign = top
  153. }
  154.  
  155.  
  156. label {
  157. monitor =
  158. size = 150, 35
  159. text = $USER
  160. position = 0, -150
  161. }
  162.  
  163. ### file : ~/.config/hypr/hypridle.conf
  164. #$monitor_disable = hyprctl keyword monitor 'HDMI-A-1,disable'
  165. #$monitor_max = hyprctl keyword monitor 'HDMI-A-1, [email protected], auto-right,1'
  166. #$monitor_med = hyprctl keyword monitor 'HDMI-A-1, [email protected], auto-right,1'
  167. #$monitor_min = hyprctl keyword monitor 'HDMI-A-1, [email protected], auto-right,0.5'
  168.  
  169. $video_bg = pkill mpvpaper ; mpvpaper -l top -vs -o "no-audio loop" '*' ~/Wallpapers/Video/itachi-uchiha.1920x1080.mp4 -f
  170.  
  171. general {
  172. #lock_cmd = loginctl lock-session
  173. #unlock_cmd = loginctl unlock-session
  174. before_sleep_cmd = notify-send "Going to sleep"
  175. after_sleep_cmd = brightnessctl -r ; pidof hyprlock || ($video_bg ; hyprlock ; pkill mpvpaper)
  176. ignore_dbus_inhibit = false
  177. ignore_systemd_inhibit = false
  178. }
  179.  
  180. listener {
  181. timeout = 30
  182. on-timeout = brightnessctl -s ; brightnessctl set 0%
  183. on-resume = brightnessctl -r
  184. }
  185.  
  186. listener {
  187. timeout = 120
  188. on-timeout = systemctl suspend
  189. on-resume = brightnessctl -r ; pidof hyprlock || ($video_bg ; hyprlock ; pkill mpvpaper)
  190. }
  191.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement