From a7daa479c9e6e35ee882e130ed64cec74edcae65 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Mon, 11 Nov 2024 23:39:19 +0100 Subject: [PATCH] hypr: update config --- dot-config/hypr/fragments/keybinds.conf | 3 +- dot-config/hypr/hyprland.conf | 44 +++++++++++++++---------- dot-config/hypr/scripts/startup.sh | 1 + dot-config/hypr/shaders/bluefilter.frag | 17 ++++++++++ 4 files changed, 47 insertions(+), 18 deletions(-) create mode 100644 dot-config/hypr/shaders/bluefilter.frag diff --git a/dot-config/hypr/fragments/keybinds.conf b/dot-config/hypr/fragments/keybinds.conf index 8c544cee..90add6ff 100644 --- a/dot-config/hypr/fragments/keybinds.conf +++ b/dot-config/hypr/fragments/keybinds.conf @@ -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 diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index 9b6290af..f10646d1 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -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 } } diff --git a/dot-config/hypr/scripts/startup.sh b/dot-config/hypr/scripts/startup.sh index 92bee3ff..52e83f6e 100755 --- a/dot-config/hypr/scripts/startup.sh +++ b/dot-config/hypr/scripts/startup.sh @@ -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 index 00000000..ac3bb5a9 --- /dev/null +++ b/dot-config/hypr/shaders/bluefilter.frag @@ -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; +} + -- 2.51.2