]> Freerunner's - dotfiles.git/commitdiff
hypr: update config
authorAndre Ramnitz <tux.rising@gmail.com>
Mon, 11 Nov 2024 22:39:19 +0000 (23:39 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Mon, 11 Nov 2024 22:39:19 +0000 (23:39 +0100)
dot-config/hypr/fragments/keybinds.conf
dot-config/hypr/hyprland.conf
dot-config/hypr/scripts/startup.sh
dot-config/hypr/shaders/bluefilter.frag [new file with mode: 0644]

index 8c544cee3f3669046a59675ca915239439f18efc..90add6ffb347e56fdcdd9738666cfef219d30d0e 100644 (file)
@@ -24,9 +24,10 @@ bind = $mainmod, S, togglesplit, # dwindle
 bind = $mainmod Shift, S, swapsplit, # dwindle
 bind = $mainmod SHIFT, S, layoutmsg, preselect d # dwindle
 bind = $mainmod, G, togglegroup
+bind = $mainmod SHIFT, G, lockactivegroup, toggle
+bind = $mainmod CTRL, G, denywindowfromgroup, toggle
 bind = $mainmod, W, exec, $HOME/.local/bin/wb hide
 bind = $mainmod SHIFT, W, exec, $HOME/.local/bin/wb reload
-bind = $mainmod SHIFT, G, lockactivegroup, toggle
 bind = $mainmod, TAB, exec, ~/.config/hypr/scripts/windowswitch-rg.sh
 bind = $mainmod, grave, exec, ~/.config/hypr/scripts/RofiEmoji.sh
 bind = $mainmod SHIFT, D, denywindowfromgroup, toggle
index 9b6290af9a6900b5986244135f40c05d393df0f7..f10646d1f633f6d2186bafa653b3060deef092d3 100644 (file)
@@ -37,6 +37,10 @@ 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
 
+# tweak swww
+env = SWWW_TRANSITION_FPS,60
+env = SWWW_TRANSITION_STEP,2
+
 # probably necessary for hi-dpi displays:
 #env = GDK_SCALE=1 # scaling XWayland clients
 #env = QT_AUTO_SCREEN_SCALE_FACTOR,1
@@ -78,11 +82,15 @@ input {
 
 general {
     # See https://wiki.hyprland.org/Configuring/Variables/ for more
+    # col.active_border = 0xffffffff
+    # col.inactive_border = 0xff444444
+    # col.nogroup_border_active = 0xffff00ff
+    # col.nogroup_border = 0xffffaaff
        border_size = 3
-    gaps_in = 8
+    gaps_in = 4
     gaps_out = 8
-    col.active_border = 0xff$base0C
-    col.inactive_border = 0x44$base0C
+    col.active_border = 0xee$base0D
+    col.inactive_border = 0xee$base02
     col.nogroup_border_active = 0xff$base0E
     col.nogroup_border = 0x33$base0E
 
@@ -122,14 +130,14 @@ decoration {
     }
 
     drop_shadow = true
-    shadow_range = 15
+    shadow_range = 8
        rounding = 8
     shadow_render_power = 2
-    col.shadow = 0xCC$base00
-    col.shadow_inactive = 0xAA$base00
+    col.shadow = 0xee1a1a1a
        dim_special = 0.3
        dim_inactive = true
        dim_strength = 0.2
+       # screen_shader = ~/.config/hypr/shaders/bluefilter.frag
 }
 
 dwindle {
@@ -168,24 +176,26 @@ device {
 }
 
 group {
+       # col.border_active = 0x66ffff00
+       # col.border_inactive = 0x66777700
+       # col.border_locked_active = 0xffff5500
+       # col.border_locked_inactive = 0x44775500
        merge_groups_on_drag = 0
        insert_after_current = 0
-       col.border_active = 0xff$base0A
-       col.border_inactive = 0x44$base0A
-       col.border_locked_active = 0xff$base09
-       col.border_locked_inactive = 0x44$base09
+       col.border_active = 0xEE$base0A
+       col.border_inactive = 0xEE$base04
+       col.border_locked_active = 0xEE$base08
+       col.border_locked_inactive = 0xEE$base0A
     groupbar {
        enabled = 0
        height = 22
         font_family = Iosevka Nerd Font Propo
         font_size = 12
        text_color = 0xff$base00
-       gradients = true
+       gradients = false
        scrolling = false
        col.active = 0xff$base0D
        col.inactive = 0xff$base04
-       col.locked_active = 0xff$base0B
-       col.locked_inactive = 0xff$base04
     }
 }
 
@@ -194,13 +204,13 @@ plugin {
                bar_text_font = Iosevka Nerd Font Propo
                bar_text_size = 12
                bar_height = 24
-               bar_color = $base00
-               col.text = $base05
+               bar_color = 0xfb$base00
+               col.text = 0xff$base05
                bar_part_of_window = 1
                bar_precedence_over_border = 1
                # hyprbars-button = color, size, icon, on-click
-               hyprbars-button = $base08, 20, 󰖭, hyprctl dispatch killactive
-               hyprbars-button = $base0A, 20, 󰁌, hyprctl dispatch fullscreen 1
+               hyprbars-button = 0xaa$base08, 20, 󰖭, hyprctl dispatch killactive
+               hyprbars-button = 0xaa$base0A, 20, 󰁌, hyprctl dispatch fullscreen 1
         }
 }
 
index 92bee3ffd291b96893fadfb924468a3cca23cefa..52e83f6e09a309c3fd26e1572a192817ff590c44 100755 (executable)
@@ -61,6 +61,7 @@ until [[ $(pidof waybar) ]]; do
 done
 corectrl --minimize-systray &
 openrgb -p default --startminimized &
+udiskie --no-automount --no-notify --tray &
 
 ! pidof swaync && swaync > /dev/null 2>&1 &
 ! pidof kwalletmanager5 && /usr/libexec/pam_kwallet_init &
diff --git a/dot-config/hypr/shaders/bluefilter.frag b/dot-config/hypr/shaders/bluefilter.frag
new file mode 100644 (file)
index 0000000..ac3bb5a
--- /dev/null
@@ -0,0 +1,17 @@
+//
+// Example blue light filter shader.
+// 
+
+precision mediump float;
+varying vec2 v_texcoord;
+uniform sampler2D tex;
+
+void main() {
+
+    vec4 pixColor = texture2D(tex, v_texcoord);
+
+    pixColor[2] *= 0.8;
+
+    gl_FragColor = pixColor;
+}
+