diff options
| author | Jack Jamison <53350163+JackJ30@users.noreply.github.com> | 2024-11-09 14:09:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-09 14:09:38 -0500 |
| commit | 2d4198da6a59e52278255d22e7aba394b3ce1688 (patch) | |
| tree | e16ab66261797c06580679daffc13ef1b6ffd0cb /.config/hypr | |
| parent | e70986a9c299f004aa290bde0ec430ca864f7e74 (diff) | |
| parent | ddd43ed96249932652c7427dbdbbac92e5ef49ed (diff) | |
Merge pull request #1 from JackJ30/laptop
Merge Laptop, it's my main workspace now
Diffstat (limited to '.config/hypr')
| -rw-r--r-- | .config/hypr/binds.conf | 94 | ||||
| -rw-r--r-- | .config/hypr/hypridle.conf | 9 | ||||
| -rw-r--r-- | .config/hypr/hyprland.conf | 60 | ||||
| -rw-r--r-- | .config/hypr/hyprlock.conf | 47 | ||||
| -rw-r--r-- | .config/hypr/hyprpaper.conf | 2 | ||||
| -rw-r--r-- | .config/hypr/misc.conf | 0 | ||||
| -rw-r--r-- | .config/hypr/monitors.conf | 26 | ||||
| -rw-r--r-- | .config/hypr/style.conf | 62 | ||||
| -rw-r--r-- | .config/hypr/windowrules.conf | 2 |
9 files changed, 302 insertions, 0 deletions
diff --git a/.config/hypr/binds.conf b/.config/hypr/binds.conf new file mode 100644 index 0000000..54c04b5 --- /dev/null +++ b/.config/hypr/binds.conf @@ -0,0 +1,94 @@ +# See https://wiki.hyprland.org/Configuring/Keywords/ for more +$mainMod = SUPER + +# Set programs that you use +$terminal = alacritty +$fileManager = kitty xplr +$browser = waterfox +$menu = wmenu-run + +# Main Binds +bind = $mainMod, RETURN, exec, $menu +bind = $mainMod, A, exec, $terminal +bind = $mainMod, D, killactive, +bind = $mainMod CTRL SHIFT, D, exec, hyprctl kill +# screenshot (region + full) +bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" ~/Pictures/Screenshots/$(date +'%s_grim.png') +bind = $mainMod, S, exec, grim -o eDP-1 ~/Pictures/Screenshots/$(date +'%s_grim.png') +# screenshot and copy +bind = $mainMod CTRL SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy +bind = $mainMod CTRL, S, exec, grim -o eDP-1 - | wl-copy +bind = $mainMod, M, exit, +bind = $mainMod, V, togglefloating, +bind = $mainMod, P, exec, hyprpicker -a +bind = $mainMod, L, exec, hyprlock +bind = $mainMod, R, togglesplit, # dwindle +bind = $mainMod, F, fullscreen +bind = $mainMod, G, fullscreenstate, 0 3 +bind = $mainMod, W, exec, $browser +bind = $mainMod, K, exec, $terminal -e htop +bind = $mainMod SHIFT, B, exec, /bin/sh -c "pidof waybar && pkill -x waybar || waybar" +bind = $mainMod SHIFT, Q, exit, +bind = $mainMod, SPACE, layoutmsg, swapwithmaster +bind = $mainMod, E, exec, emacsclient -c + +# Move focus with mainMod + arrow keys +binde = $mainMod, left, movefocus, l +binde = $mainMod, right, movefocus, r +binde = $mainMod, n, cyclenext, prev +binde = $mainMod, p, cyclenext +binde = $mainMod, up, movefocus, u +binde = $mainMod, down, movefocus, d + +binde = $mainMod SHIFT,left ,movewindow, l +binde = $mainMod SHIFT,right ,movewindow, r +binde = $mainMod SHIFT, n, swapnext, prev +binde = $mainMod SHIFT, p, swapnext +binde = $mainMod SHIFT,up ,movewindow, u +binde = $mainMod SHIFT,down ,movewindow, d + +# controls +binde = , xf86monbrightnessup , exec, brightnessctl set 10%+ +binde = , xf86monbrightnessdown, exec, brightnessctl set 10%- + +binde = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ +binde = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%- +binde = SHIFT, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%+ +binde = SHIFT, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%- +binde = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle + +# Example special workspace (scratchpad) COMMENTED OUT FOR SCREENSHOT KEYBIND +# bind = $mainMod, S, togglespecialworkspace, magic +# bind = $mainMod SHIFT, S, movetoworkspace, special:magic + +# Scroll through existing workspaces with mainMod + scroll +bind = $mainMod, mouse_down, workspace, e+1 +bind = $mainMod, mouse_up, workspace, e-1 + +# Move/resize windows with mainMod + LMB/RMB and dragging +bindm = $mainMod, mouse:272, movewindow +bindm = $mainMod, mouse:273, resizewindow + +# switch workspaces with mainMod + [0-9] +bind = $mainMod, 1, workspace, 1 +bind = $mainMod, 2, workspace, 2 +bind = $mainMod, 3, workspace, 3 +bind = $mainMod, 4, workspace, 4 +bind = $mainMod, 5, workspace, 5 +bind = $mainMod, 6, workspace, 6 +bind = $mainMod, 7, workspace, 7 +bind = $mainMod, 8, workspace, 8 +bind = $mainMod, 9, workspace, 9 +bind = $mainMod, 0, workspace, 10 + +# move active window to a workspace with mainMod + SHIFT + [0-9] +bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1 +bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 +bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 +bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 +bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 +bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 +bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 +bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 +bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 +bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf new file mode 100644 index 0000000..d871778 --- /dev/null +++ b/.config/hypr/hypridle.conf @@ -0,0 +1,9 @@ +general { + before_sleep_cmd = pidof hyprlock || hyprlock + after_sleep_cmd = hyprctl dispatch dpms on +} + +listener { + timeout = 300 # 5min + on-timeout = systemctl suspend +} diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf new file mode 100644 index 0000000..3042e6e --- /dev/null +++ b/.config/hypr/hyprland.conf @@ -0,0 +1,60 @@ +source=binds.conf +source=monitors.conf +source=style.conf +source=windowrules.conf + +# Slow app launch fix +exec-once = systemctl --user import-environment & +exec-once = hash dbus-update-activation-environment 2>/dev/null & +exec-once = dbus-update-activation-environment --systemd & +exec-once = startup +#exec-once = xdg-desktop-portal-hyprland & + +exec-once = hyprctl dispatch workspace 1 + +exec-once = gsettings set org.gnome.desktop.interface cursor-theme "Bibata-Modern-Classic" +exec-once = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" +exec-once = gsettings set org.gnome.desktop.interface gtk-theme Adwaita + +# Some default env vars. +env = QT_QPA_PLATFORMTHEME,qt6ct # change to qt6ct if you have that +env = XDG_SESSION_TYPE,wayland +env = XDG_SESSION_DESKTOP,Hyprland +env = XCURSOR_THEME,"Bibata-Modern-Classic" +env = XCURSOR_SIZE,24 +env = HYPRCURSOR_THEME,HyprBibataModernClassicSVG + +# For all categories, see https://wiki.hyprland.org/Configuring/Variables/ +input { + kb_layout = us + kb_variant = + kb_model = + kb_options = ctrl:nocaps + kb_rules = + + follow_mouse = 1 + + repeat_delay = 300 + repeat_rate = 30 + + touchpad { + natural_scroll = yes + disable_while_typing = true + } + + sensitivity = 0 # -1.0 - 1.0, 0 means no modification. +} + +general { + #layout = dwindle + layout = master + + # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on + allow_tearing = false +} + +windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$ +windowrulev2 = noanim,class:^(xwaylandvideobridge)$ +windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ +windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$ +windowrulev2 = noblur,class:^(xwaylandvideobridge)$ diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf new file mode 100644 index 0000000..e12fee9 --- /dev/null +++ b/.config/hypr/hyprlock.conf @@ -0,0 +1,47 @@ +disable_loading_bar = true +hide_cursor = true +no_fade_in = true + +background { + monitor = + path = screenshot + + # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations + blur_passes = 2 # 0 disables blurring + blur_size = 2 + noise = 0.0117 + contrast = 0.8916 + brightness = 0.8172 + vibrancy = 0.1696 + vibrancy_darkness = 0.0 +} +input-field { + monitor = + size = 200, 200 + outline_thickness = 15 + dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = false + dots_rounding = -1 # -1 default circle, -2 follow input-field rounding + outer_color = rgb(151515) + inner_color = rgb(200, 200, 200) + font_color = rgb(10, 10, 10) + fade_on_empty = true + fade_timeout = 50 # Milliseconds before fade_on_empty is triggered. + hide_input = true + rounding = -1 # -1 means complete rounding (circle/oval) + check_color = rgb(100, 118, 48) + fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color + placeholder_text = + fail_text = <i><b>($ATTEMPTS)</b></i> # can be set to empty + fail_transition = 50 # transition time in ms between normal outer_color and fail_color + capslock_color = -1 + numlock_color = -1 + bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) + invert_numlock = false # change color if numlock is off + swap_font_color = false # see below + + position = 0, -20 + halign = center + valign = center +}
\ No newline at end of file diff --git a/.config/hypr/hyprpaper.conf b/.config/hypr/hyprpaper.conf new file mode 100644 index 0000000..c759e59 --- /dev/null +++ b/.config/hypr/hyprpaper.conf @@ -0,0 +1,2 @@ +preload = /home/jack/.dotfiles/wallpapers/active/snowy-tower.png +wallpaper = ,/home/jack/.dotfiles/wallpapers/active/snowy-tower.png diff --git a/.config/hypr/misc.conf b/.config/hypr/misc.conf new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/hypr/misc.conf diff --git a/.config/hypr/monitors.conf b/.config/hypr/monitors.conf new file mode 100644 index 0000000..813f6d6 --- /dev/null +++ b/.config/hypr/monitors.conf @@ -0,0 +1,26 @@ +# See https://wiki.hyprland.org/Configuring/Monitors/ +#monitor=DP-1,2560x1440@144,0x0,auto +monitor=,highres,auto,1 +#monitor=DP-2,1920x1080@60,2560x0,auto + +# FOR HYPRSOME (MULTIPLE MONITORS) +workspace=1,monitor:eDP-1 +workspace=2,monitor:eDP-1 +workspace=3,monitor:eDP-1 +workspace=4,monitor:eDP-1 +workspace=5,monitor:eDP-1 +workspace=6,monitor:eDP-1 +workspace=7,monitor:eDP-1 +workspace=8,monitor:eDP-1 +workspace=9,monitor:eDP-1 +workspace=10,monitor:eDP-1 + +workspace=11,monitor:eDP-2 +workspace=12,monitor:eDP-2 +workspace=13,monitor:eDP-2 +workspace=14,monitor:eDP-2 +workspace=15,monitor:eDP-2 +workspace=17,monitor:eDP-2 +workspace=18,monitor:eDP-2 +workspace=19,monitor:eDP-2 +workspace=10,monitor:eDP-2 diff --git a/.config/hypr/style.conf b/.config/hypr/style.conf new file mode 100644 index 0000000..db0c6de --- /dev/null +++ b/.config/hypr/style.conf @@ -0,0 +1,62 @@ +general { + gaps_in = 3 + gaps_out = 25 + + border_size = 2 + col.active_border = rgba(EEABC4aa) rgba(0099ccee) 45deg + col.inactive_border = rgba(595959aa) +} + +decoration { + # See https://wiki.hyprland.org/Configuring/Variables/ for more + + rounding = 4 + + blur { + enabled = true + size = 2 + passes = 3 + } + + drop_shadow = no + shadow_range = 4 + shadow_render_power = 3 + col.shadow = rgba(1a1a1aee) +} + +animations { + enabled = yes + + bezier = defaultBezier, 0.05, 0.9, 0.1, 1.05 + + animation = windows, 1, 7, defaultBezier + animation = windowsOut, 1, 7, default, popin 80% + animation = border, 1, 10, default + animation = borderangle, 1, 8, default + animation = fade, 1, 3, default + animation = workspaces, 1, 6, defaultBezier +} + +dwindle { + # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more + pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below + preserve_split = yes # you probably want this +} + +master { + # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more + new_status = master + new_on_top = true + orientation = right + mfact = 0.5 +} + +gestures { + # See https://wiki.hyprland.org/Configuring/Variables/ for more + workspace_swipe = on +} + +misc { + # See https://wiki.hyprland.org/Configuring/Variables/ for more + force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers +} diff --git a/.config/hypr/windowrules.conf b/.config/hypr/windowrules.conf new file mode 100644 index 0000000..30cbcaa --- /dev/null +++ b/.config/hypr/windowrules.conf @@ -0,0 +1,2 @@ +windowrulev2 = float,title:^(Friends List)$ +windowrulev2 = float,title:^(btm)$ |
