Add hypr utils
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
general {
|
||||||
|
lock_cmd = pidof hyprlock || hyprlock
|
||||||
|
before_sleep_cmd = loginctl lock-session
|
||||||
|
after_sleep_cmd = hyprctl dispatch dpms on
|
||||||
|
}
|
||||||
|
|
||||||
|
# Dim after 2.5 minutes
|
||||||
|
listener {
|
||||||
|
timeout = 150
|
||||||
|
on-timeout = brightnessctl set 10%
|
||||||
|
on-resume = brightnessctl set 100%
|
||||||
|
}
|
||||||
|
|
||||||
|
# Lock after 5 minutes
|
||||||
|
listener {
|
||||||
|
timeout = 300
|
||||||
|
on-timeout = loginctl lock-session
|
||||||
|
}
|
||||||
|
|
||||||
|
# Turn off the screen after 6 minutes
|
||||||
|
listener {
|
||||||
|
timeout = 360
|
||||||
|
on-timeout = hyprctl dispatch dpms off
|
||||||
|
on-resume = hyprctl dispatch dpms on
|
||||||
|
}
|
||||||
|
|
||||||
|
# Suspend after 20 minutes
|
||||||
|
listener {
|
||||||
|
timeout = 1200
|
||||||
|
on-timeout = systemctl suspend
|
||||||
|
}
|
||||||
@@ -9,11 +9,14 @@ monitor=eDP-1, 1920x1080@60.05, 0x0, 1
|
|||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
exec-once = hyprpaper
|
exec-once = hyprpaper
|
||||||
|
exec-once = hypridle
|
||||||
|
exec-once = hyprsunset
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
|
|
||||||
$terminal = kitty
|
$terminal = kitty
|
||||||
$fileManager = kitty -e ranger
|
$fileManager = kitty -e ranger
|
||||||
$menu = pgrep wofi > /dev/null 2>&1 && killall wofi || wofi --show run
|
$browser = firefox
|
||||||
|
$menu = pgrep wofi > /dev/null 2>&1 && killall wofi || wofi --show drun
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
# Input
|
# Input
|
||||||
@@ -74,15 +77,22 @@ misc {
|
|||||||
|
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
|
# Programs
|
||||||
bind = $mainMod, Return, exec, $terminal
|
bind = $mainMod, Return, exec, $terminal
|
||||||
bind = $mainMod, E, exec, $fileManager
|
bind = $mainMod, E, exec, $fileManager
|
||||||
|
bind = $mainMod, W, exec, $browser
|
||||||
bind = $mainMod, D, exec, $menu
|
bind = $mainMod, D, exec, $menu
|
||||||
|
|
||||||
|
# Windows
|
||||||
bind = $mainMod, Q, killactive,
|
bind = $mainMod, Q, killactive,
|
||||||
bind = $mainMod SHIFT, SPACE, togglefloating,
|
bind = $mainMod SHIFT, SPACE, togglefloating
|
||||||
bind = $mainMod, F, fullscreen
|
bind = $mainMod, F, fullscreen
|
||||||
bind = $mainMod SHIFT, S, exec, hyprshot --mode region --output-folder ~/pictures/screenshots
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
|
|
||||||
|
# Screen lock
|
||||||
|
bind = $mainMod, L, exec, hyprlock
|
||||||
|
|
||||||
|
# Workspaces
|
||||||
bind = $mainMod, 1, workspace, 1
|
bind = $mainMod, 1, workspace, 1
|
||||||
bind = $mainMod, 2, workspace, 2
|
bind = $mainMod, 2, workspace, 2
|
||||||
bind = $mainMod, 3, workspace, 3
|
bind = $mainMod, 3, workspace, 3
|
||||||
@@ -96,3 +106,11 @@ bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|||||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, H, swapwindow, l
|
||||||
|
bind = $mainMod SHIFT, L, swapwindow, r
|
||||||
|
bind = $mainMod SHIFT, K, swapwindow, u
|
||||||
|
bind = $mainMod SHIFT, J, swapwindow, d
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
bind = $mainMod SHIFT, S, exec, hyprshot --mode region --output-folder ~/pictures/screenshots
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
$fond = FiraCode Nerd Font Mono
|
||||||
|
|
||||||
|
general {
|
||||||
|
hide_cursor = false
|
||||||
|
}
|
||||||
|
|
||||||
|
animations {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
background {
|
||||||
|
monitor = eDP-1
|
||||||
|
path = ~/pictures/wallpapers/forest-bridge.jpg
|
||||||
|
blur_passes = 2
|
||||||
|
}
|
||||||
|
|
||||||
|
input-field {
|
||||||
|
monitor = eDP-1
|
||||||
|
size = 20%, 5%
|
||||||
|
outline_thickness = 2
|
||||||
|
inner_color = rgba(0, 0, 0, 0.0) # no fill
|
||||||
|
|
||||||
|
outer_color = rgb(4f4f4f)
|
||||||
|
check_color = rgb(1a5fb4)
|
||||||
|
fail_color = rgb(ed333b)
|
||||||
|
|
||||||
|
font_color = rgb(deddda)
|
||||||
|
fade_on_empty = false
|
||||||
|
rounding = 5
|
||||||
|
|
||||||
|
font_family = $font
|
||||||
|
placeholder_text = Say friend and enter
|
||||||
|
fail_text = $PAMFAIL
|
||||||
|
|
||||||
|
position = 0, -20
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
monitor = eDP-1
|
||||||
|
text = $TIME
|
||||||
|
font_size = 40
|
||||||
|
font_family = $font
|
||||||
|
|
||||||
|
position = 0, 120
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
monitor = eDP-1
|
||||||
|
text = cmd[update:60000] date +"%A, %d %B %Y"
|
||||||
|
font_size = 20
|
||||||
|
font_family = $font
|
||||||
|
|
||||||
|
position = 0, 60
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
monitor = eDP-1
|
||||||
|
text = $LAYOUT[en,ru]
|
||||||
|
font_size = 13
|
||||||
|
onclick = hyprctl switchxkblayout all next
|
||||||
|
|
||||||
|
position = 220, -20
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
splash = false
|
||||||
|
|
||||||
wallpaper {
|
wallpaper {
|
||||||
monitor = eDP-1
|
monitor = eDP-1
|
||||||
path = ~/pictures/wallpapers/forest-bridge.jpg
|
path = ~/pictures/wallpapers/forest-bridge.jpg
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
max-gamma = 180
|
||||||
|
|
||||||
|
profile {
|
||||||
|
time = 7:00
|
||||||
|
identity = true
|
||||||
|
}
|
||||||
|
|
||||||
|
profile {
|
||||||
|
time = 22:00
|
||||||
|
temperature = 3000
|
||||||
|
gamma = 0.9
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user