fix: hyprland workspace on multiple monitors, hyprlock time & password input positioning
This commit is contained in:
34
.config/hypr/hypridle.conf
Normal file
34
.config/hypr/hypridle.conf
Normal file
@@ -0,0 +1,34 @@
|
||||
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 twice to turn on the display.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 150 # 2.5min.
|
||||
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||
on-resume = brightnessctl -r # monitor backlight restore.
|
||||
}
|
||||
|
||||
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
|
||||
listener {
|
||||
timeout = 150 # 2.5min.
|
||||
on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
|
||||
on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 300 # 5min
|
||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 330 # 5.5min
|
||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 1800 # 30min
|
||||
on-timeout = systemctl suspend # suspend pc
|
||||
}
|
||||
@@ -24,10 +24,12 @@ autogenerated = 0 # remove this line to remove the warning
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Monitors/
|
||||
monitor=,preferred,auto,auto,
|
||||
workspace=1, monitor:DP-2
|
||||
workspace=10, monitor:DP-3
|
||||
exec-once=hyperctl dispatch workspace 10
|
||||
exec-once=hyperctl dispatch workspace 1
|
||||
|
||||
workspace=name:1, monitor:DP-1
|
||||
exec-once=hyprctl dispatch workspace 1
|
||||
|
||||
workspace=name:10, monitor:DP-2
|
||||
exec-once=hyprctl dispatch workspace 10
|
||||
|
||||
|
||||
###################
|
||||
@@ -59,6 +61,7 @@ exec-once = waybar -c ~/.config/hypr/waybar/config.jsonc -s ~/.config/hypr/wayba
|
||||
exec-once = hyprpm reload -n
|
||||
exec-once = flatpak run com.github.wwmm.easyeffects -w
|
||||
exec-once = systemctl --user start hyprpolkitagent
|
||||
exec-once = hypridle
|
||||
|
||||
|
||||
#############################
|
||||
@@ -70,6 +73,10 @@ exec-once = systemctl --user start hyprpolkitagent
|
||||
env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
|
||||
env = GDK_BACKEND,wayland,x11
|
||||
env = QT_QPA_PLATFORM,wayland;xcb
|
||||
env = ELECTRON_OZONE_PLATFORM_HINT,auto
|
||||
|
||||
|
||||
###################
|
||||
### PERMISSIONS ###
|
||||
@@ -126,7 +133,7 @@ decoration {
|
||||
inactive_opacity = 1.0
|
||||
|
||||
shadow {
|
||||
enabled = true
|
||||
enabled = false
|
||||
range = 4
|
||||
render_power = 3
|
||||
color = rgba(1a1a1aee)
|
||||
@@ -134,7 +141,7 @@ decoration {
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#blur
|
||||
blur {
|
||||
enabled = true
|
||||
enabled = false
|
||||
size = 3
|
||||
passes = 1
|
||||
|
||||
@@ -144,7 +151,8 @@ decoration {
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#animations
|
||||
animations {
|
||||
enabled = yes, please :)
|
||||
#enabled = yes, please :)
|
||||
enabled = false
|
||||
|
||||
# Default curves, see https://wiki.hypr.land/Configuring/Animations/#curves
|
||||
# NAME, X0, Y0, X1, Y1
|
||||
@@ -200,6 +208,7 @@ master {
|
||||
misc {
|
||||
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
disable_hyprland_logo = true# If true disables the random hyprland logo / anime girl background. :(
|
||||
vfr = true
|
||||
}
|
||||
|
||||
|
||||
@@ -307,6 +316,14 @@ bind = $mainMod SHIFT, 8, hy3:movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, hy3:movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, hy3:movetoworkspace, 10
|
||||
|
||||
#workspace = name:10, monitor:DP-3
|
||||
#exec-once = hyperctl dispatch workspace 10
|
||||
|
||||
#workspace = name:1, monitor:DP-2
|
||||
#exec-once = hyperctl dispatch workspace 1
|
||||
|
||||
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, MINUS, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, MINUS, movetoworkspace, special:magic
|
||||
@@ -348,3 +365,7 @@ bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
# Fix some dragging issues with XWayland
|
||||
#windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||
|
||||
|
||||
bindel = $mainMod, p, exec, grimshot --notify savecopy anything
|
||||
bind = $mainMod, M, exec, hyprlock; playerctl pause
|
||||
|
||||
22
.config/hypr/hyprlock.conf
Normal file
22
.config/hypr/hyprlock.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
background {
|
||||
monitor = # monitor-agnostic
|
||||
blur_passes = 1
|
||||
blur_size = 7
|
||||
}
|
||||
|
||||
input-field {
|
||||
monitor =
|
||||
size = 10%, 3%
|
||||
font_family = Noto Sans
|
||||
dots_size = 0.08
|
||||
position = 0, -200
|
||||
fade_on_empty = false
|
||||
}
|
||||
|
||||
|
||||
label {
|
||||
monitor =
|
||||
text = $TIME
|
||||
font_size = 80
|
||||
position = 0,0
|
||||
}
|
||||
Reference in New Issue
Block a user