]> Freerunner's - dotfiles.git/commitdiff
hypr: integrate base16
authorAndre Ramnitz <tux.rising@gmail.com>
Sat, 14 Sep 2024 23:01:11 +0000 (01:01 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sat, 14 Sep 2024 23:05:42 +0000 (01:05 +0200)
config/dot-config/hypr/colors.conf
config/dot-config/hypr/hyprland.conf

index e578961ce2fea7b0386c6aa5c4a24e785ff3436a..1e2c81feee635b2847de2e347ac5aa55a836ff0e 100644 (file)
@@ -1,20 +1,19 @@
-## Base16 Rosé Pine
-# Author: Emilia Dunfelt &lt;sayhi@dunfelt.se&gt;
-
-$base00 = 0xff191724
-$base01 = 0xff1f1d2e
-$base02 = 0xff26233a
-$base03 = 0xff555169
-$base04 = 0xff6e6a86
-$base05 = 0xffe0def4
-$base06 = 0xfff0f0f3
-$base07 = 0xffc5c3ce
-$base08 = 0xffe2e1e7
-$base09 = 0xffeb6f92
-$base0A = 0xfff6c177
-$base0B = 0xffebbcba
-$base0C = 0xff31748f
-$base0D = 0xff9ccfd8
-$base0E = 0xffc4a7e7
-$base0F = 0xffe5e5e5
+# Base16 Ocean
+# Author: Chris Kempson (http://chriskempson.com)
 
+$base00 = 0xff2b303b
+$base01 = 0xff343d46
+$base02 = 0xff4f5b66
+$base03 = 0xff65737e
+$base04 = 0xffa7adba
+$base05 = 0xffc0c5ce
+$base06 = 0xffdfe1e8
+$base07 = 0xffeff1f5
+$base08 = 0xffbf616a
+$base09 = 0xffd08770
+$base0A = 0xffebcb8b
+$base0B = 0xffa3be8c
+$base0C = 0xff96b5b4
+$base0D = 0xff8fa1b3
+$base0E = 0xffb48ead
+$base0F = 0xffab7967
\ No newline at end of file
index edbf182b7e81b5f1ca03e73052e0f62a16dc8a19..5822d61639bcf83e61f4a99fdc9c8c08d73be578 100644 (file)
@@ -26,18 +26,17 @@ env = XDG_SESSION_DESKTOP,Hyprland
 
 # Some default env vars.
 env = QT_QPA_PLATFORM,wayland;xcb
-#env = QT_AUTO_SCREEN_SCALE_FACTOR,1
 env = QT_QPA_PLATFORMTHEME,kde
 
 env = GDK_BACKEND,wayland,x11,*
-#env = GDK_SCALE=1 # scaling XWayland clients
 env = GTK_USE_PORTAL,1
 
 env = MOZ_ENABLE_WAYLAND,1
 env = SDL_VIDEODRIVER,wayland # remove or set to x11 for games providing older versions of SDL
 
-# use older kernel DRM API (allow-tearing), not necessary above Linux 6.8
-# env = WLR_DRM_NO_ATOMIC,0
+# probably necessary for hi-dpi displays:
+#env = GDK_SCALE=1 # scaling XWayland clients
+#env = QT_AUTO_SCREEN_SCALE_FACTOR,1
 
 # set cursor
 env = XCURSOR_THEME,BreezeX-Black
@@ -64,6 +63,7 @@ input {
     kb_rules =
 
     follow_mouse = 1
+       focus_on_close = 1
 
     touchpad {
         natural_scroll = no
@@ -74,14 +74,13 @@ input {
 
 general {
     # See https://wiki.hyprland.org/Configuring/Variables/ for more
-
-    gaps_in = 6
-    gaps_out = 12
-    border_size = 1
-    col.active_border = $base0D $base0C 40deg
-    col.inactive_border = $base04 $base02 40deg
-    col.nogroup_border_active = rgba(993399ee) rgba(663399ee) 40deg
-    col.nogroup_border = rgba(73267377) rgba(4c267377) 40deg
+       border_size = 1
+    gaps_in = 5
+    gaps_out = 10
+    col.active_border = $base09 $base0A 90deg
+    col.inactive_border = $base02 $base01 90deg
+    # col.nogroup_border_active = $base0D $base04 40deg
+    # col.nogroup_border = $base04 $base0D 40deg
 
     layout = dwindle
 
@@ -109,15 +108,19 @@ decoration {
     rounding = 8
     blur {
         enabled = true
-        size = 3
+        size = 2
         passes = 2
         vibrancy = 0.1696
     }
 
     drop_shadow = true
-    shadow_range = 8
-    shadow_render_power = 3
-    col.shadow = rgba(1a1a1aee)
+    shadow_range = 14
+       rounding = 8
+    shadow_render_power = 2
+    col.shadow = $base02
+       dim_special = 0.3
+       dim_inactive = true
+       dim_strength = 0.2
 }
 
 animations {
@@ -158,6 +161,8 @@ misc {
        key_press_enables_dpms = true
        vrr = 2
        vfr = false #enable for battery savings
+       render_unfocused_fps = 60
+       allow_session_lock_restore = 1
 }
 
 # Example per-device config
@@ -169,22 +174,23 @@ device {
 }
 
 group {
-       insert_after_current = false
-       col.border_active = rgba(e9e836ee) rgba(e3c401ee) 75deg
-       col.border_inactive = rgba(e3c40177) rgba(b7a10077) 75deg
-       col.border_locked_active = rgba(2e8b57ee) rgba(2e8a73ee) 75deg
-       col.border_locked_inactive = rgba(2e8b5777) rgba(2e8a7377) 75deg
+       merge_groups_on_drag = 0
+       insert_after_current = 0
+       col.border_active = $base09 $base09 90deg
+       col.border_inactive = $base04 $base09 90deg
+       col.border_locked_active = $base0C $base0C 90deg
+       col.border_locked_inactive = $base04 $base0C 90deg
     groupbar {
        height = 22
         font_family = Iosevka Nerd Font Propo
         font_size = 12
-       text_color = rgba(242424ff)
+       text_color = $base00
        gradients = true
        scrolling = false
-       col.active = rgba(e9e836ee)
-       col.inactive = rgba(e3c40177)
-       col.locked_active = rgba(2e8b57ee)
-       col.locked_inactive = rgba(194d4088)
+       col.active = $base09
+       col.inactive = $base04
+       col.locked_active = $base0C
+       col.locked_inactive = $base04
     }
 }
 
@@ -193,13 +199,13 @@ plugin {
                bar_text_font = Iosevka Nerd Font Propo
                bar_text_size = 12
                bar_height = 24
-               bar_color = $base0D $base0C 40deg
-               col.text = rgb(000203)
+               bar_color = $base0A
+               col.text = $base00
                bar_part_of_window = true
                bar_precedence_over_border = true
                # hyprbars-button = color, size, icon, on-click
-               hyprbars-button = rgba(ff404033), 22, 󰖭, hyprctl dispatch killactive
-               hyprbars-button = rgba(eeee1133), 22, 󰁌, hyprctl dispatch fullscreen 1
+               hyprbars-button = rgba(eb6f9260), 22, 󰖭, hyprctl dispatch killactive
+               hyprbars-button = rgba(f6c17770), 22, 󰁌, hyprctl dispatch fullscreen 1
         }
 }
 
@@ -226,8 +232,6 @@ windowrulev2 = fullscreen, class:^(gamescope)$
 
 # handle hyprbars for floating windows
 windowrulev2 = plugin:hyprbars:nobar, ^floating:0
-# windowrulev2 = plugin:hyprbars:bar_color = rgba(131516aa), ^floating:1
-# windowrulev2 = plugin:hyprbars:color_text = rgba(161514aa), ^floating:1
 
 # handle plasma/kde/qt apps
 windowrule = float, ^(org.kde.*)$
@@ -239,8 +243,13 @@ windowrule = float, ^(vlc.*)$
 windowrule = float, ^(pcmanfm.*)$
 windowrule = float, class:^(qalculate.*)$
 
-# handle firefox
-windowrulev2 = float, title:^(Über.*)$
+# handle dialogs
+windowrulev2 = float, title:^((Über|About).*)$
+
+# handle browsers
+windowrulev2 = float, class:^(firefox.*)$
+windowrulev2 = tag +browser, class:^(firefox.*)$
+windowrulev2 = tag +browser, class:^(org.qutebrowser.*)$
 
 # handle terminal(s/-apps)
 windowrulev2 = opacity 1.0 override 0.8 override, group, class:^(foot)$
@@ -263,6 +272,9 @@ windowrulev2 = float, class:^(blueman-manager.*)$
 windowrule = float, ^(org.freedesktop.impl.portal.desktop.kde)$
 windowrule = stayfocused, ^(org.freedesktop.impl.portal.desktop.kde)$
 
+# handle TAGS (always handle tags last)
+windowrulev2 = nodim, tag:browser
+
 # See https://wiki.hyprland.org/Configuring/Keywords/ for more
 $suremod = SUPER ALT CTRL
 $mainmod = SUPER