This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mazurek): add hyprlock and hypridle conf
- Loading branch information
1 parent
03ee9ad
commit 98f88fc
Showing
4 changed files
with
202 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
config/files/sneexy/mazurek/homedir/.config/hypr/hypridle.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# ╭────────────────────────────────────╮ | ||
# │ __ _ ____ │ | ||
# │ / / __ _____ ____(_)__/ / /__ │ | ||
# │ / _ \/ // / _ \/ __/ / _ / / -_) │ | ||
# │ /_//_/\_, / .__/_/ /_/\_,_/_/\__/ │ | ||
# │ /___/_/ │ | ||
# │ Hypridle │ | ||
# ╰────────────────────────────────────╯ | ||
|
||
# General/Common configuration. | ||
general { | ||
lock_cmd = pidof hyprlock || hyprlock | ||
before_sleep_cmd = loginctl lock-session | ||
after_sleep_cmd = hyprctl dispatch dpms on | ||
} | ||
|
||
# Laptop lock screen configuration. Only activates if laptop isn't plugged into a power source. | ||
|
||
# Lower brightness after 4 minutes. | ||
listener { | ||
timeout = 240 | ||
on-timeout = [ "$(cat /sys/class/power_supply/AC/online)" = "0" ] && brightnessctl -s s 35% | ||
on-resume = [ "$(cat /sys/class/power_supply/AC/online)" = "0" ] && brightnessctl -r | ||
} | ||
|
||
# Lock screen after 5 minutes. | ||
listener { | ||
timeout = 300 | ||
on-timeout = [ "$(cat /sys/class/power_supply/AC/online)" = "0" ] && loginctl lock-session | ||
} | ||
|
||
# Turn off display after 5 and a half minutes. | ||
listener { | ||
timeout = 380 | ||
on-timeout = [ "$(cat /sys/class/power_supply/AC/online)" = "0" ] && hyprctl dispatch dpms off | ||
on-resume = [ "$(cat /sys/class/power_supply/AC/online)" = "0" ] && hyprctl dispatch dpms on | ||
} | ||
|
||
# Suspend device after 6 minutes. | ||
listener { | ||
timeout = 360 | ||
on-timeout = [ "$(cat /sys/class/power_supply/AC/online)" = "0" ] && systemctl suspend | ||
} | ||
|
||
# Main lock screen configurations. Activates if device is plugged in. | ||
|
||
# Lock screen after 9 minutes. | ||
listener { | ||
timeout = 540 | ||
on-timeout = [ "$(cat /sys/class/power_supply/AC/online)" = "1" ] && loginctl lock-session | ||
} | ||
|
||
# Turn off display after 10 whole minutes. | ||
listener { | ||
timeout = 600 | ||
on-timeout = [ "$(cat /sys/class/power_supply/AC/online)" = "1" ] && hyprctl dispatch dpms off | ||
on-resume = [ "$(cat /sys/class/power_supply/AC/online)" = "1" ] && hyprctl dispatch dpms on | ||
} |
80 changes: 80 additions & 0 deletions
80
config/files/sneexy/mazurek/homedir/.config/hypr/hyprlock.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# ╭───────────────────────────────────────╮ | ||
# │ __ __ __ │ | ||
# │ / / __ _____ ____/ /__ ____/ /__ │ | ||
# │ / _ \/ // / _ \/ __/ / _ \/ __/ '_/ │ | ||
# │ /_//_/\_, / .__/_/ /_/\___/\__/_/\_\ │ | ||
# │ /___/_/ │ | ||
# │ Hyprlock │ | ||
# ╰───────────────────────────────────────╯ | ||
|
||
source = $HOME/.config/hypr/mocha.conf | ||
|
||
$font = JetBrainsMono Nerd Font | ||
|
||
# GENERAL | ||
general { | ||
disable_loading_bar = true | ||
} | ||
|
||
# BACKGROUND | ||
background { | ||
monitor = | ||
path = # path to PNG background | ||
blur_passes = 0 | ||
color = $base | ||
} | ||
|
||
# TIME | ||
label { | ||
monitor = | ||
text = cmd[update:30000] echo "$(date +"%R")" | ||
color = $text | ||
font_size = 90 | ||
font_family = $font | ||
position = -30, 0 | ||
halign = right | ||
valign = top | ||
} | ||
|
||
# DATE | ||
label { | ||
monitor = | ||
text = cmd[update:43200000] echo "$(date +"%A,%e %B %Y")" | ||
color = $text | ||
font_size = 25 | ||
font_family = $font | ||
position = -30, -150 | ||
halign = right | ||
valign = top | ||
} | ||
|
||
# USER | ||
label { | ||
monitor = | ||
text = Logging in as <span foreground="##$tealAlpha">$USER</span> | ||
color = $text | ||
font_size = 25 | ||
font_family = $font | ||
position = 0, 50 | ||
halign = center | ||
valign = center | ||
} | ||
|
||
# INPUT FIELD | ||
input-field { | ||
monitor = | ||
size = 300, 60 | ||
outline_thickness = 2 | ||
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 | ||
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0 | ||
dots_center = true | ||
outer_color = $surface0 | ||
inner_color = $surface0 | ||
font_color = $text | ||
fade_on_empty = false | ||
placeholder_text = <i><span foreground="##$textAlpha">Input Password...</span></i> | ||
hide_input = false | ||
position = 0, -50 | ||
halign = center | ||
valign = center | ||
} |
62 changes: 62 additions & 0 deletions
62
config/files/sneexy/mazurek/homedir/.config/hypr/mocha.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
$rosewaterAlpha = f5e0dc | ||
$flamingoAlpha = f2cdcd | ||
$pinkAlpha = f5c2e7 | ||
$mauveAlpha = cba6f7 | ||
$redAlpha = f38ba8 | ||
$maroonAlpha = eba0ac | ||
$peachAlpha = fab387 | ||
$yellowAlpha = f9e2af | ||
$greenAlpha = a6e3a1 | ||
$tealAlpha = 94e2d5 | ||
$skyAlpha = 89dceb | ||
$sapphireAlpha = 74c7ec | ||
$blueAlpha = 89b4fa | ||
$lavenderAlpha = b4befe | ||
|
||
$textAlpha = cdd6f4 | ||
$subtext1Alpha = bac2de | ||
$subtext0Alpha = a6adc8 | ||
|
||
$overlay2Alpha = 9399b2 | ||
$overlay1Alpha = 7f849c | ||
$overlay0Alpha = 6c7086 | ||
|
||
$surface2Alpha = 585b70 | ||
$surface1Alpha = 45475a | ||
$surface0Alpha = 313244 | ||
|
||
$baseAlpha = 1e1e2e | ||
$mantleAlpha = 181825 | ||
$crustAlpha = 11111b | ||
|
||
$rosewater = 0xfff5e0dc | ||
$flamingo = 0xfff2cdcd | ||
$pink = 0xfff5c2e7 | ||
$mauve = 0xffcba6f7 | ||
$red = 0xfff38ba8 | ||
$maroon = 0xffeba0ac | ||
$peach = 0xfffab387 | ||
$yellow = 0xfff9e2af | ||
$green = 0xffa6e3a1 | ||
$teal = 0xff94e2d5 | ||
$sky = 0xff89dceb | ||
$sapphire = 0xff74c7ec | ||
$blue = 0xff89b4fa | ||
$lavender = 0xffb4befe | ||
|
||
$text = 0xffcdd6f4 | ||
$subtext1 = 0xffbac2de | ||
$subtext0 = 0xffa6adc8 | ||
|
||
$overlay2 = 0xff9399b2 | ||
$overlay1 = 0xff7f849c | ||
$overlay0 = 0xff6c7086 | ||
|
||
$surface2 = 0xff585b70 | ||
$surface1 = 0xff45475a | ||
$surface0 = 0xff313244 | ||
|
||
$base = 0xff1e1e2e | ||
$mantle = 0xff181825 | ||
$crust = 0xff11111b | ||
|