summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Guschin <guschin@altlinux.org>2025-03-02 12:20:16 +0400
committerAndrew Guschin <guschin@altlinux.org>2025-03-02 12:20:16 +0400
commit3cedaf288eee2e85617748ef4f302458a9f54eb8 (patch)
treeba34cacd6c6f13beeefe5e2cba43b053635f0cef
parentb160fe859e7c337630d273accafe2def229cb09a (diff)
feat: changes in hyprland config
- add screen lock - add laptop keyboard toggle - HDMI output mirrors eDP output
-rw-r--r--.config/hypr/hyprland.conf28
1 files changed, 22 insertions, 6 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index b69d354..d89d61d 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -1,17 +1,21 @@
monitor=eDP-1,preferred,auto,1.25
-monitor=HDMI-A-1,preferred,auto-left,1.25
-monitor=DP-1,preferred,auto-left,1.25
+# monitor=HDMI-A-1,preferred,auto-left,1.25
+monitor=HDMI-A-1,preferred,auto,1.25,mirror,eDP-1
+# monitor=HDMI-A-1,preferred,auto,1,mirror,eDP-1
+# monitor=DP-1,preferred,auto-left,1.25
+
+$terminal = wezterm start --always-new-process
+$menu = wofi --show run
+$locker = gtklock
exec-once = hyprpaper & waybar & telegram
+exec-once = xss-lock $locker
exec-once = hyprctl setcursor 'rose-pine' 30
exec-once = gsettings set org.gnome.desktop.interface cursor-theme 'rose-pine'
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
-$terminal = wezterm start --always-new-process
-$menu = wofi --show run
-
# Some default env vars.
# env = XCURSOR_SIZE,24
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
@@ -40,7 +44,9 @@ general {
decoration {
rounding = 0
- drop_shadow = false
+ shadow {
+ enabled = false
+ }
blur {
enabled = false
}
@@ -80,6 +86,11 @@ xwayland {
force_zero_scaling = true
}
+$LAPTOP_KB_ENABLED = true
+device {
+ name = at-translated-set-2-keyboard
+ enabled = $LAPTOP_KB_ENABLED
+}
windowrulev2 = workspace special:telegram, class:(org.telegram.desktop)
windowrulev2 = float, class:(org.telegram.desktop)
@@ -92,6 +103,8 @@ bind = $mainMod Shift, E, exit,
bind = $mainMod, V, togglefloating,
bind = $mainMod, p, exec, $menu
+bind = $mainMod, f, fullscreen
+
# Move focus with mainMod + arrow keys
bind = $mainMod, comma, movefocus, l
bind = $mainMod, period, movefocus, r
@@ -141,6 +154,8 @@ bind = $mainMod, mouse_up, workspace, e-1
bind = $mainMod, Next, workspace, e+1
bind = $mainMod, Prior, workspace, e-1
+bind = $mainMod, L, exec, loginctl lock-session
+
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
@@ -156,6 +171,7 @@ binde = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
binde = , XF86MonBrightnessUp, exec, brightnessctl set 5%+
binde = $mainMod, O, exec, switch-theme
+binde = $mainMod, I, exec, toggle-laptop-keyboard
binde = , Print, exec, grim -g "$(slurp)" - | wl-copy
# On Logitech Mechanical Mini the screenshot-looking key is emitting exactly