From 06d1242317f7159ccf3014f0a1480e7c56236ebb Mon Sep 17 00:00:00 2001 From: Mohammad Reza Karimi Date: Sun, 4 Jan 2026 21:28:36 -0500 Subject: add all sorts of things --- hyprland/dot-config/hypr/hyprland.conf | 65 ++++++++++++++-------- hyprland/dot-config/hypr/monitors.conf | 1 + .../dot-config/hyprdynamicmonitors/config.toml | 34 +++++++++++ .../hyprdynamicmonitors/home_double.conf | 2 + .../hyprdynamicmonitors/laptop_only.conf | 1 + hyprland/dot-config/hyprdynamicmonitors/work.conf | 2 + .../user/hyprpolkitagent.service.d/override.conf | 1 - hyprland/dot-config/uwsm/env | 6 +- 8 files changed, 84 insertions(+), 28 deletions(-) create mode 120000 hyprland/dot-config/hypr/monitors.conf create mode 100644 hyprland/dot-config/hyprdynamicmonitors/config.toml create mode 100644 hyprland/dot-config/hyprdynamicmonitors/home_double.conf create mode 100644 hyprland/dot-config/hyprdynamicmonitors/laptop_only.conf create mode 100644 hyprland/dot-config/hyprdynamicmonitors/work.conf (limited to 'hyprland') diff --git a/hyprland/dot-config/hypr/hyprland.conf b/hyprland/dot-config/hypr/hyprland.conf index 731e4b6..f1cbc99 100644 --- a/hyprland/dot-config/hypr/hyprland.conf +++ b/hyprland/dot-config/hypr/hyprland.conf @@ -1,4 +1,14 @@ -monitor=,preferred,auto,auto +source = $HOME/.config/hypr/monitors.conf + +# workspace = 1, persistent:true +# workspace = 2, persistent:true +# workspace = 3, persistent:true +# workspace = 4, persistent:true +# workspace = 5, persistent:true +# workspace = 6, persistent:true +# workspace = 7, persistent:true +# workspace = 8, persistent:true +# workspace = 9, persistent:true $terminal = app2unit -- alacritty $menu = fuzzel --launch-prefix="app2unit --" @@ -10,12 +20,13 @@ $activeBorderColor = rgb(005577) # rgba(71CEADee) $inactiveBorderColor = rgb(444444) general { - gaps_in = 5 - gaps_out = 15 - border_size = 2 + # gaps_in = 5 + # gaps_out = 15 + gaps_in = 0 + gaps_out = 0 + border_size = 1 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg - # col.active_border = $activeBorderColor col.inactive_border = $inactiveBorderColor resize_on_border = false @@ -24,7 +35,8 @@ general { } decoration { - rounding = 10 + # rounding = 10 + rounding = 0 rounding_power = 2 active_opacity = 1.0 @@ -41,7 +53,6 @@ decoration { animations { enabled = yes - # Default curves, see https://wiki.hypr.land/Configuring/Animations/#curves # NAME, X0, Y0, X1, Y1 bezier = easeOutQuint, 0.23, 1, 0.32, 1 bezier = easeInOutCubic, 0.65, 0.05, 0.36, 1 @@ -49,34 +60,32 @@ animations { bezier = almostLinear, 0.5, 0.5, 0.75, 1 bezier = quick, 0.15, 0, 0.1, 1 - # Default animations, see https://wiki.hypr.land/Configuring/Animations/ # NAME, ONOFF, SPEED, CURVE, [STYLE] animation = global, 1, 10, default - animation = border, 1, 5.39, easeOutQuint - animation = windows, 1, 4.79, easeOutQuint - animation = windowsIn, 1, 4.1, easeOutQuint, popin 87% - animation = windowsOut, 1, 1.49, linear, popin 87% - animation = fadeIn, 1, 1.73, almostLinear - animation = fadeOut, 1, 1.46, almostLinear - animation = fade, 1, 3.03, quick + animation = border, 1, 2.39, easeOutQuint + animation = windows, 0, 4.79, easeOutQuint + animation = windowsIn, 0, 1.49, easeOutQuint, popin 87% + animation = windowsOut, 0, 1.49, linear, popin 87% + animation = fadeIn, 0, 1.73, almostLinear + animation = fadeOut, 0, 1.46, almostLinear + animation = fade, 0, 3.03, quick animation = layers, 1, 3.81, easeOutQuint animation = layersIn, 1, 4, easeOutQuint, fade animation = layersOut, 1, 1.5, linear, fade animation = fadeLayersIn, 1, 1.79, almostLinear animation = fadeLayersOut, 1, 1.39, almostLinear - animation = workspaces, 1, 1.94, almostLinear, fade - animation = workspacesIn, 1, 1.21, almostLinear, fade - animation = workspacesOut, 1, 1.94, almostLinear, fade + animation = workspaces, 0, 1.94, almostLinear, fade + animation = workspacesIn, 0, 1.21, almostLinear, fade + animation = workspacesOut, 0, 1.94, almostLinear, fade animation = zoomFactor, 1, 7, quick } # Ref https://wiki.hypr.land/Configuring/Workspace-Rules/ # "Smart gaps" / "No gaps when only" -# uncomment all if you wish to use that. # workspace = w[tv1], gapsout:0, gapsin:0 # workspace = f[1], gapsout:0, gapsin:0 -# windowrule = bordersize 0, floating:0, onworkspace:w[tv1] -# windowrule = bordersize 0, floating:0, onworkspace:f[1] +# windowrule = rounding 0, bordersize 0, floating:0, onworkspace:w[tv1] +# windowrule = rounding 0, bordersize 0, floating:0, onworkspace:f[1] # See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more dwindle { @@ -93,6 +102,7 @@ master { misc { force_default_wallpaper = 0 disable_hyprland_logo = true + vfr = true } input { @@ -112,6 +122,10 @@ input { } } +cursor { + no_hardware_cursors = 1 +} + # See https://wiki.hypr.land/Configuring/Gestures # gesture = 3, horizontal, workspace @@ -119,6 +133,7 @@ $osdclient = swayosd-client --monitor "$(hyprctl monitors -j | jq -r '.[] | sele # Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more bind = SUPER, return, exec, $terminal +# bind = SUPER CTRL, return, exec, $terminal --config-file "$XDG_CONFIG_HOME/alacritty/alacritty-light.toml" bind = SUPER SHIFT, C, killactive, bind = SUPER SHIFT, E, exec, $exit @@ -134,6 +149,8 @@ bind = SUPER SHIFT, comma, movewindow, mon:+1 silent bind = SUPER, P, exec, $menu bind = SUPER, B, exec, $browser bind = SUPER, X, exec, $lock +bind = SUPER, M, exec, $terminal --config-file "$XDG_CONFIG_HOME/alacritty/alacritty-light.toml" -e aerc +# bind = SUPER, M, exec, app2unit -- ghostty --theme="Belafonte Day" -e aerc # bind = SUPER, E, exec, rofi -show emoji # bind = SUPER, M, exec, app2unit -- emacsclient -c @@ -194,9 +211,9 @@ bindd = , PRINT, Screenshot with editing, exec, screenshot-hypr bindd = SHIFT, PRINT, Screenshot to clipboard, exec, screenshot-hypr smart bindd = SUPER, PRINT, Color picker, exec, pkill hyprpicker || hyprpicker -a - # Ignore maximize requests from apps. You'll probably like this. -windowrule = suppressevent maximize, class:.* +windowrule = match:class *, suppress_event maximize # Fix some dragging issues with XWayland -windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 +# windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 + diff --git a/hyprland/dot-config/hypr/monitors.conf b/hyprland/dot-config/hypr/monitors.conf new file mode 120000 index 0000000..7291d4a --- /dev/null +++ b/hyprland/dot-config/hypr/monitors.conf @@ -0,0 +1 @@ +/home/moreka/.config/hyprdynamicmonitors/laptop_only.conf \ No newline at end of file diff --git a/hyprland/dot-config/hyprdynamicmonitors/config.toml b/hyprland/dot-config/hyprdynamicmonitors/config.toml new file mode 100644 index 0000000..39062a4 --- /dev/null +++ b/hyprland/dot-config/hyprdynamicmonitors/config.toml @@ -0,0 +1,34 @@ +[general] +destination = "$HOME/.config/hypr/monitors.conf" + +[profiles.laptop_only] +config_file = "laptop_only.conf" +config_file_type = "static" + +[[profiles.laptop_only.conditions.required_monitors]] +name = "eDP-1" +monitor_tag = "laptop" + +[profiles.work] +config_file = "work.conf" +config_file_type = "static" + +[[profiles.work.conditions.required_monitors]] +name = "eDP-1" +monitor_tag = "laptop" + +[[profiles.work.conditions.required_monitors]] +description = "Dell Inc. DELL P2723D FNHTH14" +monitor_tag = "external" + +[profiles.home_double] +config_file = "home_double.conf" +config_file_type = "static" + +[[profiles.home_double.conditions.required_monitors]] +name = "eDP-1" +monitor_tag = "laptop" + +[[profiles.home_double.conditions.required_monitors]] +description = "Lenovo Group Limited M15 V30ANMLM" +monitor_tag = "external" diff --git a/hyprland/dot-config/hyprdynamicmonitors/home_double.conf b/hyprland/dot-config/hyprdynamicmonitors/home_double.conf new file mode 100644 index 0000000..46e17b2 --- /dev/null +++ b/hyprland/dot-config/hyprdynamicmonitors/home_double.conf @@ -0,0 +1,2 @@ +monitor=DP-1,1920x1080@60.00,0x0,1.25,transform,1 +monitor=eDP-1,2880x1800@120,1536x0,2.0 diff --git a/hyprland/dot-config/hyprdynamicmonitors/laptop_only.conf b/hyprland/dot-config/hyprdynamicmonitors/laptop_only.conf new file mode 100644 index 0000000..b0341ba --- /dev/null +++ b/hyprland/dot-config/hyprdynamicmonitors/laptop_only.conf @@ -0,0 +1 @@ +monitor=eDP-1,2880x1800@120,0x0,2.0 diff --git a/hyprland/dot-config/hyprdynamicmonitors/work.conf b/hyprland/dot-config/hyprdynamicmonitors/work.conf new file mode 100644 index 0000000..06592cb --- /dev/null +++ b/hyprland/dot-config/hyprdynamicmonitors/work.conf @@ -0,0 +1,2 @@ +monitor=eDP-1,disable +monitor=HDMI-A-1,2560x1440@59.95,0x0,1.0 diff --git a/hyprland/dot-config/systemd/user/hyprpolkitagent.service.d/override.conf b/hyprland/dot-config/systemd/user/hyprpolkitagent.service.d/override.conf index 0f6e052..2b17997 100644 --- a/hyprland/dot-config/systemd/user/hyprpolkitagent.service.d/override.conf +++ b/hyprland/dot-config/systemd/user/hyprpolkitagent.service.d/override.conf @@ -1,3 +1,2 @@ [Service] ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "Hyprland" "" -Slice=session-graphical.slice diff --git a/hyprland/dot-config/uwsm/env b/hyprland/dot-config/uwsm/env index a2bd337..447ac24 100644 --- a/hyprland/dot-config/uwsm/env +++ b/hyprland/dot-config/uwsm/env @@ -7,9 +7,9 @@ export BROWSER=qutebrowser export TERMINAL=alacritty # Wayland configuration -export GDK_BACKEND='wayland,x11,*' -export QT_QPA_PLATFORM='wayland;xcb' -export QT_STYLE_OVERRIDE=kvantum +export QT_QPA_PLATFORM=wayland +export QT_QPA_PLATFORMTHEME=qt5ct +# export QT_STYLE_OVERRIDE=kvantum export SDL_VIDEODRIVER=wayland export OZONE_PLATFORM=wayland export ELECTRON_OZONE_PLATFORM_HINT=wayland -- cgit v1.2.3-71-gdd5e