Browse Source

Merge cdf7246dc8 into d66c6b7f49

pull/181/merge
Kiran George 2 years ago committed by GitHub
parent
commit
ecb047e690
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      config/hypr/UserConfigs/Startup_Apps.conf
  2. 37
      config/hypr/hypridle.conf
  3. 121
      config/hypr/hyprlock.conf
  4. 7
      config/hypr/scripts/LockScreen.sh

5
config/hypr/UserConfigs/Startup_Apps.conf

@ -35,12 +35,15 @@ exec-once = wl-paste --type image --watch cliphist store
exec-once = $UserScripts/RainbowBorders.sh exec-once = $UserScripts/RainbowBorders.sh
# sway-idle with lock only # sway-idle with lock only
exec-once = swayidle -w timeout 900 '$lock' # exec-once = swayidle -w timeout 900 '$lock'
# sway-idle with lock and sleep # sway-idle with lock and sleep
#exec-once = swayidle -w timeout 900 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock' #exec-once = swayidle -w timeout 900 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock'
# sway idle without lock # sway idle without lock
#exec-once = swayidle -w timeout 900 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' #exec-once = swayidle -w timeout 900 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
# Using hypridle to start hyprlock
exec-once = hypridle -q
# Here are list of features available but disabled by default # Here are list of features available but disabled by default
#exec-once = swww query || swww init && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper #exec-once = swww query || swww init && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper

37
config/hypr/hypridle.conf

@ -0,0 +1,37 @@
# ██╗ ██╗██╗ ██╗██████╗ ██╗██████╗ ██╗ ███████╗
# ██║ ██║╚██╗ ██╔╝██╔══██╗██║██╔══██╗██║ ██╔════╝
# ███████║ ╚████╔╝ ██████╔╝██║██║ ██║██║ █████╗
# ██╔══██║ ╚██╔╝ ██╔═══╝ ██║██║ ██║██║ ██╔══╝
# ██║ ██║ ██║ ██║ ██║██████╔╝███████╗███████╗
# ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═════╝ ╚══════╝╚══════╝
#
general {
# lock_cmd = notify-send "lock!" # dbus/sysd lock command (loginctl lock-session)
# unlock_cmd = notify-send "unlock!" # same as above, but unlock
# before_sleep_cmd = notify-send "Zzz" # command ran before sleep
# after_sleep_cmd = notify-send "Awake!" # command ran after sleep
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
}
# Warn
listener {
timeout = 540 # 9 min
on-timeout = notify-send "You are idle!" # command to run when timeout has passed
on-resume = notify-send "Locking aborted!" # command to run when activity is detected after timeout has fired.
}
# Screenlock
listener {
timeout = 600 # 10 min
on-timeout = hyprlock # command to run when timeout has passed
# on-resume = notify-send "Welcome back to your desktop!" # command to run when activity is detected after timeout has fired.
}
# Suspend
listener {
timeout = 1200 # 20 min
on-timeout = systemctl suspend # command to run when timeout has passed
# on-resume = notify-send "Welcome back to your desktop!" # command to run when activity is detected after timeout has fired.
}

121
config/hypr/hyprlock.conf

@ -0,0 +1,121 @@
# ██╗ ██╗██╗ ██╗██████╗ ██╗ ██████╗ ██████╗██╗ ██╗
# ██║ ██║╚██╗ ██╔╝██╔══██╗██║ ██╔═══██╗██╔════╝██║ ██╔╝
# ███████║ ╚████╔╝ ██████╔╝██║ ██║ ██║██║ █████╔╝
# ██╔══██║ ╚██╔╝ ██╔═══╝ ██║ ██║ ██║██║ ██╔═██╗
# ██║ ██║ ██║ ██║ ███████╗╚██████╔╝╚██████╗██║ ██╗
# ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝
#
source = $HOME/.cache/wal/colors-hyprland
general {
grace = 0
}
background {
monitor =
path = $HOME/.config/rofi/.current_wallpaper # only png supported for now
color = $color7
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
blur_size = 4
blur_passes = 3 # 0 disables blurring
noise = 0.0117
contrast = 1.3000 # Vibrant!!!
brightness = 0.8000
vibrancy = 0.2100
vibrancy_darkness = 0.0
}
input-field {
monitor =
size = 250, 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 = true
outer_color = $color1
inner_color = $color0
font_color = $color7
fade_on_empty = true
placeholder_text = <i>Password...</i> # Text rendered in the input box when it's empty.
hide_input = false
position = 0, 100
halign = center
valign = bottom
}
# Date
label {
monitor =
text = cmd[update:18000000] echo "<b> "$(date +'%A, %-d %B %Y')" </b>"
color = $color5
font_size = 34
font_family = JetBrains Mono Nerd Font 10
position = 0, -100
halign = center
valign = top
}
# Week
label {
monitor =
text = cmd[update:18000000] echo "<b> "$(date +'Week %U')" </b>"
color = $color7
font_size = 24
font_family = JetBrains Mono Nerd Font 10
position = 0, -150
halign = center
valign = top
}
# Time
label {
monitor =
text = cmd[update:1000] echo "<b><big> $(date +"%I:%M:%S %p") </big></b>"
color = $color7
font_size = 94
font_family = JetBrains Mono Nerd Font 10
position = 0, 0
halign = center
valign = center
}
label {
monitor =
text = $USER
color = $color7
font_size = 18
font_family = Inter Display Medium
position = 0, 200
halign = center
valign = bottom
}
label {
monitor =
text = cmd[update:60000] echo "<b> "$(uptime -p)" </b>"
color = $color12
font_size = 24
font_family = JetBrains Mono Nerd Font 10
position = 0, 0
halign = right
valign = bottom
}
label {
monitor =
text = cmd[update:3600000] curl -s 'wttr.in?format=2' # For specific location : wttr.in/tokyo?format=2
color = $color10
font_size = 24
font_family = JetBrains Mono Nerd Font 10
position = 50, 0
halign = left
valign = bottom
}

7
config/hypr/scripts/LockScreen.sh

@ -2,6 +2,9 @@
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# For Swaylock # For Swaylock
CONFIG="$HOME/.config/swaylock/config" # CONFIG="$HOME/.config/swaylock/config"
sleep 0.5s; swaylock --config ${CONFIG} & disown # sleep 0.5s; swaylock --config ${CONFIG} & disown
# For Hyprlock
hyprlock -q
Loading…
Cancel
Save