diff options
Diffstat (limited to '')
-rw-r--r-- | home/config/hypr/config.d/colors.conf | 5 | ||||
-rw-r--r-- | home/config/hypr/config.d/input.conf (renamed from home-config/hypr/config.d/input.conf) | 11 | ||||
-rw-r--r-- | home/config/hypr/config.d/keybinds.conf (renamed from home-config/hypr/config.d/keybinds.conf) | 30 | ||||
-rw-r--r-- | home/config/hypr/config.d/plugins.conf | 2 | ||||
-rw-r--r-- | home/config/hypr/config.d/theme.conf | 103 | ||||
-rw-r--r-- | home/config/hypr/config.d/workspaces.conf (renamed from home-config/hypr/config.d/workspaces.conf) | 31 | ||||
-rw-r--r-- | home/config/hypr/hypridle.conf | 35 | ||||
-rw-r--r-- | home/config/hypr/hyprland.conf (renamed from home-config/hypr/hyprland.conf) | 18 | ||||
-rw-r--r-- | home/config/hypr/hyprlock.conf | 72 | ||||
-rw-r--r-- | home/config/hypr/hyprpaper.conf | 3 | ||||
-rw-r--r-- | home/config/hypr/monitors.conf | 4 | ||||
-rwxr-xr-x | home/config/hypr/scripts.d/autostart.sh | 16 | ||||
-rwxr-xr-x | home/config/hypr/scripts.d/systemd.sh | 16 | ||||
-rw-r--r-- | home/config/hypr/workspaces.conf | 0 |
14 files changed, 307 insertions, 39 deletions
diff --git a/home/config/hypr/config.d/colors.conf b/home/config/hypr/config.d/colors.conf new file mode 100644 index 0000000..9d31302 --- /dev/null +++ b/home/config/hypr/config.d/colors.conf @@ -0,0 +1,5 @@ + + +$active_color = rgb(4d4754) +$base_color = rgb(14171d) +$text_color = rgb(ffffff) diff --git a/home-config/hypr/config.d/input.conf b/home/config/hypr/config.d/input.conf index 947ae3d..363c473 100644 --- a/home-config/hypr/config.d/input.conf +++ b/home/config/hypr/config.d/input.conf @@ -1,13 +1,12 @@ +monitor= eDP-1, highres, auto, $scale -monitor= eDP-1, 3072x1920, 0x0, $scale - -env = XCURSOR_SIZE, 24 +env = GDK_SCALE,1.25 input { kb_layout = us kb_variant = kb_model = - kb_options = gtp:alt_shit_toggle, compose:rctrl + kb_options = gtp:alt_shit_toggle, compose:ralt kb_rules = follow_mouse = 1 @@ -18,7 +17,3 @@ input { sensitivity = 0 } - -device:epic-mouse-v1 { - sensitivity = -0.5 -} diff --git a/home-config/hypr/config.d/keybinds.conf b/home/config/hypr/config.d/keybinds.conf index 3351e85..4c24083 100644 --- a/home-config/hypr/config.d/keybinds.conf +++ b/home/config/hypr/config.d/keybinds.conf @@ -1,34 +1,30 @@ +bind = $mod SHIFT, SPACE, togglefloating bind = $mod, Return, exec, $term bind = $mod, W, exec, $browser -bind = $mod SHIFT, SPACE, togglefloating -bind = $mod, D, exec, $menu +bind = $mod, D, exec, $menu bind = $mod, J, togglesplit bind = $mod, F, fullscreen -bind = $mod, L, exec, killall wlogout || wlogout --css ~/scripts/power/style.css -l ~/scripts/power/layout -bind = $mod, P, exec, killall wlogout || wlogout --css ~/scripts/monitor/style.css -l ~/scripts/monitor/layout -b 2 -L 400 -R 400 -bind = $mod SHIFT, B, exec, killall waybar && waybar -bind = $mod SHIFT, Q, killactive -bind = $mod SHIFT, W, exec, hyprpaper -$monitor_sh = ~/scripts/monitor -bind = $mod ALT, right, exec, $monitor_sh right -bind = $mod ALT, left, exec, $monitor_sh left -bind = $mod ALT, up, exec, $monitor_sh mirror -bind = $mod ALT, down, exec, $monitor_sh disable +bind = $mod, L, exec, hyprlock +bind = $mod SHIFT, L, exec, killall Hyprland + +bind = $mod SHIFT, Q, killactive +bind = $mod, F5, exec, sh -c 'killall waybar; waybar --config ~/.config/waybar/config.hypr' binde =, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ binde =, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- binde =, XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle binde =, XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle -binde =, XF86MonBrightnessDown, exec, brightnessctl set 5%- -binde =, XF86MonBrightnessUp, exec, brightnessctl set 5%+ - binde =, XF86AudioPlay, exec, playerctl play-pause binde =, XF86AudioNext, exec, playerctl next binde =, XF86AudioPrev, exec, playerctl previous -bind = ,Print, exec, grim -g "$(slurp)" - | wl-copy +binde =, XF86MonBrightnessDown, exec, brightnessctl set 5%- +binde =, XF86MonBrightnessUp, exec, brightnessctl set 5%+ + +bind = $mod SHIFT, s, exec, grim -g "$(slurp)" - | wl-copy -t image/png && notify-send -t 3000 "Hyprland" "Screenshot copied to clipboard" +bind = , Print, exec, grim - | wl-copy -t iamge/png && notify-send -t 3000 "Hyprland" "Full screen copied to clipboard" bind = SHIFT, Print, exec, slurp -p | grim -g - - | convert - txt:- | tail -n 1 | awk '{print $3}' | wl-copy -bind = CONTROL, Print, exec, + diff --git a/home/config/hypr/config.d/plugins.conf b/home/config/hypr/config.d/plugins.conf new file mode 100644 index 0000000..16da0e4 --- /dev/null +++ b/home/config/hypr/config.d/plugins.conf @@ -0,0 +1,2 @@ +exec-once = hyprctl plugin load /run/current-system/profile/lib/libhy3.so +exec-once = hyprctl plugin load /run/current-system/profile/lib/libhyprbars.so diff --git a/home/config/hypr/config.d/theme.conf b/home/config/hypr/config.d/theme.conf new file mode 100644 index 0000000..8917bd6 --- /dev/null +++ b/home/config/hypr/config.d/theme.conf @@ -0,0 +1,103 @@ +general { + gaps_in = 5 + gaps_out = 10 + layout = hy3 + + resize_on_border = yes + extend_border_grab_area = 20 + + border_size = $border + col.active_border = $active_color + col.inactive_border = $base_color +} + +plugin { + hy3 { + tabs { + height = 24 + text_height = 9 + text_padding = 10 + padding = 2 + render_text = true + text_font = JetBrains Mono Nerd Font Mono Bold + rounding = $radius + + col.active = $active_color + col.inactive = $base_color + col.text.active = $text_color + col.text.inactive = $text_color + } + + autotile { + enable = true + } + } + + hyprbars { + bar_height = 24 + bar_color = $base_color + col.text = $text_color + bar_text_size = 9 + bar_text_font = JetBrains Mono Nerd Font Mono Bold + bar_button_padding = 12 + bar_padding = 10 + bar_precedence_over_border = true + hyprbars-button = rgb(000000), 16, , hyprctl dispatch killactive + hyprbars-button = rgb(000000), 16, , hyprctl dispatch fullscreen 2 + hyprbars-button = rgb(000000), 16, , hyprctl dispatch togglefloating + } +} + +decoration { + rounding = $radius + drop_shadow = no + + blur { + enabled = true + size = 4 + passes = 2 + noise = 0.008 + contrast = 0.8916 + brightness = 0.8 + } +} + +animations { + enabled = yes + + bezier = windowIn, 0.06, 0.71, 0.25, 1 + bezier = windowResize, 0.04, 0.67, 0.38, 1 + + animation = windowsIn, 1, 3, windowIn, slide #popin 20% + animation = windowsOut, 1, 3, windowIn, slide #popin 70% + animation = windowsMove, 1, 2.5, windowResize + animation = border, 1, 10, default + animation = borderangle, 1, 8, default + animation = fade, 1, 3, default + animation = workspaces, 1, 6, default + animation = layers, 1, 5, windowIn, slide +} + +gestures { + workspace_swipe = true + workspace_swipe_fingers = 3 + workspace_swipe_forever = true + workspace_swipe_cancel_ratio = 0.15 +} + +misc { + disable_hyprland_logo = true + disable_splash_rendering = true + no_direct_scanout = false + key_press_enables_dpms = true + mouse_move_enables_dpms = true + vrr = 1 +} + +xwayland { + force_zero_scaling = true + use_nearest_neighbor = false +} + +env = XDG_CURRENT_DESKTOP,Hyprland +env = XDG_SESSION_DESKTOP,Hyprland diff --git a/home-config/hypr/config.d/workspaces.conf b/home/config/hypr/config.d/workspaces.conf index 2f3e81c..408b05f 100644 --- a/home-config/hypr/config.d/workspaces.conf +++ b/home/config/hypr/config.d/workspaces.conf @@ -1,6 +1,6 @@ dwindle { - pseudotile = yes + pseudotile = yes preserve_split = yes } @@ -17,10 +17,10 @@ bind = $mod, down, movefocus, d # Move window across workspace with mod + arrow keys -bind = $mod SHIFT, left, movewindow, l -bind = $mod SHIFT, right, movewindow, r -bind = $mod SHIFT, up, movewindow, u -bind = $mod SHIFT, down, movewindow, d +bind = $mod SHIFT, left, hy3:movewindow, l +bind = $mod SHIFT, right, hy3:movewindow, r +bind = $mod SHIFT, up, hy3:movewindow, u +bind = $mod SHIFT, down, hy3:movewindow, d # Switch workspaces with mod + [0-9] @@ -47,6 +47,27 @@ bind = $mod SHIFT, 8, movetoworkspacesilent, 8 bind = $mod SHIFT, 9, movetoworkspacesilent, 9 bind = $mod SHIFT, 0, movetoworkspacesilent, 10 +# Move to tab + +bind = $mod CONTROL, 1, hy3:focustab, index, 01 +bind = $mod CONTROL, 2, hy3:focustab, index, 02 +bind = $mod CONTROL, 3, hy3:focustab, index, 03 +bind = $mod CONTROL, 4, hy3:focustab, index, 04 +bind = $mod CONTROL, 5, hy3:focustab, index, 05 +bind = $mod CONTROL, 6, hy3:focustab, index, 06 +bind = $mod CONTROL, 7, hy3:focustab, index, 07 +bind = $mod CONTROL, 8, hy3:focustab, index, 08 +bind = $mod CONTROL, 9, hy3:focustab, index, 09 +bind = $mod CONTROL, 0, hy3:focustab, index, 10 + +bindn = , mouse:272, hy3:focustab, mouse +bindn = , mouse_down, hy3:focustab, l, require_hovered +bindn = , mouse_up, hy3:focustab, r, require_hovered + +bind = $mod SHIFT, B, hy3:makegroup, h +bind = $mod SHIFT, V, hy3:makegroup, v +bind = $mod SHIFT, C, hy3:changegroup, toggletab + # Scroll through existing workspaces with mod + scroll bind = $mod, mouse_down, workspace, e+1 diff --git a/home/config/hypr/hypridle.conf b/home/config/hypr/hypridle.conf new file mode 100644 index 0000000..d0a977a --- /dev/null +++ b/home/config/hypr/hypridle.conf @@ -0,0 +1,35 @@ +general { + lock_cmd = pidof hyprlock || hyprlock # dbus/sysd lock command (loginctl lock-session) + before_sleep_cmd = loginctl lock-session # command ran before sleep + after_sleep_cmd = hyprctl dispatch dpms on # command ran after sleep + ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) +} + +listener { + timeout = 150 # 2.5min. + on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. + on-resume = brightnessctl -r # monitor backlight restore. +} + +# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight. +listener { + timeout = 150 # 2.5min. + on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight. + on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight. +} + +listener { + timeout = 300 # 5min + on-timeout = loginctl lock-session # lock screen when timeout has passed +} + +listener { + timeout = 330 # 5.5min + on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed + on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. +} + +listener { + timeout = 1800 # 30min + on-timeout = systemctl suspend # suspend pc +} diff --git a/home-config/hypr/hyprland.conf b/home/config/hypr/hyprland.conf index 743fa37..ccea461 100644 --- a/home-config/hypr/hyprland.conf +++ b/home/config/hypr/hyprland.conf @@ -1,22 +1,22 @@ -exec-once = dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=Hyprland - $mod = SUPER -$term = alacritty +$term = kitty $menu = wofi --allow-images --show drun --prompt "Search Program" -$scale = 1.5 +$scale = 1.25 $radius = 5 -$gaps = 10 -$border = 3 +$border = 2 -$browser = firefox +$browser = librewolf -source = ~/.config/hypr/config.d/theme.conf +source = ~/.config/hypr/config.d/plugins.conf +source = ~/.config/hypr/config.d/colors.conf source = ~/.config/hypr/config.d/keybinds.conf +source = ~/.config/hypr/config.d/theme.conf source = ~/.config/hypr/config.d/input.conf source = ~/.config/hypr/config.d/workspaces.conf +source = ~/.config/hypr/monitors.conf -exec-once = ~/.config/hypr/config.d/autostart.sh +exec-once = ~/.config/hypr/scripts.d/autostart.sh diff --git a/home/config/hypr/hyprlock.conf b/home/config/hypr/hyprlock.conf new file mode 100644 index 0000000..c511be5 --- /dev/null +++ b/home/config/hypr/hyprlock.conf @@ -0,0 +1,72 @@ +# BACKGROUND +background { + monitor = + path = ~/.config/desktop-common/wallpapers/davekat.png + blur_passes = 3 + contrast = 0.8916 + brightness = 0.8172 + vibrancy = 0.1696 + vibrancy_darkness = 0.0 +} + +# GENERAL +general { + no_fade_in = false + grace = 0 + disable_loading_bar = true +} + +# INPUT FIELD +input-field { + monitor = + size = 250, 60 + outline_thickness = 2 + dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + outer_color = rgba(0, 0, 0, 0) + inner_color = rgba(0, 0, 0, 0.5) + font_color = rgb(200, 200, 200) + fade_on_empty = false + placeholder_text = <i><span foreground="##cdd6f4">Input Password...</span></i> + hide_input = false + position = 0, -120 + halign = center + valign = center +} + +# TIME +label { + monitor = + text = cmd[update:1000] echo "$(date +"%-H:%M:%S")" + #color = rgba(255, 255, 255, 0.6) + font_size = 80 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, 500 + halign = center + valign = center +} + +# PRFOLE IMAGE +image { + monitor = + path = ~/.config/desktop-common/pfps/karkat.png + size = 300 + rounding = -1 + border_size = 0 + position = 0, 250 + halign = center + valign = center +} + +# USER +label { + monitor = + text = Freya Murphy + font_family = JetBrains Mono Nerd Font Mono ExtraBold + font_size = 25 + position = 0, 50 + halign = center + valign = center +} + diff --git a/home/config/hypr/hyprpaper.conf b/home/config/hypr/hyprpaper.conf new file mode 100644 index 0000000..1e2fedb --- /dev/null +++ b/home/config/hypr/hyprpaper.conf @@ -0,0 +1,3 @@ +preload = ~/.config/desktop-common/wallpapers/davekat.png +wallpaper = ,~/.config/desktop-common/wallpapers/davekat.png +splash = false diff --git a/home/config/hypr/monitors.conf b/home/config/hypr/monitors.conf new file mode 100644 index 0000000..5448cc3 --- /dev/null +++ b/home/config/hypr/monitors.conf @@ -0,0 +1,4 @@ +# Generated by nwg-displays on 2024-06-18 at 20:22:23. Do not edit manually. + +monitor=eDP-1,2560x1600@90.0,0x0,1.25 +monitor=DP-2,2560x1440@59.95,2048x0,1.0 diff --git a/home/config/hypr/scripts.d/autostart.sh b/home/config/hypr/scripts.d/autostart.sh new file mode 100755 index 0000000..0b782b7 --- /dev/null +++ b/home/config/hypr/scripts.d/autostart.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +waybar --config $HOME/.config/waybar/config.hypr --style $HOME/.config/waybar/style.hypr.css & + +nm-applet --indicator & + +/usr/bin/gnome-keyring-daemon --foreground & +wl-clip-persist --clipboard both & + +gtk-launch discord & +gtk-launch io.element.Element & +gtk-launch org.gajim.Gajim & +gtk-launch org.mozilla.Thunderbird & + +hyprpaper & +hypridle & diff --git a/home/config/hypr/scripts.d/systemd.sh b/home/config/hypr/scripts.d/systemd.sh new file mode 100755 index 0000000..32b5528 --- /dev/null +++ b/home/config/hypr/scripts.d/systemd.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +systemctl --user set-environment XDG_CURRENT_DESKTOP=Hyprland +systemctl --user import-environment DISPLAY \ + WAYLAND_DISPLAY \ + XDG_CURRENT_DESKTOP \ + GTK_THEME \ + QT_QPA_PLATFORMTHEME + + +hash dbus-update-activation-environment 2>/dev/null && \ + dbus-update-activation-environment --systemd DISPLAY \ + XDG_CURRENT_DESKTOP=Hyprland \ + WAYLAND_DISPLAY \ + GTK_THEME \ + QT_QPA_PLATFORMTHEME diff --git a/home/config/hypr/workspaces.conf b/home/config/hypr/workspaces.conf new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/home/config/hypr/workspaces.conf |